# DB-GPT

> DB-GPT is an open-source agent for analytics and data. Open-source data agent for querying databases, analysis and dashboards. It is available on Web, API, CLI, Self-hosted, Linux and macOS.

- **Kind:** Agent
- **Pricing:** Open source
- **Platforms:** Web, API, CLI, Self-hosted, Linux, macOS
- **Website:** http://docs.dbgpt.cn
- **Repository:** https://github.com/eosphoros-ai/db-gpt
- **GitHub stars:** 20,356
- **License:** MIT
- **Categories:** [analytics and data](https://ai-powered.com/categories/analytics-and-data)
- **Listing updated:** 2026-12-01

## About

DB-GPT lets you point an AI assistant at your databases and files, then work through a question until it becomes a query result, an analytical report or an editable dashboard. Connections to sources such as MySQL, PostgreSQL, DuckDB, ClickHouse and Oracle are managed in one place, and each task can be bound to a specific source.

Beyond plain text-to-SQL, the project adds a semantic layer where table meanings, metric formulas and published metric versions are kept, so repeated questions are answered from the same definitions. Expert plugins and reusable Skills cover querying, analysis, SQL optimization and metadata work, and visual workflows let repeatable tasks run as explicit steps.

It suits data analysts and engineering teams who want an agent that shows its SQL and calculations for review, and who are comfortable configuring model providers, credentials and runtime isolation themselves. Access control and execution safety depend on how it is deployed.

## Features

- **Multi-database connections:** Connect and inspect a range of SQL and graph data sources, and bind each task to one of them.
- **Semantic metric definitions:** Store table meanings, business metrics and formulas, with published versions tied to query results.
- **Expert plugins and Skills:** Pick a specialist for querying, analysis, SQL tuning or metadata work, backed by reusable instructions and scripts.
- **Editable dashboards:** Generate a dashboard draft from a plan or template, adjust widgets and queries, then preview it as a board.
- **Visual workflows:** Arrange agent nodes, inputs, outputs and parallel branches into a repeatable task flow.
- **Knowledge bases:** Index documents for retrieval so answers can draw on supplied context.

## Good for

- Answer business questions directly against a company database
- Generate analytical reports and charts from CSV or Excel files
- Review and optimize slow SQL queries with proposed changes
- Maintain shared metric definitions for a data team
- Build repeatable reporting workflows that refresh on a schedule

## FAQ

### What license is DB-GPT released under?

DB-GPT is distributed under the MIT License.

### How can I install DB-GPT?

There is a one-line installer for macOS and Linux, a source checkout option, and a PyPI package named dbgpt-app that runs with Python 3.10 or newer.

### Which databases are supported?

The listed sources include MySQL, PostgreSQL, SQLite, DuckDB, ClickHouse, Apache Doris, StarRocks, Oracle, MSSQL, Neo4j and TuGraph.

### Does DB-GPT execute generated SQL?

Yes, it can execute SQL within the tools and runtimes permitted by its configuration, and results can be reviewed before reuse.

### Is DB-GPT free?

Yes. DB-GPT is open source, so you can use and self-host it for free.

### What are the best alternatives to DB-GPT?

The closest alternatives to DB-GPT are Web, dex, AVA, Blog and Web.

## Where this comes from

- Description: written from the project's README and the project's website.

## Alternatives

- [Web](https://ai-powered.com/agents/web-16): Web is a freemium hosted agent for databases.
- [dex](https://ai-powered.com/agents/dex): dex is an open-source agent for databases.
- [AVA](https://ai-powered.com/agents/ava-4): AVA is an open-source agent framework for databases.
- [Blog](https://ai-powered.com/agents/blog-4): Blog is a freemium hosted agent for analytics and data.
- [Web](https://ai-powered.com/agents/web-mx47wejj): Web is a freemium hosted agent for analytics and data.
- [Website](https://ai-powered.com/agents/website-3): Website is a freemium hosted agent for analytics and data.
- [Flow AI](https://ai-powered.com/agents/flow-ai): Flow AI is an agent framework for analytics and data.
- [DeepAnalyze](https://ai-powered.com/agents/deepanalyze): DeepAnalyze is an open-source agent for analytics and data.

---
Source: https://ai-powered.com/agents/db-gpt
