Model or dataset
eosphoros-ai/DB-GPT avatar
eosphoros-ai/DB-GPT

DB-GPT: An Open-Source Agentic Data Assistant That Writes SQL and Runs Code in a Sandbox

open-source agentic AI data assistant for the next generation of AI + Data products.

19,968 stars2,929 forksPythonMIT

At a glance

What is it?
DB-GPT is a Python-based platform that connects to databases, files, and knowledge bases, plans analysis tasks, writes and executes SQL and code, and packages workflows as reusable skills. It targets teams that want AI-native data agents without building orchestration from scratch.
Who is it for?
Adopt DB-GPT if you need a self-hosted, agentic layer that turns natural language into SQL and code across databases, files, and knowledge bases, and if you value a sandboxed execution model and skill-based reuse. Do not adopt it if your primary need is a simple chat interface over one database, or if you cannot supply an LLM API key or a local model endpoint.
Can I use it commercially?
Yes. MIT is a permissive licence: you can use, modify and sell software built on it, as long as you keep its copyright and licence notices.
Is it still maintained?
Yes. The repository received new commits within the last day.
What is it written in?
Mainly Python, according to GitHub's language statistics.

Answers come from the project's GitHub data, last synced on September 15, 2026, and from our analysis. They are not legal advice.

DEEP OPEN-SOURCE ANALYSIS

The Problem It Solves and Who It Targets

DB-GPT addresses a recurring friction in data work: analysts spend time translating business questions into SQL queries, cleaning datasets, and assembling reports. The project positions itself as an agentic AI data assistant, meaning it does not just generate a query suggestion. It plans a task, breaks it into steps, calls tools, writes SQL and Python, executes that code, and produces charts, dashboards, or HTML reports. The intended user is an engineer or data practitioner who wants a platform to build AI-native data agents for a team or product, not a single-user notebook plugin. The README lists concrete use cases: analyzing CSV and Excel files, connecting to databases for profiling reports, answering business questions with auto-generated SQL, and performing financial report analysis with code and narrative summaries. It also targets developers who want to assemble workflows that combine code, SQL, retrieval, and tools in one agentic pipeline.

How DB-GPT Works: Agents, Skills, and Sandboxes

The architecture visible in the README has three layers. First, multi-source data access connects structured sources like databases and spreadsheets with unstructured ones like documents and knowledge bases. Second, an agent layer plans tasks, writes SQL and code, and executes them step by step. Third, a sandboxed execution environment isolates the code and tools. The README emphasizes that skills are a core mechanism: domain knowledge, analysis methods, and execution workflows can be packaged into reusable units, and the project shows importing a skill from GitHub. This means repetitive analysis patterns, such as a standard SQL profiling routine, can be loaded rather than re-prompted. The product workflow is described as explore data, plan and execute, use skills, and generate reports. This is not a simple query generator. It is a workflow engine where the AI reasons through a multi-step task and produces a decision-ready artifact.

Getting Started: Installer Profiles and API Keys

The README provides a one-line installer for macOS and Linux. The base command is curl -fsSL https://raw.githubusercontent.com/eosphoros-ai/DB-GPT/main/scripts/install/install.sh | bash. To select a model provider, you pass a profile and an API key as environment variables. For OpenAI, the command is curl -fsSL ... | OPENAI_API_KEY=sk-xxx bash -s -- --profile openai. The README also shows profiles for Kimi 2.5 via the Moonshot API and for MiniMax via an OpenAI-compatible API, each requiring its own key. This design implies that DB-GPT is provider-agnostic at the API level, but the quick start only demonstrates cloud APIs. If you have a local checkout, the installer can reuse it instead of cloning a fresh copy into ~/.dbgpt/DB-GPT, which is useful for development. The installer is the only documented path; there is no mention of Docker, pip, or manual setup in the provided text.

What the Repository Actually Contains and What It Does Not

The repository is eosphoros-ai/DB-GPT, with Python as the primary language and an MIT license. The default branch is main, and recent releases show a steady cadence: v0.8.0 in March 2026, v0.8.1 in June 2026, and v0.8.2 in August 2026. The README mentions AWEL, RAG, and multi-model support as part of the platform for building AI-native data agents and workflows. AWEL is likely the agent workflow execution language, though the README does not explain its syntax. The documentation site is at docs.dbgpt.cn. What the README does not include is any detail on system requirements, resource usage, or how the sandbox is implemented. It also does not specify which databases are supported out of the box. The absence of that information means a potential adopter must consult the docs or the source to verify compatibility with their existing data stack.

Real Limitations and Cases Where It Is the Wrong Tool

The most obvious limitation is that DB-GPT is not a zero-config tool. It requires an external LLM API key or a local model endpoint, and the installer only covers macOS and Linux. Windows users have no documented path. The sandboxed execution is a stated feature, but the README gives no detail on isolation boundaries, network access, or resource limits, so you cannot assess whether it meets your security requirements without deeper investigation. Another limitation is the learning curve for building custom skills and workflows. The README shows that skills are importable, but it does not explain the skill format or how to author one. If your need is a simple text-to-SQL interface over one database, DB-GPT is overkill. Its agentic planning and sandbox execution add complexity that a lightweight tool would not. Also, because the installer pipes a remote script directly to bash, you must trust the repository and the network path, a common but real supply-chain concern.

Alternative Approaches and How They Differ

A common alternative is a direct text-to-SQL tool that maps natural language to a single database query, such as a LangChain SQL agent or a proprietary product like Vanna. The difference is architectural. Those tools typically generate SQL and optionally execute it, but they do not plan multi-step analyses, write and run Python for data cleaning, or produce HTML reports as a workflow. They also do not provide a skill system for packaging domain-specific analysis methods. Another alternative is a general-purpose agent framework like AutoGPT or a coding agent, which can write code but has no native data source connectors or report generation. DB-GPT sits between those: it is domain-specific for data, with built-in connectors and output formats, but it is more general than a single-purpose SQL generator. The tradeoff is that you adopt a specific platform with its own workflow abstractions, which may not fit if you already have a preferred orchestration stack.

Maintenance, Upgrade Cost, and License Implications

The release history shows active maintenance: three releases in about five months between March and August 2026. That cadence suggests ongoing feature work, but it also implies an upgrade burden. Each release may change APIs, skill formats, or configuration profiles, so you should pin a version and test before upgrading. The README does not mention a migration guide or backward compatibility policy, so you cannot assume a drop-in upgrade. The project is MIT licensed, which is permissive: you can use, modify, and distribute it, including in commercial products, as long as you preserve the copyright notice. That is a low-license-risk choice for internal adoption. However, the MIT license does not cover the LLM APIs you connect to, which have their own terms and costs. Also, any skills or data you load may be subject to separate licenses. The README mentions a paper on arXiv, which could provide deeper architectural detail, but the paper is not a substitute for documentation on version-specific behavior.

Editorial conclusion

Adopt DB-GPT if you need a self-hosted, agentic layer that turns natural language into SQL and code across databases, files, and knowledge bases, and if you value a sandboxed execution model and skill-based reuse. Do not adopt it if your primary need is a simple chat interface over one database, or if you cannot supply an LLM API key or a local model endpoint. Before production use, verify which LLM providers and profiles are officially supported in the version you install, confirm how the sandbox isolates code and SQL execution from your network, and test whether the installer works in your environment, since the README only covers macOS and Linux with curl.

Official sources

  1. eosphoros-ai/DB-GPT on GitHub
  2. License: MIT
  3. Project website
  4. README
  5. Releases
Community notes

Community notes