Documentation
Browse documentation

Privacy and security

Secret filtering

MemIndex replaces recognized secrets with a marker before it saves anything. It is on by default.

Secret filtering is on by default. An install that had it off was switched on once when it updated. To turn it off, add this entry to the same settings file; MemIndex keeps that choice:

{
  "MEMINDEX_REDACT_ENABLED": "false"
}

It replaces recognized secret patterns with a marker. It cannot recognize every secret. It does not encrypt your memory or clean an agent's own history. With hosting, we set this on our server; it is not a separate setting for each team.

What it catches

Built-in patterns cover cookie headers, Amazon access keys, GitHub tokens, OpenAI, Anthropic, Google, Stripe, Slack, Atlassian, Heroku, Grafana, Postman, Pulumi, Doppler, Vault, Supabase, Sentry, Linear and Notion keys, JSON web tokens and private-key blocks. A match becomes a marker such as <redacted type='github_pat'/>, and your note writer is told to treat it as a placeholder.

It cannot catch every secret. A secret that looks like ordinary text passes through. Log files always use the built-in patterns, whatever you set here.

Change what it catches

Setting Default What it does
MEMINDEX_REDACT_ENABLED true Turns filtering on or off.
MEMINDEX_REDACT_DISABLED_BUILTINS Empty Built-in pattern names to skip, separated by commas.
MEMINDEX_REDACT_CUSTOM_PATTERNS [] Your own patterns, as a list of { "name": "label", "regex": "pattern" }.
MEMINDEX_REDACT_LOG_MATCHES false Logs each pattern's name and match count, never the matched text.

If settings.json cannot be read, filtering stays on.

Next steps