Skip to content
Zed

pgleash for Zed

io.github.mufasil/pgleash

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

client:Zed transport:stdio runtime:npm

Install pgleash in Zed

~/.config/zed/settings.json · windows: %APPDATA%\Zed\settings.json

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

{
  "context_servers": {
    "pgleash": {
      "command": "npx",
      "args": [
        "-y",
        "pgleash"
      ],
      "env": {
        "PGLEASH_UPSTREAM": "<PGLEASH_UPSTREAM>"
      }
    }
  }
}

Merge this into your existing settings object — do not replace the file. Zed docs

pgleash in other clients