Skip to content
Gemini CLI

GEO Shield for Gemini CLI

io.github.krishnagauss/geo-shield

Detects hidden AI prompt injection, AI recommendation poisoning, sneaky redirects and hidden spam.

client:Gemini CLI transport:stdio runtime:npm

Install GEO Shield 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": {
    "geo-shield": {
      "command": "npx",
      "args": [
        "-y",
        "geo-shield-mcp"
      ],
      "env": {
        "GEO_SHIELD_DB_PATH": "<GEO_SHIELD_DB_PATH>",
        "GEO_SHIELD_RETENTION_DAYS": "<GEO_SHIELD_RETENTION_DAYS>",
        "GEO_SHIELD_ALLOWED_PORTS": "<GEO_SHIELD_ALLOWED_PORTS>"
      }
    }
  }
}

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

GEO Shield in other clients