Skip to content

Chat2DB

AI-assisted SQL client for developers and DBAs working across 40+ databases

Permissive (OSI) · Apache-2.0 AI-native

Listed by , founder & editor

74

Health

Active

Overview

Stars

28,370

Last commit

13 days ago

Nov 2026

Repository age

3 years

since Jun 2023

Latest version

v5.3.8

Oct 2026

Contributors

–

1 active in 90 days

Releases

11

last 12 months

Language

Java

Chat2DB Community is a free database client for Windows, macOS and Linux. It runs on your own machine and pairs a SQL workspace with an AI assistant that you connect to a model of your choice. The workspace covers editing, completion, formatting, execution, saved SQL and execution history.

It connects to more than 40 databases, including MySQL, PostgreSQL, Oracle, SQL Server, ClickHouse, MongoDB, Redis, SQLite, Snowflake and BigQuery. New JDBC databases can be added through configuration alone. You can browse metadata, manage tables and other objects, edit data in place, import and export data, and build dashboards and charts.

The assistant writes, explains and optimizes SQL from plain-language requests. An open-source CLI with MCP support is also included. If you prefer a browser, a Docker image serves the app on port 10825. The project is written in Java, licensed under Apache-2.0, and has shipped 11 releases in the past year.

It fits teams that want one client for many engines, in place of separate commercial database GUIs.

Who it's for

Developers who query several database engines daily

One client covers MySQL, PostgreSQL, Oracle, Redis and dozens more, so you stop switching tools.

Skip if: You only use one engine and already have a native client you like.

Analysts who are less fluent in SQL

The assistant turns plain-language questions into SQL and explains existing queries.

Skip if: Company policy forbids sending schema or query text to an external AI model.

DBAs managing tables and data across environments

You can edit objects and data in place and run import and export jobs from one workspace.

Skip if: You need server-side monitoring and alerting rather than a client.

The problem it solves

Working with several databases usually means several clients, each with its own quirks. Writing and tuning SQL by hand is slow for people who do not write it every day. This client puts many engines and an AI helper in one workspace.

Strengths

  • Connects to 40+ databases, with new JDBC ones added through configuration only
  • Runs locally on Windows, macOS and Linux with no further setup after install
  • AI assistant works with a model you supply, so you pick the provider
  • Includes data import and export, dashboards and charts
  • Open-source CLI with MCP support for scripted use

Trade-offs

  • Contributor activity is thin: one contributor in the last 90 days
  • Docker mode needs 2+ CPU cores, 4+ GiB RAM and an encryption key set up first
  • AI features depend on a model you configure and pay for yourself
  • The 5.4.0 preview with the agent runtime is not yet a stable release

Self-host Chat2DB

Self-hostable
No (desktop or local app)
Minimum RAM
4 GB

Quick start

./script/security/init-community-encryption-key.sh
docker compose --file docker/docker-compose.yml up --detach

From the project's own install instructions. Check the docs for production settings.

Frequently asked questions

Is Chat2DB Community free?

Yes. The Community edition is a free database client under the Apache-2.0 license.

Which platforms does it support?

The desktop app runs on Windows, macOS and Linux. A Docker image is also available for browser access.

Can I run it with Docker?

Yes. Create the encryption key with the bundled script, then start the container or the Compose file and open port 10825 on localhost.

Which AI model does it use?

You bring your own model. The assistant uses it to generate, explain and optimize SQL.

Which databases can it connect to?

More than 40, including MySQL, PostgreSQL, Oracle, SQL Server, ClickHouse, MongoDB, Redis, SQLite, Snowflake and BigQuery.

Similar tools in General AI tools

screenpipe

General AI tools

23k 2.3k today Thriving Unknown

token-monitor

General AI tools

Desktop dashboard that tracks token use, cost and limits across AI coding tools

3.9k 377 today Thriving MIT

Mike

General AI tools

Self-hostable legal AI platform for law firms reviewing and drafting documents

4.5k 1.4k today Active AGPL-3.0

job-ops

General AI tools

Self-hosted job search tool that scrapes boards, tailors your CV and tracks applications

4.2k 569 27 days ago Thriving AGPL-3.0 AND Commons-Clause

freehire

General AI tools

Open-source tech job search engine with CV tools, tracking and an API

3.7k 402 today Active MIT

openprompt.co

General AI tools

Community library of ChatGPT prompts you can browse, save and reuse

1.2k 58 today Active GPL-3.0