- DBChat is your AI-powered gateway to database exploration.
- Effortlessly create queries for your MySQL and PostgreSQL databases using natural language powered by leading AI models.
- Unlock insights, understand your data better, and accelerate your workflow.
- No prior knowledge of SQL required!
Explore the Website »
Contact us on X
•
Report an Issue
•
Download the Desktop App
Demo.3x.mp4
DBChat makes database interaction intuitive and powerful:
- 💬 Natural Language Queries: Write SQL queries using everyday language - no prior SQL expertise needed.
- 🔑 Bring Your Own Keys: Save on expensive SaaS costs by using your own API keys.
- 🧠 Flexible AI Power: Choose from leading AI providers like Google, OpenAI, and xAI.
- 👁️ SQL Transparency & Control: Learn from the AI-generated SQL, copy it for other uses, or execute it directly within the app.
- 🛡️ Secure Configuration: Your database credentials and API keys are stored on your own machine, giving you peace of mind.
- 💡 Schema Awareness: AI reads your database structure, but doesn't access your data - no hallucinations! Share query results in the chat only if you want to.
- 🖥️ Self-Hosted: Roll your own DBChat server or get the pre-built desktop app at https://vdsabev.gumroad.com/l/dbchat - one-time purchase, free lifetime updates!
- Frontend: Vue, Tailwind
- Core Logic & Backend: Bun, TypeScript
- Desktop App: Tauri v2
- AI Integration: Vercel AI SDK (Google, OpenAI, xAI models)
- Database Connectors: MySQL, PostgreSQL
Don't want to mess with setting up servers and installing dependencies?
Get the pre-built desktop app at https://vdsabev.gumroad.com/l/dbchat - one-time purchase, free lifetime updates!
Or run the code yourself:
-
Get the source code, install dependencies, and run the server:
git clone [email protected]:PactInteractive/dbchat.git cd dbchat bun install bun dev
-
Connect to an existing MySQL or PostgreSQL database
-
Use your favorite AI API key, or get a Gemini API key at https://aistudio.google.com/app/apikey
-
Start a new chat and prompt away!
The source code is available under the AGPL3.0 license.