Your agent can use a key without seeing the real one.
Phantom Secrets
Phantom Secrets
Rust · MIT
Phantom Secrets is a local proxy and MCP server. It swaps real API keys for phm_ tokens so the coding agent does not receive the secret. It works with Claude Code, Cursor, Windsurf, and Codex. The guide lives at phm.dev/secrets.
20 GitHub stars
- Claude Code
- Cursor
- Windsurf
- Codex
brew tap ashlrai/phantom
brew trust --formula ashlrai/phantom/phantom
brew install ashlrai/phantom/phantomThis is the documented macOS path. It installs the phantom and phantom-mcp commands. Linux and Windows builds are on the GitHub releases page.