# keepmum > keepmum is a free, open-source local proxy for macOS (Apple silicon, macOS 14 or later) that keeps secrets and personal data on your Mac while you use AI coding agents: Claude Code, Codex, the Antigravity CLI, Gemini CLI, pi and opencode. Before a request leaves the Mac, it replaces API keys, tokens, passwords, private keys, connection strings and, if you turn it on, personal data (names, emails, phone numbers, addresses, account numbers) with placeholders such as `KEEPMUM_SECRET_7f3a9c2e`. When the model answers, keepmum puts the real values back, so the agent can still edit a `.env` file or run a command, but the provider (Anthropic, OpenAI or Google) never sees them. Apache 2.0. Status: alpha, not yet independently audited. Key facts: - Detection runs entirely on the Mac: 96 rules with entropy and checksum checks, then OpenAI Privacy Filter (an open-weight token classifier) on the Mac's GPU, then a deterministic step that drops UUIDs, hashes and documented example keys. Hex dumps and base64 of a secret are decoded and scanned too, even folded across lines. - Placeholders come from a per-install key (HMAC-SHA256); the same value always gets the same placeholder, so the provider's prompt cache keeps working. Real values live only in memory. - Fails closed: a request keepmum cannot scan (an unknown endpoint, an unreadable body, a WebSocket) is blocked, never sent raw. - Tools that reach the network get less: web search, fetch and image generation keep placeholders, and an MCP server gets back only the values it returned itself. When a Codex script reads a file itself and passes what it found to an MCP or network tool, keepmum's check in the script withholds any key in a provider's format (`[a secret, withheld by keepmum]`); the script still runs. - Optional checks, all local and off by default: prompt injection in tool results, harmful requests, and risky shell commands. Each can warn, block, or send a flagged request to a local model instead of the provider. - After a local turn, the conversation can go back to the cloud with only the flagged part replaced: a summary or rewrite of a tool result, or what the user typed with the flagged part taken out (checked to be removal only). The user can review it first: a panel per change, or the whole turn in one window, where each flagged piece is rewritten, sent as it was (after a warning) or removed. - Also watches what other apps add to agents' settings (plugins, hooks, MCP servers, skills, instruction files) and can take an entry back out. - Measured on synthetic, labeled datasets: secret recall 0.989 to 1; personal data recall 0.996 to 1; about 100 to 145 ms added at the 95th percentile for 4K tokens of new text; 8 to 9 ms with the rules alone. keepmum's own memory levels off at about 130 to 150 MB and its CPU at under 5 ms a request, however many requests it handles; the local model takes about 0.2 GB of memory, with its 1.6 GB file in macOS's cache. - Works in front of an existing gateway (LiteLLM, OpenRouter, a company proxy): agent → keepmum → gateway → provider. - Limitations: shell commands receive real values (pair keepmum with a sandbox that limits the network); local transcripts keep real values; images and PDFs are not scanned; the local model is strongest on English; macOS on Apple silicon only. - No telemetry. Besides the request it forwards, keepmum only downloads its models, and the Mac app checks for updates if you allow it. ## Pages - [keepmum.app](https://keepmum.app/): what keepmum does, how it works, the optional checks, the Mac app, measured accuracy and speed, limitations, and install - [keepmum for Claude Code](https://keepmum.app/claude-code): what Claude Code sends to Anthropic, the ways to set keepmum up for it (Mac app, `keepmum claude`, `keepmum protect on`, VS Code), what it masks, and where it stops - [keepmum for Codex](https://keepmum.app/codex): what Codex sends to OpenAI, the ways to set keepmum up for it (Mac app, `keepmum codex`, `keepmum protect on`, behind a gateway), what it masks, Codex's scripts, and where it stops - [Privacy](https://keepmum.app/privacy): what keepmum and keepmum.app collect - [Download for Mac](https://github.com/blueandhack/keepmum/releases/latest): the latest release (a .dmg with everything included) ## Docs - [Install](https://keepmum.app/docs/start/install/): requirements, the Mac app, and the command line - [Use with your agents](https://keepmum.app/docs/start/agents/): Claude Code, Codex, the Antigravity CLI, Gemini CLI and VS Code; [the background proxy](https://keepmum.app/docs/start/background/) for every session; [in front of another gateway](https://keepmum.app/docs/start/gateways/) - [Choose what gets masked](https://keepmum.app/docs/masking/what-gets-masked/): personal data, your own rules and exceptions; [tools that reach the network](https://keepmum.app/docs/masking/network-tools/) - [Optional checks](https://keepmum.app/docs/checks/): prompt injection, harmful requests and shell commands; [local mode](https://keepmum.app/docs/checks/local/), [back to the cloud](https://keepmum.app/docs/checks/handback/), [review](https://keepmum.app/docs/checks/review/) - [Configuration](https://keepmum.app/docs/reference/configuration/): every key in `~/.config/keepmum/config.toml` - [What keepmum stores, and where](https://keepmum.app/docs/reference/storage/): every file, what stays in memory only, and the only network calls - [How it works](https://keepmum.app/docs/about/how-it-works/), [accuracy and speed](https://keepmum.app/docs/about/accuracy/), and [every limitation in full](https://keepmum.app/docs/about/limitations/) - [README](https://github.com/blueandhack/keepmum/blob/main/README.md): the short version, on GitHub - [Security policy](https://github.com/blueandhack/keepmum/blob/main/SECURITY.md): how to report a vulnerability - [Benchmarks](https://github.com/blueandhack/keepmum/tree/main/bench/results): the method and every result ## Optional - [Source code](https://github.com/blueandhack/keepmum) - [Releases and changelog](https://github.com/blueandhack/keepmum/releases) - [License (Apache 2.0)](https://github.com/blueandhack/keepmum/blob/main/LICENSE)