Skip to content

LTM Environment Variables

memtomem (LTM) uses pydantic-settings with env_prefix + env_nested_delimiter="__". Nested settings use double underscore — MEMTOMEM_EMBEDDING__PROVIDER, not MEMTOMEM_EMBEDDING_PROVIDER.

Resolution order (highest priority first): CLI flags → environment variables → config file → built-in defaults.

This public reference tracks the complete memtomem 0.7.13 configuration surface. Options are intentionally mirrored here rather than reduced to a curated subset. STM settings (prefix MEMTOMEM_STM_) are listed in STM Environment Variables.

VariableDescriptionDefault
MEMTOMEM_STORAGE__BACKENDStorage backend"sqlite"
MEMTOMEM_STORAGE__SQLITE_PATHSQLite database file path"~/.memtomem/memtomem.db"
MEMTOMEM_STORAGE__COLLECTION_NAMELogical collection name"memories"
VariableDescriptionDefault
MEMTOMEM_EMBEDDING__PROVIDERnone / onnx / ollama / openai"none"
MEMTOMEM_EMBEDDING__MODELModel name for the chosen provider""
MEMTOMEM_EMBEDDING__DIMENSIONVector dimension (must match model)0
MEMTOMEM_EMBEDDING__ONNX_VARIANTLocal ONNX precision: fp32, int8-arm64, int8-avx2, int8-avx512, or int8-avx512-vnni. Changing it requires a restart and an explicit index migration."fp32"
MEMTOMEM_EMBEDDING__ONNX_ARTIFACT_PATHDirectory holding a locally exported quantized artifact with a checksummed manifest.json. Required for every non-fp32 variant; there is no automatic fallback.""
MEMTOMEM_EMBEDDING__BASE_URLOllama / OpenAI-compatible endpoint""
MEMTOMEM_EMBEDDING__API_KEYAPI key for paid providers""
MEMTOMEM_EMBEDDING__BATCH_SIZETexts per embedding batch64
MEMTOMEM_EMBEDDING__ONNX_BATCH_SIZETexts per local FastEmbed/ONNX inference batch; runtime-mutable8
MEMTOMEM_EMBEDDING__MAX_SEQUENCE_TOKENSActual-token cap per local ONNX input; 0 restores the model limit, except under the E5 profile noted below. Restart after changing it and force-reindex existing content so vectors use one policy.1024
MEMTOMEM_EMBEDDING__ONNX_CPU_MEM_ARENAReuse ONNX CPU allocations. Restart required; this allocator-only switch does not require re-indexing.false
MEMTOMEM_EMBEDDING__MAX_CONCURRENT_BATCHESMax parallel embedding batches4
MEMTOMEM_EMBEDDING__THREADSONNX Runtime thread cap (0 = ORT default)4
MEMTOMEM_EMBEDDING__PROGRESS_THRESHOLDEmit per-chunk progress only when a file produces more chunks than this threshold; 0 always emits32

Effective defaults under the ONNX E5 profile. With PROVIDER=onnx and no MODEL, Core selects multilingual-e5-small and fills in DIMENSION=384, MAX_SEQUENCE_TOKENS=512, THREADS=2 and ONNX_BATCH_SIZE=4 for every one of those you leave unset. The Default column above is the declared default, which is what applies outside that profile. Inside it, a DIMENSION other than 384 and a MAX_SEQUENCE_TOKENS other than 512 are rejected at startup rather than adjusted — including the declared 0 and 1024, if you set them explicitly.

VariableDescriptionDefault
MEMTOMEM_INDEXING__MEMORY_DIRSDirectories reactively re-indexed by the long-running memtomem-server file watcher (JSON list). Pre-existing files are not auto-scanned — seed them once with mm index <dir>, then the watcher picks up further edits. Populated by mm init when you opt in to AI agent memory enrollment.["~/.memtomem/memories"]
MEMTOMEM_INDEXING__PROJECT_MEMORY_DIRSProject-tier memory roots under .memtomem/memories or .memtomem/memories.local[]
MEMTOMEM_INDEXING__READ_ONLY_MEMORY_DIRSRoots memtomem indexes and searches but never rewrites. Must be disjoint from the writable roots.[]
MEMTOMEM_INDEXING__RETAIN_MISSING_DIRSDirectories whose files other tools delete on their own (Claude Code plans, Codex memories), where the indexed chunks are the only copy left. A missing source under one of these that is also under an index root stays searchable instead of being held, and is not offered for purge. Not an index root itself, and a source held for another reason (redaction_blocked, scan_unavailable) stays held. (JSON list, APPEND merge)[]
MEMTOMEM_INDEXING__SUPPORTED_EXTENSIONSFile extensions to index (JSON list)[".js",".json",".jsx",".md",".py",".toml",".ts",".tsx",".yaml",".yml"]
MEMTOMEM_INDEXING__MAX_CHUNK_TOKENSMaximum tokens per chunk512
MEMTOMEM_INDEXING__MIN_CHUNK_TOKENSMerge threshold for short chunks128
MEMTOMEM_INDEXING__AUTO_DISCOVERDeprecated one-shot migration trigger. Existing configs convert detected provider directories into explicit memory_dirs, persist them, and flip this field to false; new installs skip the migration. Use mm init --include-provider ... for new configuration.true
MEMTOMEM_INDEXING__EXCLUDE_PATTERNS.gitignore-syntax patterns (JSON list) that stack on top of the built-in credential denylist (oauth_creds.json, credentials*, id_rsa*, *.pem, *.key, .ssh/**, …). User !negation cannot override the built-in secret patterns.[]
MEMTOMEM_INDEXING__INDEX_MASKING_MANIFEST_PATHOwner-reviewed masking manifest naming exact source paths, content SHA-256 values, and complete-block line spans. A changed source or an invalid manifest falls back to the normal privacy guard, and masked chunks are read-only. It does not enable automatic masking.""
MEMTOMEM_INDEXING__TARGET_CHUNK_TOKENSGreedy semantic-pack target for short sibling sections. Set 0 to disable the pack pass.384
MEMTOMEM_INDEXING__CHUNK_OVERLAP_TOKENSToken overlap between adjacent chunks0
MEMTOMEM_INDEXING__CHUNK_MODEL_TOKENSComposed retrieval-input ceiling, including special tokens8192
MEMTOMEM_INDEXING__CHUNK_CONTEXT_TOKENSSeparate budget for the heading and description prefix512
MEMTOMEM_INDEXING__HARD_MAX_CHUNK_TOKENSExact body ceiling; 0 disables hard-budget mode. Requires a matching local tokenizer.0
MEMTOMEM_INDEXING__CHUNK_TOKENIZER_PATHLocal tokenizer.json for the embedding model, so hard-budget mode downloads no model""
MEMTOMEM_INDEXING__CHUNK_INPUT_PREFIXExact model-role prefix counted in the final input token budget (E5 uses passage: ). Restart required.""
MEMTOMEM_INDEXING__ENRICH_CHUNK_CONTEXTAdd cached LLM descriptions to the chunk context. Requires hard-budget mode.false
MEMTOMEM_INDEXING__STRUCTURED_CHUNK_MODEJSON/YAML/TOML chunking mode: original or recursive"original"
MEMTOMEM_INDEXING__PARAGRAPH_SPLIT_THRESHOLDSplit long prose into paragraphs above this token count800
MEMTOMEM_INDEXING__STARTUP_BACKFILLOn server start, run a one-shot scan over memory_dirs to catch files added while the server was downfalse
MEMTOMEM_INDEXING__WATCHER_BACKENDWatch backend: auto polls on macOS and uses native events elsewhere; native or polling override it"auto"
MEMTOMEM_INDEXING__WATCHER_POLL_INTERVAL_MSHow often the polling backend rescans the watched directories, 100–60000 ms; the native backend ignores it. A shorter interval picks an edit up sooner and costs more CPU while idle, in every server process that watches. A change undone between two scans is not seen. Restart the server to apply a change10000
MEMTOMEM_INDEXING__WATCHER_DEBOUNCE_MSQuiet period before automatic re-indexing, 1–30000 ms5000
MEMTOMEM_INDEXING__WATCHER_MAX_WAIT_MSMaximum event-collection window, 1–30000 ms, even under continuous edits30000
MEMTOMEM_INDEXING__AUTO_SUMMARIZEGenerate AI per-source summaries when LLM is configuredfalse
MEMTOMEM_INDEXING__SUMMARY_LANGUAGEOutput language for AI source summaries"en"
MEMTOMEM_INDEXING__SUMMARY_MAX_INPUT_CHARSMax source chars sent to the summary LLM3000
MEMTOMEM_INDEXING__SUMMARY_MAX_TOKENSSummary output token cap256

Path-glob → namespace mappings that auto-tag files at index time, so you don’t pass namespace= on every mem_index call.

VariableDescriptionDefault
MEMTOMEM_NAMESPACE__RULESJSON list of {path_glob, namespace} objects. pathspec.GitIgnoreSpec patterns, case-insensitive. {parent} and {ancestor:N} placeholders expand from the matched file path. Resolution order when a file is indexed: explicit namespace= param → the namespace its stored rows share → the namespace its day-file name declares (0.7.5+) → session binding → rules (first match) → enable_auto_ns → default_namespace. Since 0.7.2, a rule whose expanded namespace contains , or *, is !system, is blank, or is an agent-runtime: name the agent tools refuse is skipped like a rule whose placeholder expands to nothing, and resolution moves on.[]
MEMTOMEM_NAMESPACE__DEFAULT_NAMESPACEDefault namespace for new chunks. Since 0.7.2, a value that fails the same check stores chunks untagged (default), and mm config set refuses it"default"
MEMTOMEM_NAMESPACE__ENABLE_AUTO_NSDerive namespace from a file’s immediate parent folder when no explicit namespace or rule appliesfalse

Example (via config.d/namespace.json, APPEND-merged):

{"namespace": {"rules": [
{"path_glob": "docs/**", "namespace": "docs"},
{"path_glob": "projects/{parent}/**", "namespace": "proj/{parent}"}
]}}

Cross-encoder reranking runs fully locally by default — no external API required.

VariableDescriptionDefault
MEMTOMEM_RERANK__ENABLEDEnable reranking of hybrid search results; runtime-mutablefalse
MEMTOMEM_RERANK__PROVIDERfastembed (local ONNX) / cohere (external API) / local (sentence-transformers CrossEncoder, local). local needs sentence-transformers installed separately; no memtomem extra includes it. MEMTOMEM_RERANK__MODEL then takes a sentence-transformers model name (e.g. cross-encoder/ms-marco-MiniLM-L-6-v2). fastembed is usually preferable"fastembed"
MEMTOMEM_RERANK__MODELModel name; its form depends on the provider (a fastembed catalog ID, a Cohere Rerank model, or a sentence-transformers model name). With fastembed, for non-English content use onnx-community/gte-multilingual-reranker-base (341 MB; memtomem registers it with fastembed itself, so it needs no setup). jinaai/jina-reranker-v2-base-multilingual still works but is 1.1 GB and its model license (CC-BY-NC-4.0) does not allow commercial use. No mm init preset turns reranking on, so pair the model with MEMTOMEM_RERANK__ENABLED=true"Xenova/ms-marco-MiniLM-L-6-v2"
MEMTOMEM_RERANK__API_KEYOnly required when provider=cohere""
MEMTOMEM_RERANK__OVERSAMPLEPool multiplier over response_top_k. Pool size is max(response_top_k, min_pool, min(max_pool, int(oversample * response_top_k))).2
MEMTOMEM_RERANK__MIN_POOLFloor — reranker never sees fewer candidates than this20
MEMTOMEM_RERANK__MAX_POOLCap on the oversampled pool; a larger top_k or min_pool still wins200
MEMTOMEM_RERANK__TOP_KDeprecated legacy pool size; migrates to min_pool when present20
VariableDescriptionDefault
MEMTOMEM_SEARCH__DEFAULT_TOP_KDefault result count10
MEMTOMEM_SEARCH__BM25_CANDIDATESBM25 candidate pool size50
MEMTOMEM_SEARCH__DENSE_CANDIDATESDense vector candidate pool size50
MEMTOMEM_SEARCH__RRF_KReciprocal Rank Fusion constant60
MEMTOMEM_SEARCH__ENABLE_BM25Enable keyword retrievertrue
MEMTOMEM_SEARCH__ENABLE_DENSEEnable semantic vector retrievertrue
MEMTOMEM_SEARCH__RRF_WEIGHTSRRF weights for [BM25, Dense] (JSON list, REPLACE merge)[1,1]
MEMTOMEM_SEARCH__TOKENIZERFTS tokenizer: unicode61 or kiwipiepy"unicode61"
MEMTOMEM_SEARCH__CACHE_TTLSearch result cache TTL in seconds30
MEMTOMEM_SEARCH__SYSTEM_NAMESPACE_PREFIXESNamespace prefixes hidden from default namespace=None search (JSON list, APPEND merge). namespace="!system" applies the same exclusion explicitly, so it also overrides an active session or agent namespace; it is valid only as the whole value["archive:","agent-runtime:"]

Half-life decay multiplier applied to hybrid-search scores. Gradually deprioritises older chunks.

VariableDescriptionDefault
MEMTOMEM_DECAY__ENABLEDEnable time-based decay weightingfalse
MEMTOMEM_DECAY__HALF_LIFE_DAYSHalf-life in days — a chunk’s contribution halves every interval30

Maximal Marginal Relevance rerank. Reduces redundancy among top results and mixes in alternate angles; runs after time decay and score boosts.

VariableDescriptionDefault
MEMTOMEM_MMR__ENABLEDEnable MMR diversity rerankfalse
MEMTOMEM_MMR__LAMBDA_PARAM0.0–1.0. 0.0 = max diversity, 1.0 = max relevance0.7

Frequency-based multiplier that promotes chunks which have been accessed often.

VariableDescriptionDefault
MEMTOMEM_ACCESS__ENABLEDEnable access-frequency boostfalse
MEMTOMEM_ACCESS__MAX_BOOSTScore multiplier ceiling (must be >= 1.0)1.5

Multiplier derived from chunk metadata features (tags, size, position, …) applied on top of the search score.

VariableDescriptionDefault
MEMTOMEM_IMPORTANCE__ENABLEDEnable importance boostfalse
MEMTOMEM_IMPORTANCE__MAX_BOOSTScore multiplier ceiling (must be >= 1.0)1.5
MEMTOMEM_IMPORTANCE__WEIGHTSImportance-feature weight vector (JSON list, REPLACE merge)[0.3,0.2,0.3,0.2]

Augments the original query with related tags, headings, or LLM-generated terms to improve recall. strategy=llm uses the LLM section below.

VariableDescriptionDefault
MEMTOMEM_QUERY_EXPANSION__ENABLEDEnable query expansionfalse
MEMTOMEM_QUERY_EXPANSION__MAX_TERMSMax additional terms to append3
MEMTOMEM_QUERY_EXPANSION__STRATEGYtags / headings / both / llm"tags"

Small-to-big retrieval: returns ±N adjacent chunks around each search hit. Useful for recovering fragmented context in long documents.

VariableDescriptionDefault
MEMTOMEM_CONTEXT_WINDOW__ENABLEDEnable context-window expansionfalse
MEMTOMEM_CONTEXT_WINDOW__WINDOW_SIZE±N adjacent chunks per hit (0–10)2

LLM (summarisation · query-expansion backend)

Section titled “LLM (summarisation · query-expansion backend)”

Shared LLM backend used by query_expansion.strategy=llm, consolidation summaries, and other LLM-powered features.

VariableDescriptionDefault
MEMTOMEM_LLM__ENABLEDEnable LLM-powered featuresfalse
MEMTOMEM_LLM__PROVIDERollama / openai / anthropic / compatible endpoint"ollama"
MEMTOMEM_LLM__MODELModel name. Empty = provider-specific default""
MEMTOMEM_LLM__BASE_URLEndpoint URL"http://localhost:11434"
MEMTOMEM_LLM__API_KEYAPI key for paid providers""
MEMTOMEM_LLM__MAX_TOKENSGeneration token cap1024
MEMTOMEM_LLM__TIMEOUTRequest timeout in seconds60
VariableDescriptionDefault
MEMTOMEM_TOOL_MODEcore (9 names incl. mem_do) / standard (39) / full (94 current tools; no deprecated aliases)core
MEMTOMEM_EXTRA_TOOLSComma-separated registered tool names to expose individually on top of MEMTOMEM_TOOL_MODE, e.g. mem_update_coverage. Read at server startup; unknown names are logged and ignored""
VariableDescriptionDefault
MEMTOMEM_WEB__MODEprod (standard Simple/Advanced pages, including Namespaces under Settings) / dev (also adds maintainer pages: Sessions, Search Runs, Quality Lab, Working Memory, Procedures, Health Report, Redaction). mm web --mode and mm web --dev override this at launch.prod
MEMTOMEM_WEB__HOSTBind address for mm web; overridden by --host127.0.0.1
MEMTOMEM_WEB__PORTBind port for mm web; overridden by --port8080
MEMTOMEM_WEB__CSRF_ENFORCEEnforce CSRF protection on mutating Web UI endpoints. Disable only as an emergency rollback.true
VariableDescriptionDefault
MEMTOMEM_POLICY__ENABLEDRun PolicyScheduler (auto_archive / auto_promote / auto_expire / auto_tag)false
MEMTOMEM_POLICY__SCHEDULER_INTERVAL_MINUTESScheduler tick interval60
MEMTOMEM_POLICY__MAX_ACTIONS_PER_RUNCumulative action cap per scheduled policy run100
MEMTOMEM_WEBHOOK__ENABLEDEnable outbound webhooks for memory eventsfalse
MEMTOMEM_WEBHOOK__URLWebhook target URL""
MEMTOMEM_WEBHOOK__EVENTSEvent types to send (JSON list, APPEND merge)["add","delete","search"]
MEMTOMEM_WEBHOOK__SECRETHMAC signing secret""
MEMTOMEM_WEBHOOK__TIMEOUT_SECONDSHTTP timeout10
MEMTOMEM_WEBHOOK__ALLOW_PRIVATE_HOSTSAllow delivery to a receiver on this machine or LAN. When off, the URL’s host must not resolve to a private, loopback, link-local or reserved address, checked where the socket opens and not only at startup.false
MEMTOMEM_WEBHOOK__PROXYExplicit forward proxy (http:// or https://). Webhooks never use an ambient HTTP(S)_PROXY; with a proxy set, the proxy connects to the receiver and the address policy is the proxy’s to enforce.""

Background job that periodically groups near-duplicate memories and compresses them into archive summaries.

VariableDescriptionDefault
MEMTOMEM_CONSOLIDATION_SCHEDULE__ENABLEDRun the consolidation schedulerfalse
MEMTOMEM_CONSOLIDATION_SCHEDULE__INTERVAL_HOURSScheduler interval (hours)24
MEMTOMEM_CONSOLIDATION_SCHEDULE__MIN_GROUP_SIZEMinimum group size to consolidate3
MEMTOMEM_CONSOLIDATION_SCHEDULE__MAX_GROUPSMax groups processed per run10
VariableDescriptionDefault
MEMTOMEM_WARMUP__ENABLEDPre-load local embedding/reranker models in a background task at MCP server startup. Remote providers are skipped.false

Background loop for periodic health checks and automatic maintenance. Missing sources are held out of search rather than deleted (a source under both an index root and indexing.retain_missing_dirs stays searchable instead, unless it is held for another reason); purging their chunks is an explicit mm gc orphan-sources --apply.

VariableDescriptionDefault
MEMTOMEM_HEALTH_WATCHDOG__ENABLEDRun the health watchdogfalse
MEMTOMEM_HEALTH_WATCHDOG__HEARTBEAT_INTERVAL_SECONDSHeartbeat interval60
MEMTOMEM_HEALTH_WATCHDOG__DIAGNOSTIC_INTERVAL_SECONDSDiagnostic-check interval300
MEMTOMEM_HEALTH_WATCHDOG__DEEP_INTERVAL_SECONDSDeep-scan interval3600
MEMTOMEM_HEALTH_WATCHDOG__MAX_SNAPSHOTSSnapshot retention cap1000
MEMTOMEM_HEALTH_WATCHDOG__ORPHAN_CLEANUP_THRESHOLDMissing-source count at which auto-maintenance holds them (no chunks are deleted)10
MEMTOMEM_HEALTH_WATCHDOG__AUTO_MAINTENANCEPerform automatic maintenancetrue
VariableDescriptionDefault
MEMTOMEM_SCHEDULER__ENABLEDEnable cron dispatch for registered maintenance jobsfalse
MEMTOMEM_SCHEDULER__MAX_CONCURRENT_JOBSMax concurrently running scheduled jobs1
MEMTOMEM_SCHEDULER__DEFAULT_TIMEZONESchedule timezone; Phase A honors utc"utc"
MEMTOMEM_SCHEDULER__RUNNER_TIMEOUT_SECONDSTimeout for one scheduled job run300
VariableDescriptionDefault
MEMTOMEM_SESSION_SUMMARY__AUTOAuto-generate an LLM summary on mem_session_end when enough chunks were addedtrue
MEMTOMEM_SESSION_SUMMARY__MIN_CHUNKSMinimum chunks before auto-summary runs5
MEMTOMEM_SESSION_SUMMARY__MAX_SUMMARY_TOKENSOutput token cap500
MEMTOMEM_SESSION_SUMMARY__MAX_INPUT_CHARSSkip auto-summary above this assembled input size60000
MEMTOMEM_SESSION_SUMMARY__MAX_SUMMARY_LINKSCap summary-to-source chunk links50
MEMTOMEM_SESSION_SUMMARY__EXPANSION_LOOKUP_TOP_KSession-summary chunks considered for search rescue3
MEMTOMEM_SESSION_SUMMARY__EXPANSION_SCORE_THRESHOLDMinimum summary score for rescue expansion0.3
MEMTOMEM_SESSION_SUMMARY__EXPANSION_RESCUE_WEIGHTRRF input weight for rescued source-file hits0.5

Traces session command execution to a JSONL file and, optionally, to Langfuse. Off by default. payload_mode defaults to metadata, which records no payload body; redacted keeps a secret-masked body, and full keeps the entire body. Since 0.7.10 these settings cannot be changed through MCP: mem_config and mem_do(action="config") still read them but refuse a change and name the terminal command, mm config set session_trace.<field> <value>. mm config set and the Web UI’s PATCH /api/config still change them.

VariableDescriptionDefault
MEMTOMEM_SESSION_TRACE__ENABLEDEnable session execution tracingfalse
MEMTOMEM_SESSION_TRACE__JSONL_ENABLEDWrite to the JSONL sinktrue
MEMTOMEM_SESSION_TRACE__JSONL_PATHJSONL output file path"~/.memtomem/traces/session-traces.jsonl"
MEMTOMEM_SESSION_TRACE__LANGFUSE_ENABLEDEmit traces to the Langfuse sinkfalse
MEMTOMEM_SESSION_TRACE__LANGFUSE_PUBLIC_KEYLangfuse public key""
MEMTOMEM_SESSION_TRACE__LANGFUSE_SECRET_KEYLangfuse secret key""
MEMTOMEM_SESSION_TRACE__LANGFUSE_HOSTLangfuse host URL""
MEMTOMEM_SESSION_TRACE__SAMPLING_RATE0.0–1.0. Fraction of sessions recorded1
MEMTOMEM_SESSION_TRACE__PAYLOAD_MODEmetadata (no body) / redacted (secret-masked body) / full (entire body)"metadata"
MEMTOMEM_SESSION_TRACE__MAX_PAYLOAD_CHARSChar cap on payload retained in a trace10000

Setting langfuse_enabled=true requires the langfuse extra installed and both the public and secret keys set; otherwise startup validation fails.

VariableDescriptionDefault
MEMTOMEM_LOG_LEVELDEBUG / INFO / WARNING / ERRORINFO
MEMTOMEM_LOG_FORMATLog format—
VariableDescriptionDefault
MEMTOMEM_HOOKS__TARGET_SCOPEScope for memtomem-managed Claude Code settings hooks: user, project_shared, or project_local"user"
MEMTOMEM_CONTEXT_GATEWAY__KNOWN_PROJECTS_PATHWeb UI project registry for Context Gateway"~/.memtomem/known_projects.json"
MEMTOMEM_CONTEXT_GATEWAY__EXPERIMENTAL_CLAUDE_PROJECTS_SCANDecode ~/.claude/projects/<encoded> directory names back into project roots and scan them (includes unverified candidates)false
MEMTOMEM_CONTEXT_GATEWAY__AUTO_DISPLAY_CONFIGURED_PROJECTSAuto-display a scanned project only when its root carries a recognized runtime marker (.claude/.gemini/.codex/.agents/.kimi/.memtomem)true

User-tier writes are protected by explicit host-write confirmation; there is no USER_TIER_ENABLED configuration field.

VariableDescriptionDefault
MEMTOMEM_MAINTENANCE__EXPERIMENTAL_DUPLICATE_BRIEFExperimental. When true, mem_dedup_scan prints, under each member of a candidate pair, what the store holds about it (heading, namespace, scope, tags, validity window, read-only flag, position in its source, relations and links) and a line naming the fields the two members differ on. The scan still selects and orders pairs the same way and changes nothing; output is about three times as long per pair. Set it in config.json or with this variable; mm config set and mem_config do not change itfalse

These process-level variables are not part of the layered config.json / config.d model.

VariableDescriptionDefault
MEMTOMEM_WIKI_PATHOverride the wiki store location~/.memtomem-wiki
MEMTOMEM_FASTEMBED_CACHEOverride the ONNX / FastEmbed model cache (checked before FASTEMBED_CACHE_PATH). When newly created at the default path on macOS/Linux, uses mode 0700~/.memtomem/cache/fastembed
MEMTOMEM_INDEX_DEBOUNCE_QUEUEOverride the file-watcher debounce queue filestate directory
ProviderGPUCostNotes
onnxNoFreeBuilt-in via fastembed. ~270 MB on first run
ollamaNoFreeRequires Ollama. ollama pull nomic-embed-text
openaiNoPaidRequires API key

Full list: configuration.md in the upstream repo.

Defaults above are schema declarations before initialization presets. mm init may change the provider, dimension, and memory directories. OTLP and Langfuse are independent opt-ins. Pass environment variables to the child MCP process and reconnect.

VariableDescriptionDefault
MEMTOMEM_ENTITY_BOOST__ENABLEDEnable query-entity score boostingfalse
MEMTOMEM_ENTITY_BOOST__MAX_BOOSTMaximum entity score multiplier1.5
MEMTOMEM_ENTITY_BOOST__MIN_CONFIDENCEMinimum entity confidence0
MEMTOMEM_ENTITY_BOOST__QUERY_ENTITY_TYPESEntity types used for query matching["date","person","technology"]
MEMTOMEM_INDEXING__EXTRACT_ENTITIESExtract entities during indexingtrue
MEMTOMEM_RERANK__TIMEOUT_SReranker timeout in seconds30