Skip to content
Gemini CLI

PromptGuard for Gemini CLI

co.promptguard/security

Scan prompts for injection attacks, redact PII, and audit LLM SDK usage from any MCP client

client:Gemini CLI transport:stdio runtime:npm

Install PromptGuard in Gemini CLI

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

Held in this page only — never stored, logged, or sent anywhere but back to your screen.

{
  "mcpServers": {
    "security": {
      "command": "npx",
      "args": [
        "-y",
        "@promptguard/mcp-server"
      ],
      "env": {
        "PROMPTGUARD_API_KEY": "<PROMPTGUARD_API_KEY>"
      }
    }
  }
}

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

PromptGuard in other clients