DBChat - Chat with your Database

Chat with your Database

DBChat is an AI-powered assistant for exploring MySQL and PostgreSQL databases using plain English

Natural Language Queries

Write SQL queries using everyday language—no prior SQL expertise needed.

Your Own Keys

Save on expensive AI subscriptions by using your own API keys.

Flexible AI Power

Choose your favorite from leading AI providers like Google, OpenAI, and xAI.

Self-Hosted

No monthly bills! Roll your own server or get the desktop app —one-time purchase, free lifetime updates!

Who is it for

DBChat is for anyone who wants to explore their MySQL or PostgreSQL databases without writing SQL. Perfect for:

Data analysts who want to quickly query databases using natural language and AI-generated SQL.

Developers looking to streamline database exploration without complex query writing.

Business owners in need of fast insights into their data without deep technical expertise.

Quickstart

Get started in minutes

Download the desktop app—one-time purchase, free lifetime updates!

Buy for Desktop ($29)

Or run the source code locally

  1. 1 Clone the repo, install dependencies, and start the server:
    git clone [email protected]:PactInteractive/dbchat.git
    cd dbchat
    bun install
    bun dev
  2. 2

    Connect a database—link to your MySQL or PostgreSQL database.

  3. 3

    Add an AI API key—use your favorite AI provider or get a Gemini key from Google AI Studio .

  4. 4

    Start chatting—open localhost:3000 and prompt away!

Frequent Questions

What does DBChat do?

DBChat lets you connect to your local or cloud MySQL or PostgreSQL database with your own AI API key, and use natural language to generate SQL queries which you can review, copy, or execute.

How do I install DBChat?

DBChat is distributed in 2 forms—a paid desktop app to start querying immediately, or you can download the source code and run it as a web app in your browser.

How secure is DBChat?

DBChat runs locally, storing your database credentials and API keys on your device. The AI only reads your database schema unless you explicitly share query results in the chat.

What databases does DBChat support?

DBChat supports MySQL and PostgreSQL. For other databases, contact us on X.com .

Which AI APIs does DBChat support?

DBChat supports Google’s Gemini, OpenAI, and xAI. Need another API? Reach out on X.com .

What’s your refund policy?

For refund details about the paid desktop app, visit our store page .

I need another feature, can you do that for me?

Let us know what you need on X.com or file an issue on GitHub .