Data & Analysis sql-generationdata-analysistext2sqlragawelreportingsandboxing

DB-GPT: Open-Source Agentic AI Data Assistant

Connect your data, let AI write SQL and code autonomously, execute in sandboxes, and turn analysis into reports, insights, and action.

FollowAgents review · FARS-2.1
Not recommended
54/ 100 5-point scale 2.7 / 5
1 2 3 4 5 6
1Trust10 / 29 · 1.7/5

Evidence shows sandboxed execution, SQL steps exposing only executed SQL, parallel dispatch caps, and failure degradation, but no explicit least-privilege design, user confirmation, data flow transparency, sensitive data handling, dependency security audit, external effects control, rollback, or source attribution. Thus each criterion gets 1 for thin evidence.

2Reliability8 / 14 · 2.9/5

Tests cover parallel dispatch, failure degradation, event forwarding, showing good internal consistency; dependency availability unverified, failure messages present in tests but not fully assessed. Self-consistency 2, dependency availability 1, failure messages 2.

3Adaptability12 / 18 · 3.3/5

README shows multiple use cases (data analysis, SQL execution, multi-source access), capability boundaries described (e.g., parallel dispatch limits), trigger precision in tests, environment fit with Docker/source install. But boundaries and precision not fully covered, so 2 each.

4Convention11 / 18 · 3.1/5

Clear information architecture (module split, docs links), detailed install notes, stable naming (version, package names), examples and FAQ provided, known limitations not explicitly listed, MIT license, changelog exists, maintenance responsibility via community and contributing guide. Known limitations 1, others 2.

5Effectiveness9 / 13 · 3.5/5

Output usability verified by tests (summaries, event formats), high marginal value (multiple features), reasonable cost-benefit (open source free). But not quantified, so 2 each.

6Verifiability4 / 8 · 2.5/5

Claims supported by tests and docs, but cross-source corroboration lacking (only repo-internal evidence), fact/inference separation good (tests distinguish). Claim traceability 2, cross-source 1, fact/inference 2.

Evidence confidence: Low Reviewed Aug 09, 2026 Reviewed revision c5fd00739969
The upstream repository has new commits since this review. The score still applies to the reviewed revision shown and may not cover the latest changes.
Before you use it
  • No explicit least-privilege design; review default permission configurations.
  • User confirmation mechanism missing; add confirmation before sensitive actions.
  • Data flow transparency insufficient; clarify how data is collected, processed, and stored.
  • Dependency security not audited; check for known vulnerabilities.
  • Known limitations not listed; users may be unaware of boundaries.
Review evidence [1][2][3][4][5][6][7]
See the full review method →

What does this agent do, and when should you use it?

DB-GPT is an open-source agentic AI data assistant for the next generation of AI + Data products. It lets users and teams connect to databases, CSV/Excel files, warehouses, and knowledge bases, ask questions in natural language, and let AI autonomously write SQL and code. It runs Python- and code-driven analysis workflows, loads reusable skills for domain-specific tasks, and generates charts, dashboards, HTML reports, and analysis summaries. DB-GPT also serves as a platform for building AI-native data agents, workflows, and applications, with support for agents, AWEL, RAG, and multiple LLM providers. The project is MIT-licensed and offers one-line installation scripts and PyPI packages for quick deployment, with a web UI available at localhost:5670.

DB-GPT performs concrete operations: it reads from multiple data sources through connection managers (relational databases, CSV/Excel, documents, knowledge bases); uses an agent framework to plan tasks, break them into steps, call tools, and iterate; generates SQL from natural language and executes Python code for data cleaning, metric computation, and transformations; loads and runs reusable skills (e.g., SQL analysis skills, financial report analysis); executes code in sandboxed environments for safety; and produces outputs such as charts, dashboards, HTML reports, and summaries. Key components include the dbgpt CLI, FastAPI backend, agent execution engine, AWEL workflow engine, and RAG document parsing.

  1. Data analysts: upload a CSV file and get an AI-generated data overview with visual reports.
  2. Business users: ask questions about a database in plain English; AI writes the SQL and returns results.
  3. Finance teams: perform financial statement analysis with code, charts, and narrative summaries.
  4. Developers: use DB-GPT's framework to build custom AI data assistants with AWEL workflows.
  5. Enterprises: connect private data sources and knowledge bases, run analyses in a secure sandbox.

What are this agent's strengths and limitations?

Pros
  • Supports a wide range of data sources (databases, CSV/Excel, knowledge bases) and multiple LLM providers (DeepSeek, Qwen, GLM, Llama, etc.), giving flexibility in model choice.
  • Provides sandboxed code execution for safer, more reliable analysis.
  • Built-in AWEL workflow and skill mechanisms allow building reusable domain-specific analysis pipelines.
  • One-line installer and PyPI package make deployment straightforward.
  • Generates visual reports, dashboards, and HTML outputs, supporting decision-making.
Limitations
  • Installation requires Python 3.10+ and uv, which may be a barrier for some environments.
  • Sandboxed execution may restrict certain operations requiring network or specific libraries.
  • Natural language to SQL accuracy depends on the chosen LLM; may need fine-tuning or careful model selection.
  • For large datasets or complex analyses, performance may be a concern.
  • Documentation and community support are less mature than commercial products; troubleshooting may require self-help.

How do you install or deploy this agent?

Installation:

  1. One-line install (macOS/Linux):
curl -fsSL https://raw.githubusercontent.com/eosphoros-ai/DB-GPT/main/scripts/install/install.sh | bash

Or specify an API key:

curl -fsSL https://raw.githubusercontent.com/eosphoros-ai/DB-GPT/main/scripts/install/install.sh | OPENAI_API_KEY=sk-xxx bash -s -- --profile openai
  1. PyPI install (requires Python 3.10+ and uv):
uv pip install dbgpt-app

Or with pip: pip install dbgpt-app.

  1. Docker installation: see official docs.

How do you use this agent?

After installation, start the server:

cd ~/.dbgpt/DB-GPT && uv run dbgpt start webserver --profile <profile>

Or, with the PyPI package, simply run dbgpt start, then open http://localhost:5670. The first run launches an interactive wizard to choose an LLM provider and enter your API key. Then you can connect data sources, ask questions, run analyses, and generate reports through the Web UI.

FAQ

Which databases does DB-GPT support?
It supports common relational databases (e.g., MySQL, PostgreSQL) and other sources; see the official docs for the full list.
Can I use local models?
Yes, DB-GPT supports local deployment via vLLM, llama.cpp, etc., and offers many open-source models (LLaMA, Qwen, etc.).
Is code execution safe?
DB-GPT provides sandboxed execution environments to isolate code, but it's recommended to avoid running untrusted code.
What are the prerequisites for installation?
Python 3.10+ is required, and uv is recommended; the one-line installer works on macOS and Linux.
How can I extend with new data sources or skills?
You can add new data source connectors and write custom skills; refer to the official development guides.

Related agents