Skip to content

Configuration

The settings an administrator is expected to set or adjust on a Hivemind 1.7 deployment, grouped by concern, with the canonical source for each group.

How configuration works

Hivemind reads its settings from the process environment and from the deployment's .env file; a process environment variable wins over .env. The Core service and the embedded long runtime read the same file. Most changes take effect after the affected services restart.

  • Start from the commented .env.example. Its values are suggestions for a new deployment; where a value matters, this page names the built-in default.
  • Settings are validated at startup. An out-of-range value, an unreadable policy file or a mix of inference families refuses startup with an explicit error instead of falling back to a default.
  • Operator tools → Configuration in the Portal shows the effective settings, reports secrets as present or absent only, and prepares a .env change you apply yourself. It writes nothing and restarts nothing; see Portal configuration.

Never paste a secret into a ticket, a log or an instruction file. Secrets belong in the deployment's private .env or in the files named below.

Storage

The standard deployment stores memory in an external S3-compatible bucket that honours conditional writes. Hivemind ships no S3 server.

Setting Effect
S3_ENDPOINT_URL, S3_BUCKET_NAME, S3_REGION_NAME The bucket Hivemind uses. With S3 storage, Hivemind refuses to start while they are unset.
S3_ACCESS_KEY_ID, S3_SECRET_ACCESS_KEY The bucket credentials. Secret.
S3_SIGNATURE_MODE Request signing mode expected by your provider.
S3_SSE, S3_SSE_KMS_KEY_ID Server-side encryption, strongly recommended in production when your provider supports it.
STORAGE_BACKEND, SQLITE_*, GRAPH_STORAGE_BACKEND, GRAPH_SQLITE_* Local SQLite object storage instead of S3. Keep the default s3 for a shared deployment.

Sources: S3 destination admission, SQLite storage, Deployment guide.

Authority store

The authority store holds users, agents, credentials, grants, tenants and their audit trail. Back it up with the Core data volume.

Setting Effect
AUTHORITY_BACKEND sqlite (default) or postgres. The 1.7 install, import and recovery commands support SQLite only.
AUTHORITY_STORE_PATH Location of the SQLite authority database on the Core data volume.
AUTHORITY_POSTGRES_DSN_FILE, AUTHORITY_POSTGRES_SCHEMA The file holding the PostgreSQL connection string, and the schema to use. The file is secret.

An authority store from an earlier 1.7 candidate must be upgraded offline to the schema the image requires before Core starts; see Upgrade.

Sources: Fresh installation, Deployment guide.

Sign-in and sessions

Setting Effect
HIVEMIND_AUTH on (default) or off. off is local mode without authentication, selected only through the local Compose profile; changing it on existing storage needs the offline mode-change procedure.
AUTH_OIDC_CONNECTIONS_FILE The file that declares identity provider connections for browser sign-in.
AUTH_OIDC_STANDARD_SSO_CONNECTIONS Connections that accept an open provider session as identity confirmation. Every other connection stays strict.
AUTH_RUNTIME_OAUTH_POLICY_FILE The OAuth server policy for MCP clients: issuer, allowed clients, token lifetimes and quotas. Refused with authentication off.
AUTH_BROWSER_SESSION_SECONDS Inactivity window of a Portal session. Default 30 days.
AUTH_BROWSER_SESSION_ABSOLUTE_SECONDS Absolute lifetime of a Portal session, never extended by activity. Default 90 days; must not be shorter than the inactivity window.
AUTH_BROWSER_STEP_UP_SECONDS How long an identity confirmation for protected actions stays valid. Default 15 minutes, between 1 minute and 1 hour.
AUTH_BROWSER_SESSIONS_PER_USER, AUTH_BROWSER_SESSIONS_TOTAL Live Portal sessions per person (default 8) and per deployment (default 256).
AUTH_BROWSER_TRUSTED_PROXIES Proxies allowed to forward the client address and scheme, when a TLS proxy runs in front of Core.

Without directory provisioning, session lifetimes also bound how long a person removed upstream keeps an open session; see Identity and access.

Sources: OIDC installation, OIDC connections file, Native OAuth for MCP, Local mode.

Inference providers

Consolidation and long extraction use a chat provider; long ingestion and search use an embedding provider. Without them, short memory still works and /health reports degraded.

Configure one of two families, never both: startup refuses a mix.

Family Settings Use
Split roles INFERENCE_CHAT_* and INFERENCE_EMBEDDING_* Each role has its own provider, endpoint, key and model. Recommended for new deployments.
Unified (legacy) LLMAAS_* One OpenAI-compatible endpoint serves both roles. Still supported in 1.x, with a deprecation warning.

The embedding model and its vector dimension must match what the provider returns. Changing either for existing long memory needs a reviewed rebuild.

Sources: Inference providers, Provider profiles.

Memory behaviour

Setting Effect
DEFAULT_RULES_FILE Rules applied to a space created without rules. Empty selects the shipped standard rules.
PERSONAL_RULES_FILE Rules applied when a personal space is initialized. Empty selects the shipped personal rules.
AUTO_CONSOLIDATION_THRESHOLD Default number of waiting notes that starts automatic consolidation (50; 0 disables it). It applies to a space only after a person with Manage has authorized automatic consolidation for it, signed in to the Portal; a space that was never authorized does not consolidate automatically, whatever this value. The authorization can set its own threshold. No automatic consolidation runs with authentication off.
MID_AUTO_COMPACT Compact oversized bank files after a successful consolidation. Default true.
MID_AUTO_ARCHIVE, MID_AUTO_ARCHIVE_SPACES Archive bank captures into long memory. Default true. The optional list restricts archiving to the named spaces; give it a value whenever you set it.
BANK_FILE_MAX_SIZE Target size of one bank file in UTF-8 bytes, used by compaction. Not a hard cap.
CONSOLIDATION_TIMEOUT, CONSOLIDATION_COOLDOWN_SECONDS Time allowed for one model call during consolidation (default 1,800 seconds), and the minimum pause between consolidations of one space (default 60 seconds; 0 disables it).
SHORT_TRASH_RETENTION_DAYS Days a consolidated note stays restorable. Default 30, from 1 to 3650.

Sources: Memory operations, .env.example.

Portal activity

Setting Effect
ANALYTICS_ENABLED Collect activity history for the Portal. Default true. Turning it off and on again starts a new history.
ANALYTICS_RETENTION_DAYS Days of history kept. Default 62, from 31 to 400.
HOURLY_SUMMARIES_ENABLED Hourly summaries of each space's activity. Default false. When on, bounded note excerpts are sent to the chat provider. Needs analytics; never runs with authentication off.
HOURLY_SUMMARIES_RETENTION_DAYS, HOURLY_SUMMARIES_CONCURRENCY Days a summary is served (1 to 62) and concurrent provider requests (1 to 4).

Long memory runtime

long memory runs inside the standard stack, with Neo4j and Qdrant supplied by Compose.

Setting Effect
NEO4J_PASSWORD Required; the stack does not start without it. Secret.
QDRANT_API_KEY Only when you enable Qdrant authentication. Secret.
LONG_EMBEDDED_TOKEN Leave empty: Hivemind creates and keeps its own internal credential for the long runtime. Set it only to pin or rotate that secret yourself.

Sources: Deployment guide.

Project Mesh

Project Mesh is on by default. A deployment that keeps it on needs a complete identity.

Setting Effect
HIVEMIND_MESH_ENABLED true by default. Set false for a deliberate single-node deployment.
HIVEMIND_MESH_PUBLIC_URL The public HTTPS address peers use.
HIVEMIND_MESH_PRIVATE_KEY The deployment's Ed25519 identity key. Secret.
HIVEMIND_MESH_DISPLAY_NAME The name peers see.

Invitations are valid for 3,600 seconds; that value is fixed.

Source: Project Mesh.

Network and limits

Setting Effect
SITE_ADDRESS, WAF_PORT Address and port the bundled WAF serves.
PROXY_URL Outbound HTTP proxy for S3 and provider calls.
HIVEMIND_INTERNAL_PORT Core's internal port for the long runtime. Never publish or proxy it.
MCP_REQUEST_MAX_BYTES Largest MCP request accepted. Default 75 MiB, sized for one 50 MiB document.
RESPONSE_MAX_BYTES Largest tool response. Default 512 KiB.
BACKUP_TRANSFER_CONCURRENCY Concurrent backup uploads or downloads per Core process. Default 1.

Sources: Deployment guide, Production checklist.

Next