Skip to content
Gemini CLI

pgleash for Gemini CLI

io.github.mufasil/pgleash

Postgres proxy for AI agents: read-only by default, blocks DROP and unbounded DELETE, caps rows.

client:Gemini CLI transport:stdio runtime:npm

Install pgleash 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": {
    "pgleash": {
      "command": "npx",
      "args": [
        "-y",
        "pgleash"
      ],
      "env": {
        "PGLEASH_UPSTREAM": "<PGLEASH_UPSTREAM>"
      }
    }
  }
}

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

pgleash in other clients