MEMORA_DB_PATH
optional
Local SQLite database path, default ~/.local/share/memora/memories.db.
MEMORA_STORAGE_URI
optional
Cloud storage URI (d1:// or s3://), used when MEMORA_DATABASES is unset.
MEMORA_DATABASES
optional
JSON registry of {name: uri} for multi-database routing (streamable-http only).
MEMORA_DEFAULT_DB
optional
Registry database name bound to a bare /mcp path.
MEMORA_CLOUD_ENCRYPT
optional
Encrypt local file before uploading to S3/R2 (true/1/yes).
MEMORA_CLOUD_COMPRESS
optional
Compress local file before uploading to S3/R2.
MEMORA_CACHE_DIR
optional
Local cache directory for an S3/R2-synced database.
MEMORA_ALLOW_ANY_TAG
optional
Set to 1 to allow any tag without allowlist validation.
MEMORA_TAG_FILE
optional
Path to a JSON file containing the allowed tags array.
MEMORA_TAGS
optional
Comma-separated list of allowed tags.
MEMORA_HOST
optional
Bind address for HTTP transports, default 127.0.0.1.
MEMORA_PORT
optional
Bind port for HTTP transports, default 8000.
MEMORA_GRAPH_PORT
optional
Knowledge graph visualization server port, default 8765.
MEMORA_TRANSPORT
optional
Transport: stdio (default), sse, or streamable-http.
MEMORA_TOOL_PROFILE
optional
Tool subset exposed: full (43), leader (19), or agent (12).
MEMORA_MAX_SESSIONS
optional
Hard ceiling on concurrent MCP sessions, default 128, 0 disables.
MEMORA_MAX_INIT_PER_MIN
optional
New sessions admitted per minute, default 120, 0 disables.
MEMORA_MAX_INIT_BODY_BYTES
optional
Max initialize request body size, default 65536.
MEMORA_SESSION_IDLE_TIMEOUT
optional
Seconds before an idle session is reaped, default 1800, 0 disables.
MEMORA_HEALTH_TTL
optional
Seconds a readiness snapshot may be served before refresh, default 10.
MEMORA_HEALTH_TIMEOUT
optional
Bound on one refresh pass and each store probe, default 15.
MEMORA_HEALTH_REFRESH_INTERVAL
optional
How often the server refreshes readiness on its own, 0 = poll-only.
MEMORA_HEALTH_MAX_STALE
optional
Age after which a cached result may not be reported ready, default 60.
MEMORA_STALE_DAYS
optional
Days before a TODO/issue is stale; insights default 14, graph UI default 30.
MEMORA_EMBEDDING_MODEL
optional
Embedding backend: openai (default), sentence-transformers, or tfidf.
SENTENCE_TRANSFORMERS_MODEL
optional
sentence-transformers model, default all-MiniLM-L6-v2.
MEMORA_EMBEDDING_BASE_URL
optional
Embedding provider base URL; must be set together with MEMORA_EMBEDDING_API_KEY.
MEMORA_EMBEDDING_STRICT
optional
Recommended set to 1: fail hard on embedding errors instead of silent TF-IDF fallback.
OPENAI_BASE_URL
optional
OpenAI-compatible LLM base URL (e.g. OpenRouter).
OPENAI_EMBEDDING_MODEL
optional
Model ID for the openai embedding backend; must exist on the embedding host.
MEMORA_LLM_ENABLED
optional
Enable LLM-powered dedup comparison, default true.
MEMORA_LLM_MODEL
optional
Dedup comparison model, default gpt-4o-mini.
MEMORA_LLM_TIMEOUT
optional
Seconds the OpenAI client waits, default 60.
MEMORA_REWRITE_MODEL
optional
RAG query rewrite model for the graph chat panel; falls back to MEMORA_LLM_MODEL.
MEMORA_VECTOR_SCAN_PAGE_SIZE
optional
Rows per page when loading embeddings from D1; use 100 on D1.
CHAT_MODEL
optional
Local graph chat panel model; falls back to MEMORA_LLM_MODEL.
MEMORA_CLOUD_GRAPH_ENABLED
optional
Set true/1/yes to notify the hosted graph on writes.
MEMORA_CLOUD_GRAPH_WORKER_URL
optional
Worker base URL for write broadcasts.
MEMORA_CLOUD_GRAPH_DEBOUNCE
optional
Seconds to batch rapid writes before broadcasting, default 1.0.
MEMORA_CLOUD_GRAPH_SYNC_SCRIPT
optional
Sync script path captured at startup.
AWS_PROFILE
optional
AWS credentials profile from ~/.aws/credentials (useful for R2).
AWS_ENDPOINT_URL
optional
S3-compatible endpoint for R2/MinIO.
R2_PUBLIC_DOMAIN
optional
Public domain for R2 image URLs.