← Back to blog

Chat with your PostgreSQL database for free — no SQL required

Stop writing SQL by hand. Connect your PostgreSQL database and ask questions in plain English. Free to use, bring your own API key, no data stored on our servers.

Chat with your PostgreSQL database for free — no SQL required

Your PostgreSQL database has every answer your team needs. Revenue trends, user growth, churn signals, product usage — it's all in there. The problem isn't the data. It's the SQL standing between your questions and your answers.

QueryDB lets you chat with your PostgreSQL database in plain English. Type a question. Get an answer. No SQL knowledge required. Free to use.

What does "chat with your database" actually mean?

It means you type a question the same way you'd ask a colleague:

"How many users signed up this month compared to last month?"

And instead of waiting for an engineer to write a query, you get the answer in seconds — along with the SQL that produced it, so you can verify or extend it yourself.

Under the hood, an AI agent reads your PostgreSQL schema, writes a syntactically correct query, validates it for safety, executes it against your live database, and translates the raw result into a plain English response. The whole pipeline runs in one turn.

Who is this for?

Founders and product managers who need data answers but don't want to block engineering every time they have a question.

Data analysts who know what they want but spend too long translating business questions into the right JOIN conditions.

Engineers who are tired of being the human middleware between stakeholders and the database.

Small teams who don't have a dedicated data team yet but still run on PostgreSQL data.

If your data lives in PostgreSQL and you want to query it without writing SQL, this is for you.

How to connect your PostgreSQL database

Getting started takes under two minutes:

  1. Sign up free → — no credit card required
  2. Paste your PostgreSQL connection string — works with Supabase, Railway, Render, AWS RDS, Neon, or any self-hosted PostgreSQL instance
  3. Add your LLM API key — OpenAI, Anthropic, or any OpenAI-compatible endpoint
  4. Ask your first question

That's it. No agent to configure. No schema mapping. No training data to upload. The AI reads your PostgreSQL schema automatically on the first question.

Your data stays yours

This is the part most tools don't talk about clearly. Here's exactly what happens when you ask a question:

  • Your PostgreSQL connection string is encrypted and stored only for your session
  • Your database schema (table names, column names) is sent to your chosen LLM to generate the query — to the provider you selected, using the API key you provided
  • Your query results are returned directly to your browser
  • Nothing is stored on our servers between sessions

Because you bring your own API key, the LLM call goes through your account, not ours. You control the data flow end to end.

Is it safe to connect a production database?

Yes — with the right precautions, which QueryDB handles for you:

Read-only queries only. The AI only generates SELECT statements. Any attempt to generate INSERT, UPDATE, DELETE, DROP, or ALTER is blocked before execution — both at the validation layer and at the database connection level.

Hallucination protection. Before any query runs, the agent checks every table name in the generated SQL against your real PostgreSQL schema. If the AI invented a table that doesn't exist, the query is rejected and rewritten — not executed against your database.

Best practice: Create a dedicated read-only PostgreSQL user for QueryDB. This takes two minutes and gives you a hard database-level guarantee regardless of anything else:

CREATE USER querydb_readonly WITH PASSWORD 'your-password';
GRANT CONNECT ON DATABASE your_database TO querydb_readonly;
GRANT USAGE ON SCHEMA public TO querydb_readonly;
GRANT SELECT ON ALL TABLES IN SCHEMA public TO querydb_readonly;

What kinds of questions work best?

QueryDB handles the full range of PostgreSQL queries:

Simple lookups:

  • "Show me the last 10 orders"
  • "How many active users do we have?"

Aggregations and trends:

  • "What's our total revenue by month for the past 6 months?"
  • "Which product category has the highest average order value?"

Cohort and retention questions:

  • "Which users signed up in January and made a purchase within 7 days?"
  • "What percentage of last month's new users are still active?"

Operational queries:

  • "Are there any orders stuck in pending status for more than 48 hours?"
  • "Which customers haven't logged in for 90 days but have an active subscription?"

If it can be expressed as a PostgreSQL SELECT, the agent can write it.

Why free? What's the catch?

There is no catch. QueryDB is free because you bring your own LLM API key. We don't pay for your LLM calls — you do, directly to OpenAI, Anthropic, or whichever provider you choose. A typical question costs fractions of a cent on most models.

We make money when teams upgrade for features like saved queries, team sharing, and query history. The core chat-with-your-PostgreSQL-database experience stays free.

The bottom line

You shouldn't need to know SQL to get answers from your own data. If your database is PostgreSQL, QueryDB gives you a free, private, read-only chat interface to it in under two minutes.

No engineers interrupted. No query backlog. No SQL.

Connect your PostgreSQL database free →