Skip to content

Install in production

A production Hivemind instance uses HTTPS, an external S3-compatible object store and a durable Core authority database. The Core data volume is required in S3 mode too: S3 contains memory objects and exported audit history, while the Core private volume (hivemind_core_data, mounted at /data/core) holds the authority store, the private authentication stores and their keys, the internal Graph transport credential and Graph's binding. Back that volume up securely as one unit, together with an off-host copy of the memory objects taken in the same stopped window: neither recovers the instance without the other (see Back up and restore). Nothing secret is kept on the host besides .env.

Before handing over an instance, go through the production checklist.

Use SQLite for the supported 1.7.0 operator workflow. PostgreSQL exists as a store backend, but operator installation, import and recovery for it are not supported in this release.

This is the fresh-install path. Existing 1.6 deployments follow the 1.6 to 1.7 upgrade guide. A native-v3 development registry is not migrated; reinstall that instance.

Prepare the host and configuration

Use a supported Docker Engine and Compose installation, a public HTTPS origin, a private S3 destination, and complete chat and embedding inference profiles (see Choose inference providers). Hivemind does not bundle an object store. Before any install command, check with the AWS CLI commands of its storage witness that the S3 service applies Hivemind's create, replace and delete requests exactly and lists them completely. Their If-None-Match/If-Match conditions may be honored or ignored; on a provider that ignores them the residual stated there applies, so keep important data on a provider that honors them.

Authority snapshots also need ordinary multipart upload, without any condition.

Review the deployment guide, security model and S3 destination admission.

Prepare .env from .env.example, keep it mode 0600, and set the S3, Neo4j, inference, and public-origin configuration. Keep credentials in a secret manager or protected environment file, never in commands or source control. The current Compose stack also requires ADMIN_BOOTSTRAP_KEY to be a strong, unique value of at least 32 characters. It is not the first owner's store credential; the first owner is established by the installer and verified login. Use the bundled WAF with its own TLS certificate or a trusted upstream TLS proxy. For browser sign-in, configure AUTH_BROWSER_TRUSTED_PROXIES for the actual immediate WAF address or subnet; do not trust arbitrary forwarded headers. With an upstream proxy, restrict the WAF's plain HTTP listener to that proxy and configure its forwarded HTTPS information as described in the deployment guide.

Install and start

Follow the fresh-install guide for the exact commands. It initializes the volumes, admits a new S3 destination, creates the authority store and its first pending owner, and records the selected bucket. Set S3_BUCKET_NAME to that bucket in the protected configuration. The first owner can activate local authentication with the one-time setup code printed by the installer, or sign in with the same verified email once the identity provider is configured. Deliver the setup code privately. The installer does not create a v3 registry.

The base Compose configuration mounts hivemind_core_data at /data/core; docker-compose.auth17.yml selects the store backend, keeps Core's internal credential on that volume and mounts only its graph/ directory, read-only, into Graph. It requires Docker Compose 2.30 or later. Graph takes the auth mode and epoch from Core's store answer; managed LONG writes are admitted by Core commit tickets served from the authority store (#1777); Graph store reads use #1758. The deploy script starts that configuration using one locally inspected immutable Core image digest:

HIVEMIND_IMAGE=registry.example/hivemind:release scripts/authority-compose.sh
docker compose -f docker-compose.yml -f docker-compose.auth17.yml ps
curl -fsS https://hivemind.example.org/health

Use the actual previously pulled release image. The script never builds or pulls: build the WAF and Graph images and pull Neo4j and Qdrant beforehand, as in Deploy a test server. The script passes its digest to Core for the startup audit; Core does not receive the Docker socket. Verify service health, first-owner login, an agent's scoped credential and an invalid bearer refusal before handing the instance to users, and complete the production checklist. Core also runs the conditional-write witness at startup. A failed witness leaves Core serving but refuses MID writes with auth17_commit_unqualified and the witness code. Read it with python -m live_mem.core.maintenance_cli status in the Core container (storage_qualification) or in the Core log line storage_qualification code=… step=…; fix the backend and restart Core. /health does not report the witness: native_auth_routes stays ready.

Operate and recover

Core schedules an authority snapshot daily and audit export hourly, plus a final audit export on clean shutdown; no additional Compose service is needed. Local audit retention defaults to 90 days. Keep exported audit history off-host and exclude it from destructive bucket lifecycle rules. Authority snapshots cover the database only and never contain the memory: back up the Core private volume as one unit, and copy the memory objects in the bucket off-host, in the same window with Core stopped. Restore both from the same recovery point before any service starts, then the operational store from its snapshot, as in Back up and restore. Core also publishes daily snapshots of the operational volume, which holds the only copy of Analytics events not yet exported; restore it after the authority store, as described in the operational-store contract. Monitor job errors and verify snapshots, volume backups and exports; the schedule alone is not a restore test.

The fresh-install guide's recovery procedure explains manual snapshot, audit verification, restore to an empty store and the separate audit-namespace procedure when exports are ahead of a snapshot. Stop Core and retain the original store and exports before recovery. A populated restore target is refused. Never replace or delete the evidence of an interrupted recovery to make a retry appear empty.

Give each agent its own credential and the minimum per-space grant it needs; share credentials privately. Use the Portal's identity and access controls for human and agent administration, and the client connection guides after validating the instance. Project Mesh pairing remains a separate, explicit operation.