An AI database client
for Postgres.
It writes the SQL. You decide what runs.
It reads your live schema.
No pasting your schema into a chat window. pgen reads the live catalog and sends the right slice straight to the model you picked. There is no pgen server in between.
I joined orders to customers and scored each one with churn_score(). The query is in your editor. Nothing has run.
Limits the model can’t turn off.
The safety layer was built before the assistant was. It treats SQL the model wrote exactly as it treats yours, and nothing in a prompt can switch it off.
SELECT c.id, c.name, sum(o.total_cents) …rancapped at 1000 rowsUPDATE invoices SET sent_at = now() …heldproduction guard · needs your approvalDROP TABLE customersrefusedread-only lockALTER TABLE orders ADD COLUMN …heldproduction guard · awaiting your approvalprod.us-east-1 is tagged Production, and the model wrote this statement. It runs only if you approve it.
Between the model and pgen
Between pgen and Postgres
A full Postgres client, with the assistant in its bones.
The editor, query plans, connections and history you'd expect from a serious client are all here. Open a table or a function and the assistant already knows what you're looking at.
Writing and reading
Around the query
Coming to the assistant.
Today the assistant writes SQL and you decide what runs. Here's what's coming next - all of it arriving behind the same approvals you already control.
It goes and looks things up
Bring up a table that didn't make it into the context and the assistant looks it up in the live catalog on its own - mid-conversation, before it answers.
Answers it already tested
The assistant can safely try a query before it gives it to you, so what lands in your editor is something it has already run - read-only, row-capped - and seen come back clean.
Find out why something is slow
Point it at a query that's dragging and get a straight answer about what's holding it up - without having to read a query plan yourself.
Know which index to add
Get a specific recommendation with the reasoning behind it, instead of guessing which column to index and hoping it helps.
Everywhere Postgres lives.
If it speaks the wire protocol, pgen connects. Cloud, container, or laptop - paste the URL and you're in.
Download pgen and connect.
Free, every feature, no account. Add your own API key when you want the assistant on, or run it against a local model and skip the key entirely.
