Quick Start
Two paths. The 60-second path needs no API key. The 5-minute path adds LLM-powered consolidation.
Path A — 60 seconds, no API key
Ingest and hybrid search work fully offline using the bundled local embedding model.
1. Install
pipx install hebb-mindRequires Python >= 3.10. SQLite is built in — no external database needed.
Don't have pipx? It's the standard installer for Python CLI tools — isolated venv, automatic PATH, plays nice with PEP 668. Install it once:
# macOS (Homebrew)
brew install pipx && pipx ensurepath
# Linux — Debian / Ubuntu 23.04+
sudo apt install pipx && pipx ensurepath
# Linux — Fedora
sudo dnf install pipx && pipx ensurepath
# Windows / any platform with Python 3.10+
python -m pip install --user pipx && python -m pipx ensurepathOpen a new terminal so the updated PATH takes effect, then re-run pipx install hebb-mind.
Prefer plain pip? python -m venv .venv && source .venv/bin/activate && pip install -U hebb-mind works fine — hebb lands on the venv's PATH automatically.
2. Setup
hebb setupCreates hebb.json and hebb.db under the workspace, picks an embedding model from your OS locale, and pre-downloads it. Language and region are independent flags:
hebb setup --language en --region cn # English model, China mirror
hebb setup --language zh --region global # Multilingual model, official HuggingFace3. Install the background service
hebb service installThat registers Hebb Mind with launchd (macOS), systemd (Linux), or Task Scheduler (Windows) and starts it. Default scope is per-user — no sudo or admin needed. Add --scope system for a system-wide install.
Open http://localhost:8321/ for the Web Console, or http://localhost:8321/docs for the OpenAPI page. To see where data lives, run hebb config get workspace.
4. Store and search a memory
curl -X POST http://localhost:8321/api/v1/memories \
-H 'Content-Type: application/json' \
-d '{
"content": "User prefers dark mode and compact layout",
"tags": ["preference", "ui"],
"importance_score": 7.5
}'
curl -X POST http://localhost:8321/api/v1/search \
-H 'Content-Type: application/json' \
-d '{"query": "UI preferences", "top_k": 5}'That's it — vector + keyword + tag-graph hybrid search runs locally with no third-party calls.
Path B — 5 minutes, with LLM consolidation
Consolidation, conflict resolution, and tag extraction need an LLM. Without an llm_api_key set, those endpoints return an empty result silently (known v0.1.1 gap, see Troubleshooting).
1. Configure an LLM
hebb config set llm_api_key sk-your-key
hebb config set llm_model openai/gpt-4o-miniSwitch providers via LiteLLM:
# Anthropic
hebb config set llm_model anthropic/claude-3-haiku-20240307
# Qwen / GLM / Kimi (OpenAI-compatible endpoint)
hebb config set llm_base_url https://dashscope.aliyuncs.com/compatible-mode/v1
hebb config set llm_model openai/qwen-plus2. Trigger consolidation
curl -X POST http://localhost:8321/api/v1/admin/consolidateOr wait for the daily 18:00 scheduler. Tags extracted during consolidation populate the knowledge graph at GET /api/v1/graph/tags.
30-second Python SDK
from hebb import HebbMind
mem = HebbMind() # uses ~/.hebb/hebb.json
mem.add("User prefers dark mode", tags=["preference", "ui"], importance=7.5)
for hit in mem.search("UI preferences", top_k=5):
print(hit.score, hit.content)Service lifecycle
Hebb Mind always runs as an OS-managed background service. Manage it with:
hebb service install # register + start (launchd / systemd / Task Scheduler)
hebb status # show install / running state
hebb service restart # restart in place
hebb service stop # stop but keep installed
hebb service uninstall # remove from the OSAll service subcommands accept --scope user (default, no admin) or --scope system (admin/sudo required, system-wide auto-start).
For Docker, see Storage Backends.
MCP and editor integrations
hebb claude-code install --scope user # Claude Code: hooks-based auto memory
hebb codex install --scope user # Codex: MCP memory tools
codex mcp list # verifyFor raw MCP clients (Cursor, etc.):
{
"mcpServers": {
"hebb": { "command": "hebb-mcp" }
}
}Details: MCP Integration · Claude Code Integration · Codex Integration
Next steps
- Configuration — full config reference
- Memory Lifecycle — how memories flow through the system
- Benchmarks — LoCoMo / LongMemEval results
- API Reference — complete API docs