Skip to main content
agentmemory runs keyless by default: no LLM key, no embedding key, no API auth. Copy .env.example to ~/.agentmemory/.env (agentmemory init does this) and uncomment only what you need. agentmemory doctor verifies which flags the daemon actually reads.

LLM provider

Pick one. Detection order: OPENAI_API_KEY, MINIMAX_API_KEY, ANTHROPIC_API_KEY, GEMINI_API_KEY, OPENROUTER_API_KEY, then noop.
No key is required to run. Without one, observations are indexed via zero-LLM synthetic compression and hybrid search still works; LLM summarization, reflection, consolidation, graph extraction, and crystallization stay off until a provider key is set.

Embedding provider

Detection order: EMBEDDING_PROVIDER override, GEMINI_API_KEY, OPENAI_API_KEY, VOYAGE_API_KEY, COHERE_API_KEY, OPENROUTER_API_KEY, then local (Xenova/all-MiniLM-L6-v2, 384-dim). Without any key, hybrid search runs BM25-only.

Auth

Set AGENTMEMORY_SECRET before exposing the daemon beyond loopback. Mesh sync refuses to run without it, and the wired MCP entries pass it through to agents via ${AGENTMEMORY_SECRET:-}, so one export covers every connected client.

Search tuning

Behavior flags

CLI and runtime knobs

Ports and engine

The engine version is pinned at 0.11.2 and startup refuses to adopt any other engine on the port; upgrade pulls only the pinned iiidev/iii:0.11.2 image, never a newer engine. Only override AGENTMEMORY_III_VERSION if you know the target version is wire-compatible.

Bridges

Last modified on August 15, 2026