Skip to content
Gemini CLI

Phantom Secrets for Gemini CLI

io.github.ashlrai/phantom-secrets-mcp

Stop AI coding agents from leaking API keys. Local proxy swaps real secrets for phm_ tokens.

client:Gemini CLI transport:stdio runtime:npm

Install Phantom Secrets in Gemini CLI

~/.gemini/settings.json · windows: %USERPROFILE%\.gemini\settings.json

{
  "mcpServers": {
    "phantom-secrets-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "phantom-secrets-mcp"
      ]
    }
  }
}

Gemini expands $VAR and ${VAR} inside env values, so a secret can live in your shell rather than this file. Gemini CLI docs

Phantom Secrets in other clients