.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.