DB-GPT
An open-source agentic AI data assistant that connects to databases and files, writes SQL and code from natural language, and produces charts, reports and insights.
- GitHub stars
- 20k
- Last commit
- 3 days ago
- Latest release
- v0.8.2
- Licence
- MIT
- Self-hosted
- Yes

DB-GPT is an open-source AI data assistant for the next generation of products that combine AI and data. It connects to databases, CSV and Excel files, data warehouses and knowledge bases, then lets people ask questions in natural language while the AI writes SQL and code to answer them.
Beyond question answering, it supports agentic data analysis: planning a task, breaking it into steps, calling tools and finishing the analysis end to end. It can run Python and code-driven workflows, load reusable skills for domain-specific tasks, and generate charts, dashboards, HTML reports and summaries. Tasks run in sandboxed environments for safety. Beyond the assistant, it serves as a platform for building AI-native data agents and applications with its AWEL workflow language, retrieval-augmented generation and multi-model support, with topics naming models such as DeepSeek and Vicuna.
It is written in Python and licensed under MIT, with documentation, a community and a research paper. Privacy and security are highlighted in the topics, and it can run on your own infrastructure with local models. It suits data teams that want natural-language access to databases while keeping data in-house.
Key features
- Natural-language questions answered with generated SQL
- Connects to databases, spreadsheets and warehouses
- Agentic multi-step analysis workflows
- Sandboxed code and skill execution
- Chart, dashboard and report generation
- AWEL, RAG and multi-model support
Pricing: Free and open source under the MIT license.


