Quickstart on one machine¶
Run Hivemind on your own computer, with no sign-in, no domain and no object store, then write a first note and read it back.
What you are installing¶
The local profile is the quick way to test Hivemind. It is meant mainly for
the automatic exchange of context between the assistants and agents that run
on your computer. It covers agent coordination on all three horizons, short,
mid and long, and it can also ingest documents as context. mid and
long need chat and embedding providers: see
What works without a provider.
It is an instance for one person. Hivemind runs in Docker on your computer
and answers only on localhost. It stores memory in SQLite files in Docker
volumes on the same computer, so it needs no S3 bucket. Authentication is
off: nobody signs in and no credential is issued.
With authentication off, every program on the computer has the same access:
- An agent name is a label the program chooses for itself. Nothing checks it, and any program can use any name, including another program's. The author of a note is declared, not authenticated.
- Every program, user account, container or browser extension able to reach the port reads and writes the same memory. Personal spaces, invitations and access management need authentication.
- The port stays on this computer. Do not expose it through a network, tunnel, VPN or reverse proxy, and do not store confidential or regulated data.
To give each person a sign-in and each agent its own credential, install locally with authentication on. For a server shared by a team, install in production. Both are new installations: an instance without authentication is never converted in place, and carrying its data over is not supported.
The full contract is in Local mode.
Before you start¶
- A computer with Docker Engine 28 or later and Docker Compose 2.30.1 or later: long memory mounts a volume subpath, which needs both, and Engine 28 keeps the loopback-only publication closed to other hosts. Tested on macOS on Apple silicon with Docker Desktop.
git, a Python 3 interpreter for the configuration script, and uv for the Hivemind command-line client (uv fetches the Python version the client needs).- Port 8080 free on the computer, or another port of your choice.
- Time and disk space for the first build, which downloads and builds several images.
- Optional: chat and embedding provider settings, if you want mid and long memory (see What works without a provider).
Use a shell where every command of a step runs in the same session: the
export lines below must still be set when you start the stack.
Steps¶
-
Get the release source.
git clone https://github.com/Lesur-ai/hivemind.git cd hivemind git checkout <release-tag> -
Create the private configuration file. The script writes a
.envfile readable only by you, with generated passwords, SQLite storage for both memory services and no S3 setting.--localalso selects consolidation in batches of 5 notes. It refuses to overwrite an existing.env.python3 scripts/configure_dev_env.py --backend sqlite --localExpected output:
Created .env for SQLite; initialize persistent stores explicitly before starting. Local profile: CONSOLIDATION_BATCH_SIZE=5 (consolidation batches of 5 notes).If port 8080 is taken, add
HIVEMIND_LOCAL_PORT=<port>to.envand use that port everywhere this page says 8080. If you want mid and long memory, add your chat and embedding provider settings to.envnow, following Choose inference providers. Never paste a provider key into a command line or a shared file. -
Select the two Compose files of the local profile for this shell. The second file turns authentication off, publishes the service on
127.0.0.1only, and adds the SQLite initializers.export COMPOSE_FILE=docker-compose.yml:docker-compose.local.ymlNever start this profile with
docker-compose.ymlalone: it publishes the port on every network address of the computer. -
Build the images, then pin the one you built. Core refuses to start without the identifier of the exact image it runs, and
HIVEMIND_PULL_POLICY=neverstops Compose from rebuilding, and so changing, that image between the next commands.docker compose --profile sqlite-init --profile operational-init build export HIVEMIND_PULL_POLICY=never export HIVEMIND_IMAGE_DIGEST=$(docker image inspect hivemind:latest --format '{{.Id}}') -
Initialize the stores, once each. None of these commands recreates a store that already exists.
docker compose --profile operational-init run --rm --no-deps hivemind-operational-init docker compose --profile sqlite-init run --rm --no-deps hivemind-sqlite-init docker compose --profile sqlite-init run --rm --no-deps graph-sqlite-init -
Create the authority store, which records the installation, its tenant and its authentication mode. Without authentication it needs no owner email and prints no secret.
docker compose run --rm --no-deps hivemind \ python -m live_mem.auth_install_cli --store-path /data/core/authority.sqliteIt prints one JSON line with
"status": "ok"and the new deployment, instance and tenant identifiers. -
Start the stack and wait until every service reports healthy.
docker compose up -d --wait -
Create a space for the test. The empty
--token ''matters: without it the client falls back to the key stored in.env, and this profile refuses any credential.uv run python scripts/mcp_cli.py --url http://localhost:8080 --token '' \ space create quickstart --rules "Quickstart test space." -
Write a first note in it.
uv run python scripts/mcp_cli.py --url http://localhost:8080 --token '' \ live note quickstart observation "My first Hivemind note." -
Read it back.
uv run python scripts/mcp_cli.py --url http://localhost:8080 --token '' \ live read quickstart
Verify¶
Check the three layers separately.
-
The service answers.
curl -sS http://localhost:8080/healthThe JSON shows
"version": "1.7.0"and"auth_mode": "off". Itsstatusishealthywhen the chat and embedding providers are configured, anddegradedwith "LLMaaS not configured" when they are not; both are expected at this point. -
The caller is what this profile says it is.
uv run python scripts/mcp_cli.py --url http://localhost:8080 --token '' whoami --jsonThe JSON reports
"auth_mode": "off","scope": "local-common"and"authenticated": false. That last value is the point of this profile: nothing about the caller is verified. -
Short memory works. The read in step 10 lists your note. Add
--jsonto that command to see its provenance: notes written in this profile record"authorship_kind": "local_declared"and"auth_mode": "off", and a note written without an agent name belongs to the shared actorlocal.
You can also open http://localhost:8080/ in a browser: the Portal shows a
permanent notice that the instance runs in local mode without authentication,
and no sign-in page.
What works without a provider¶
| Memory level | Without providers | With chat and embedding providers |
|---|---|---|
| Short memory (notes) | Works | Works |
Mid memory (mid_consolidate, memory bank) |
The consolidation job fails: No chat inference provider is configured |
Works; run mid_consolidate yourself, automatic consolidation is off in this profile |
Long memory (long_push, long_ingest_async, long_query) |
Unavailable | Works |
Provider settings live in .env; Choose inference providers
explains them, and the canonical reference is
Inference providers and configuration.
Connect an assistant¶
Any MCP client on the same computer can use http://localhost:8080/mcp with no
token. Give each client its own agent name with the X-Hivemind-Agent header,
so its notes are labelled; two clients with the same name share one label. For
Claude Code:
claude mcp add --transport http hivemind http://localhost:8080/mcp \
--header "X-Hivemind-Agent: claude-code"
claude mcp list
The list shows hivemind as connected. Codex and the other details are in
Local mode.
The Connect guides describe authenticated instances,
where each agent has a real credential.
Stop and remove¶
Run these from the repository directory, in a shell where COMPOSE_FILE is set
as in step 3.
-
Stop, keeping all memory:
docker compose down -
Start again later: export
COMPOSE_FILE,HIVEMIND_PULL_POLICYandHIVEMIND_IMAGE_DIGESTas in steps 3 and 4 (do not rebuild), then rundocker compose up -d --wait. Do not run the initializers again. -
Remove the installation and everything it stored. This deletes every space and note, and cannot be undone:
docker compose down --volumes --rmi all rm .env--rmi allalso removes the Neo4j and Qdrant images, which other Docker projects on the computer may use.
Troubleshoot¶
| Symptom | Cause | Fix |
|---|---|---|
docker compose cannot find a service such as hivemind-sqlite-init |
COMPOSE_FILE is not set in this shell |
Export it as in step 3. |
Core exits with code 3 and auth_runtime_authority |
HIVEMIND_IMAGE_DIGEST is not set in this shell |
Export it as in step 4, then start again. |
Core exits with StoreError; operational_identity |
The operational store was never initialized | Run hivemind-operational-init once (step 5). |
Core exits with HIVEMIND_AUTH=off requires HIVEMIND_LOCAL_INGRESS |
Only docker-compose.yml was used |
Use both Compose files (step 3). |
Core restarts with core_already_active, then waits |
Core crashed or was killed; its previous lease has not expired | Wait about one minute. Do not delete the store. |
421 local_host_rejected |
The URL host or port is not localhost:<port> or 127.0.0.1:<port> |
Use the published port on localhost; no tunnel, LAN address or [::1]. |
400 local_mode_rejects_credentials |
A client still sends a token | Remove it; for the command-line client pass --token ''. |
400 invalid_local_agent_declaration |
The agent name is empty, repeated or malformed | Use 1 to 64 letters, digits, ., _ or -, starting with a letter or digit. |
/health is degraded, "LLMaaS not configured" |
No inference provider in .env |
Expected without providers; short memory still works. |
mid_consolidate reports "No new notes to consolidate" while notes exist |
Without agent, it consolidates only the caller's own notes |
Pass agent="<agent-name>", or agent="" for every pending note. |
not_applicable_in_local_mode |
The tool needs an identity (tokens, invitations, personal spaces, publication) | Not available without authentication. |
Never delete or reinitialize a store to make a failure look like a fresh start. The complete table is under Diagnose in Local mode.
Next¶
- Install locally with authentication on, so that each agent has its own identity.
- Connect an assistant to an authenticated instance.
- Tutorial: share a decision, which needs an authenticated instance.