Installation
Install (recommended: pipx)
pipx install hebb-mindRequires Python >= 3.10. No external database needed — SQLite is built in.
pipx installs hebb-mind into its own isolated virtualenv and links the hebb / hebb-mcp entry points onto your PATH automatically. It's the modern default for Python CLI tools and avoids the two long-standing footguns of pip install --user (PATH not updated, PEP 668 on Homebrew / Debian-family Python).
Install pipx if you don't have it
Run one block that matches your OS, then open a new terminal so the updated PATH takes effect.
brew install pipx
pipx ensurepathsudo apt install pipx # Ubuntu 23.04+ / Debian 12+
pipx ensurepathsudo dnf install pipx
pipx ensurepathpython -m pip install --user pipx
python -m pipx ensurepathpython -m pip install --user pipx
python -m pipx ensurepathAfter ensurepath writes to your shell rc / Windows user PATH, open a new terminal and re-run pipx install hebb-mind.
To upgrade later: pipx upgrade hebb-mind. To remove cleanly: pipx uninstall hebb-mind.
Alternative: virtualenv + pip
If you already work inside a virtualenv (or want to manage everything yourself):
python3 -m venv .venv
source .venv/bin/activate # Windows: .venv\Scripts\activate
pip install -U hebb-mind # `hebb` lives on the venv's PATHSystem-wide installs via sudo pip install work but are increasingly blocked by PEP 668 on modern distros; pipx is the supported path going forward.
Setup
hebb setupCreates hebb.json and hebb.db in the workspace, selects a small default embedding model from your OS locale, selects the download source, and downloads the model if it isn't already cached. The bare default is all-MiniLM-L6-v2 (~90MB, English) or intfloat/multilingual-e5-small (~470MB, multilingual); add --profile best for the high-quality bge models (1–2GB). It does not start a background service.
By default the workspace is ~/.hebb/ (the global fallback). If you run hebb setup inside a directory that has — or will get — a hebb.json, that directory becomes the workspace instead. Resolution order: $HEBB_HOME → nearest ancestor hebb.json → ~/.hebb/. Run hebb config get workspace to see the resolved location.
Verify
hebb --version
hebb model statusInstall the background service
hebb service installThis registers Hebb Mind with launchd (macOS), systemd (Linux), or Task Scheduler (Windows) and starts it — per-user by default (no admin). Then open http://localhost:8321/ for the Web Console, or http://localhost:8321/docs for the API docs.
Docker
git clone https://github.com/afx-team/hebb-mind.git && cd hebb-mind
docker compose -f docker/docker-compose.yml upPostgreSQL Backend
For production workloads, switch to PostgreSQL + pgvector:
pipx install 'hebb-mind[pg]' # or: pipx inject hebb-mind 'hebb-mind[pg]' --force
hebb config set storage_type postgresql
hebb config set pg_url postgresql://user:pass@localhost/hebbSee Storage Backends for details.
Next Steps
- Configuration — full config reference
- Claude Code — automatic cross-session memory for Claude Code
- Codex — automatic memory hooks and MCP tools for Codex
- MCP Integration — use Hebb Mind as MCP tools in any client