These configure the server process rather than an individual agent.
Variable
Purpose
MM_AGENT
Agent identity slug: lowercase, starting with a letter (^[a-z][a-z0-9_-]*$). Required.
MM_BACKEND
Storage backend: file or postgres. If unset, the file backend is used and a warning is logged.
MM_POSTGRES_DSN
Postgres connection string. Required when MM_BACKEND=postgres.
MM_WORKSPACE
Workspace root for the agent’s files. Overrides paths.workspace_root.
MM_CONFIG_DIR
Directory that holds mm-base.toml and agents/<agent>.toml.
MM_TENANT_ID
Tenant identity in multi-tenant deployments. Empty means single tenant.
MM_SCOPE_AUTH_CONFIG
Path to the access policy (YAML). The MCP server refuses to start without one unless MM_ALLOW_UNSCOPED_DEV=true. On Postgres, also set it where consolidation runs: queued memories are checked against it before they are stored.
MM_ALLOW_UNSCOPED_DEV
true runs without an access policy. For local development only.
MM_ALLOW_INTERNAL
1 enables the write tools (mm_remember, mm_feedback, mm_bulk_remember). Leave unset for a read-only agent.
MM_ALLOW_INTERNAL_SSE_OVERRIDE
1 also allows writes over the network transports. Keep the server on loopback or behind an authenticating proxy.
MCP_TRANSPORT
stdio (default), sse or streamable-http.
MCP_HOST
Bind address for the network transports.
MCP_PORT
Bind port for the network transports.
MM_REST_TOKEN
Bearer token for the REST server in a single-tenant deployment.
MM_REST_TOKENS_FILE
Per-tenant bearer-token map for a multi-tenant REST deployment.
MM_EMBEDDING_SERVICE_URL
URL of your embedding service, used for semantic search.
MM_S1_HALF_LIFE_DAYS
Search recency half-life in days (default 90). Set on the MCP or REST server. See Decay and recency.
MM_DECAY_ENABLED
true applies the [decay] decay_policy preset when the compiled memory file is rebuilt. Set where consolidation runs.
MM_AUTO_REFRESH_DISABLED
1 stops drains from rebuilding the compiled memory file.
MM_COMMITMENT_COMPILE
true adds open commitments to the compiled memory file. Set where consolidation runs.
MM_WORKING_COMPILE
1 adds a Recent (48h) section of working memories to the compiled memory file. See Throughline.
MM_WORKING_AUTO_REFRESH
1 lets drained working memories trigger a rebuild of the compiled memory file.
MM_WORKING_PROMOTE
1 turns on promotion and expiry of working memories during consolidate --promote-only.
MM_WORKING_COPY_PROMOTE
0 keeps expiry but stops copying working memories into long-term memory. Defaults to the value of MM_WORKING_PROMOTE.
MM_WORKING_TTL_HOURS
Age in hours after which working memories expire, when promotion is on (default 72).
Set these in TOML under their section, or through the environment variable shown. Shipped default is the value in the base configuration inside the engine; a dash means the engine’s built-in default applies.
Accepted but not used in this release. Turn decay on with MM_DECAY_ENABLED=true; see Decay and recency.
decay_policy
—
Decay preset: none (default; only memories loaded with their own decay curve decay), conservative (recommended: episodes fade over about 180 days, content and preferences over about a year, facts and commitments never) or aggressive (most memory fades over about 180 days; commitments never). Takes effect only with MM_DECAY_ENABLED=true set where consolidation runs; see Decay and recency.