This page is a quick-reference table of all AutoMem environment variables, grouped by category. For full documentation of each variable including validation rules, behavior details, and configuration examples, see Configuration Reference .
Variables are loaded from multiple sources in priority order:
Process environment — export VAR=value or variables injected by the platform (Railway, Docker)
Project .env — File in repository root
User config — ~/.config/automem/.env (personal overrides, never committed)
Variables set earlier in this list take precedence over later sources.
Variable Required Default Description FALKORDB_HOSTYes localhostFalkorDB graph database hostname FALKORDB_PORTYes 6379FalkorDB port FALKORDB_PASSWORDNo unset FalkorDB/Redis password (set in production) FALKORDB_GRAPHNo memoriesGraph name for Cypher queries GRAPH_NAMENo memoriesAlias for FALKORDB_GRAPH PORTNo 8001Flask API server port
AutoMem operates in graph-only mode if these variables are not set. Qdrant enables semantic vector search but is optional.
Variable Required Default Description QDRANT_URLNo unset Qdrant API endpoint (HTTP or HTTPS) QDRANT_API_KEYNo unset Qdrant authentication key (required for Qdrant Cloud) QDRANT_COLLECTIONNo memoriesCollection name for memory vectors COLLECTION_NAMENo memoriesAlias for QDRANT_COLLECTION VECTOR_SIZENo 3072Embedding dimension — must match collection (768/1024/2048/3072)
Variable Required Default Description AUTOMEM_API_TOKENYes unset Token for all standard API operations ADMIN_API_TOKENYes unset Token for admin endpoints (/admin/*, /enrichment/reprocess) API_TOKENNo unset Backward-compatible alias for AUTOMEM_API_TOKEN ADMIN_TOKENNo unset Backward-compatible alias for ADMIN_API_TOKEN
See Authentication for token generation and usage details.
Variable Required Default Description EMBEDDING_PROVIDERNo autoProvider selection: auto / voyage / openai / local / ollama / placeholder EMBEDDING_MODELNo text-embedding-3-largeOpenAI model name OPENAI_API_KEYNo unset OpenAI (or compatible provider) API key OPENAI_BASE_URLNo unset Custom base URL for OpenAI-compatible APIs (OpenRouter, LiteLLM, vLLM) VOYAGE_API_KEYNo unset Voyage AI API key VOYAGE_MODELNo voyage-4Voyage model name (voyage-4, voyage-4-large) OLLAMA_BASE_URLNo http://localhost:11434Ollama server endpoint OLLAMA_MODELNo nomic-embed-textOllama embedding model EMBEDDING_BATCH_SIZENo 20Items per batch API call (reduces costs 40–50%) EMBEDDING_BATCH_TIMEOUT_SECONDSNo 2.0Max wait before flushing a partial batch
Background enrichment runs after each memory is stored — it generates similarity links, entity tags, and summaries.
Variable Required Default Description ENRICHMENT_MAX_ATTEMPTSNo 3Retry limit before marking a job failed ENRICHMENT_SIMILARITY_LIMITNo 5Number of semantic neighbors to link ENRICHMENT_SIMILARITY_THRESHOLDNo 0.8Min cosine similarity for SIMILAR_TO edge ENRICHMENT_IDLE_SLEEP_SECONDSNo 2Worker sleep duration when queue is empty ENRICHMENT_FAILURE_BACKOFF_SECONDSNo 5Delay between retry attempts ENRICHMENT_ENABLE_SUMMARIESNo trueAuto-generate memory summaries ENRICHMENT_SPACY_MODELNo en_core_web_smspaCy model for NER (if installed)
Background maintenance cycles that decay, cluster, and optionally forget low-value memories.
Variable Required Default Description CONSOLIDATION_TICK_SECONDSNo 60Scheduler check interval CONSOLIDATION_DECAY_INTERVAL_SECONDSNo 86400Decay cycle frequency (1 day) CONSOLIDATION_DECAY_IMPORTANCE_THRESHOLDNo 0.3Min importance to process in decay CONSOLIDATION_CREATIVE_INTERVAL_SECONDSNo 604800Creative association cycle frequency (1 week) CONSOLIDATION_CLUSTER_INTERVAL_SECONDSNo 2592000Cluster pattern cycle frequency (1 month) CONSOLIDATION_FORGET_INTERVAL_SECONDSNo 0Forget cycle frequency (disabled by default) CONSOLIDATION_ARCHIVE_THRESHOLDNo 0.2Relevance threshold for archiving CONSOLIDATION_DELETE_THRESHOLDNo 0.05Relevance threshold for deletion CONSOLIDATION_GRACE_PERIOD_DAYSNo 30Min age in days before a memory can be forgotten CONSOLIDATION_IMPORTANCE_PROTECTION_THRESHOLDNo 0.7Memories above this importance are never forgotten CONSOLIDATION_PROTECTED_TYPESNo Decision,PatternComma-separated types to never forget
Variable Required Default Description SEARCH_WEIGHT_VECTORNo 0.25Vector similarity weight SEARCH_WEIGHT_KEYWORDNo 0.15Keyword/TF-IDF matching weight SEARCH_WEIGHT_TAGNo 0.10Tag overlap weight SEARCH_WEIGHT_IMPORTANCENo 0.05User-assigned importance weight SEARCH_WEIGHT_RECENCYNo 0.10Freshness boost weight SEARCH_WEIGHT_CONFIDENCENo 0.05Memory confidence weight SEARCH_WEIGHT_EXACTNo 0.25Content token overlap weight RECALL_MAX_LIMITNo 100Maximum results returned by /recall RECALL_RELATION_LIMITNo 5Max related memories per result RECALL_EXPANSION_LIMITNo 20Max memories added via expand_relations=true
Variable Required Default Description SYNC_CHECK_INTERVAL_SECONDSNo 300Frequency of drift checks between FalkorDB and Qdrant (5 minutes) SYNC_AUTO_REPAIRNo trueAutomatically queue missing embeddings when drift detected
Variable Required Default Description MEMORY_TYPESNo Decision,Pattern,Preference,Style,Habit,Insight,Context,MemoryComma-separated valid memory types RELATIONSHIP_TYPESNo RELATES_TO,LEADS_TO,...Comma-separated valid relationship types ALLOWED_RELATIONSNo Same as RELATIONSHIP_TYPES Alias for backward compatibility CLASSIFICATION_MODELNo gpt-4o-miniOpenAI model used for content classification fallback
Variable Required Default Description LOG_LEVELNo INFOPython logging level (DEBUG, INFO, WARNING, ERROR) FLASK_ENVNo productionFlask environment mode
These variables configure the mcp-automem client package, not the server.
Variable Required Default Description AUTOMEM_ENDPOINTYes http://127.0.0.1:8001HTTP URL of the AutoMem server AUTOMEM_API_KEYNo unset API key for authenticated instances (preferred name) AUTOMEM_API_TOKENNo unset Alternative name for the API key AUTOMEM_LOG_LEVELNo unset Set to debug for verbose MCP client logging AUTOMEM_PROCESS_TAGNo unset Process title tag for safe process management MCP_PROCESS_TAGNo unset Alternative process tag variable
The client checks API key variables in this priority order: AUTOMEM_API_KEY → AUTOMEM_API_TOKEN → AUTOMEM_TOKEN → API_KEY.
Used only for the AutoMem test suite — do not set in production.
Variable Required Default Description AUTOMEM_RUN_INTEGRATION_TESTSNo 0Enable integration test suite AUTOMEM_START_DOCKERNo 0Auto-start Docker Compose before tests AUTOMEM_STOP_DOCKERNo 0Auto-stop Docker after tests AUTOMEM_TEST_BASE_URLNo http://localhost:8001Test target URL AUTOMEM_ALLOW_LIVENo 0Allow tests against non-localhost URLs AUTOMEM_TEST_API_TOKENNo unset API token for integration tests AUTOMEM_TEST_ADMIN_TOKENNo unset Admin token for integration tests
AUTOMEM_API_TOKEN = your-token-here
ADMIN_API_TOKEN = your-admin-token-here
AUTOMEM_API_TOKEN = your-token-here
ADMIN_API_TOKEN = your-admin-token-here
QDRANT_URL = http://localhost:6333
AUTOMEM_API_TOKEN = your-token-here
ADMIN_API_TOKEN = your-admin-token-here
EMBEDDING_PROVIDER = ollama
OLLAMA_BASE_URL = http://localhost:11434
OLLAMA_MODEL = nomic-embed-text
QDRANT_URL = http://localhost:6333
FALKORDB_HOST = falkordb.railway.internal
FALKORDB_PASSWORD = <generated>
AUTOMEM_API_TOKEN = <generated>
ADMIN_API_TOKEN = <generated>
QDRANT_URL = https://your-cluster.cloud.qdrant.io
QDRANT_API_KEY = your-qdrant-key
"AUTOMEM_ENDPOINT" : " https://your-service.railway.app " ,
"AUTOMEM_API_KEY" : " your-api-token "
Never commit .env files — add to .gitignore
Use strong tokens — minimum 32 bytes: openssl rand -hex 32
Use separate tokens for AUTOMEM_API_TOKEN and ADMIN_API_TOKEN
Set FALKORDB_PASSWORD in all production environments
Use HTTPS for all external service endpoints (Qdrant Cloud, OpenAI, Voyage)
Use Railway private networking — never expose FalkorDB publicly
Avoid query parameter auth (?api_key=) in production — tokens appear in server logs