Chat2DB
SQL client with AI query generation that can use your own model keys.
Overview
Chat2DB is a cross-platform database client supporting MySQL, PostgreSQL, Oracle and many others, with natural language to SQL and query explanation. The community edition lets you configure your own OpenAI, Azure or custom LLM endpoint.
- Natural language to SQL
- SQL explanation
- Many databases
- Reports and charts
Our verdict
What we like
- Open-source edition
- Broad database support
Watch out for
- Pro version is the focus now
Works with these providers
Keys from these providers work in this app. Usage is billed by the provider at its list price.
BYOK Key Safety Score
Key handling in Chat2DB
Grade A
Your key is stored on your device and requests go directly to the provider.
- Key storage40/40
Key stays on your device; requests go direct to the provider.
- Auditable code25/25
Open source: anyone can verify how keys are handled.
- Self-hosting15/15
Can run entirely on your own infrastructure.
- Offline option0/10
Cloud providers only.
- Provider choice6/10
3 provider options, which lets you pick the provider whose data terms you trust.
Whatever the score, give each app its own key, set a monthly spend limit with your provider, and revoke keys you no longer use. Read the key-safety checklist.
Chat2DB FAQ
- Does Chat2DB support bring your own key?
- Yes. Chat2DB accepts your own API key from OpenAI, Azure OpenAI and OpenAI-compatible. Usage is billed by the provider at its API rates.
- Where does Chat2DB store my API key?
- On your device. Requests go directly from Chat2DB to the provider. Its BYOK Tools Key Safety Score is 86/100.
- Is Chat2DB free?
- Freemium: Free community edition; paid Pro. API usage is billed separately by your model provider.
- Is Chat2DB open source?
- Yes. The source code is at https://github.com/CodePhiliaX/Chat2DB. It can also be self-hosted.
- Can Chat2DB run local models?
- No. Chat2DB works with cloud providers only.
- Which platforms does Chat2DB support?
- macOS, Windows, Linux, Self-hosted.
Community reviews
No reviews yet.
Alternatives to Chat2DB
All productivity →Presenton
Productivity
Open-source AI presentation generator that runs locally with your keys.
ThunderAI
Productivity
Thunderbird add-on for drafting, summarizing and translating email with LLMs.
Screenpipe
Productivity
Local screen and audio recorder that powers private AI memory.
Triplo AI
Productivity
Desktop and mobile assistant that works in any text field, with BYOK on all tiers.
Raycast AI (BYOK)
Productivity
Mac launcher with AI chat and commands, now with bring-your-own-key.
Meetily
Productivity
Local meeting transcription and summaries with Whisper and Ollama.