An AI database client for Postgres.

It writes the SQL. You decide what runs.

ask·sql·approve·run
pgen
prod.us-east-1
db.prod.internal:5432
Filter objects...
public
Tables12
customers1.2M
orders8.4M
iduuid
customer_iduuid →
total_centsint8
created_atts
line_items42M
Views4
Functions6
churn_score(uuid)
analytics
audit
ask anything about your database…
-- the editor is yours; pgen writes here
⌘↵ to run - nothing reaches the database until you do
no rows - nothing has run

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.

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.

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.

  1. 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.

  2. 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.

  3. 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.

  4. 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.

point at a provider, or paste your own URL
postgres 12+·pgvector·postgis·timescaledb·extensions live in the server - if yours runs it, pgen speaks it·ssl · ssh tunnel · iam auth

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.