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
{
"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