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.

Stars
★ 20k
Last updated
1d ago v0.8.3
FARS reviewed
Nov 08, 2026 +1 new
License
MIT
Primary language
Python

At a glance

How it runs
CLISelf-hosted serviceWeb app
Works with
Universal · cross-platform
Cost
Free software; you pay for model usage
Setup effort
Low · running in minutes
You'll need
Python 3.10+uvDocker (optional)Shell / CLINetwork accessLocal filesystem
Typical use
Data analysts: upload a CSV file and get an AI-generated data overview with visual reports.
Not a fit if
  • Users unwilling to supply paid OpenAI, Moonshot, or MiniMax API keys
  • Enterprises needing mature commercial-grade docs and support
Website
docs.dbgpt.cn ↗ set on GitHub
Maintenance
Commits in the last 30 dayslast commit 2026-12-02latest release v0.8.3 (2026-11-17)+2.9 ★/day over 7 days

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.

Key setup facts

Pulled from the install and usage notes below. The project README has the current values.

Install / run
  • curl -fsSL https://raw.githubusercontent.com/eosphoros-ai/DB-GPT/main/scripts/install/install.sh | bash
  • uv pip install dbgpt-app
  • pip install dbgpt-app
Environment variables
OPENAI_API_KEY
Config files
~/.dbgpt/DB-GPT
Runtime
Python 3.10+
Install notes cover
macOS · Linux · Docker

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.

Safety boundaries, hardening & integrations

Operational blast radius, source-verified safety controls, and first-run hardening steps before connecting this agent to real workspaces.

Declared capability surface (blast radius)

Local shell command execution

Can run terminal commands; pair with approval gates or container/OS sandboxing.

Local filesystem read/write

Modifies local files; work on a clean Git branch or dedicated worktree.

Outbound network access

Makes outbound requests; verify telemetry settings and model data routing on private repos.

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 does this agent compare with similar options?

Key facts side by side with the most closely related agents.

Agent Source review Form / cost Stars Updated Language Full support on
DB-GPT: Open-Source Agentic AI Data Assistant This agent 50 · Major gaps CLIFree + model costs ★ 20k 1d ago Python —
OpenChatBI — Conversational BI Agent 66 · Some gaps Library / SDKFree + model costs ★ 676 29d ago Python OpenAI API · Claude API
DeepEye 65 · Some gaps — ★ 275 5mo ago Python —
CAMEL Multi-Agent Framework 60 · Some gaps Library / SDKFree + model costs ★ 18k 2d ago Python OpenAI API

How does FollowAgents rate this agent?

FollowAgents source review · FARS-2.1
Major gaps
50/ 100 5-point scale 2.5 / 5
This review covers the source as of Nov 08, 2026. The project has shipped 1 stable release(s) since, which have not been re-reviewed. The score and verdict describe the reviewed version only. Recent releases ↓
Trust 11/29
Reliability 6/14
Adaptability 12/18
Convention 10/18
Effectiveness 7/13
Verifiability 4/8
Why each dimension lost points
Trust11 / 29 · 1.9/5

The project offers local and proxy models, data-source connections, and SQL/code execution, and claims sandboxing and privacy protections. The supplied material does not show a permission model, sensitive-data controls, or a general pre-execution confirmation flow, so least privilege, confirmation, data-flow transparency, and sensitive-data handling receive partial credit. Proxy API keys must be configured; the README also claims proxy desensitization but does not explain key storage, rotation, or desensitization boundaries. Dependencies use uv and workspace packages, with no dependency audit or security policy shown. Example registration tests indicate a key is sent in a request header and not saved; failure-boundary tests show offline mode does not download and existing databases are preserved, giving limited evidence for external effects and rollback. The LICENSE names a copyright holder and paper citations provide attribution clues, so source attribution is relatively well supported; publisher identity remains unknown as instructed.

Reliability6 / 14 · 2.1/5

pyproject.toml specifies the Python requirement, workspace members, and development dependencies, while Quickstart documents several model configurations and launch commands, supporting basic deployment guidance. However, the supplied Quickstart excerpt contains a truncated command sequence, and the packet does not show the core Agent implementation or complete dependency-lock evidence, so self-consistency and dependency availability receive only partial credit. Example tests cover missing offline archives, hash mismatches, preservation of existing databases, and default non-registration, giving concrete evidence for failure handling; they do not establish runtime correctness.

Adaptability12 / 18 · 3.3/5

The README targets enterprises and developers and names data analysis, SQL/code, multi-source data, and skill extensions. The supplied skills specify triggers, preconditions, workflows, and tool boundaries for CSV analysis and dashboard creation. Quickstart covers proxy and local models, SQLite defaults, and GPU-related setup, supporting ordinary scenario and environment fit. Scores are limited because the README's capability claims are broad and the excerpts do not define the framework's full boundaries.

Convention10 / 18 · 2.8/5

The packet includes a multilingual README, documentation quickstart, skill directory, workspace pyproject, MIT license, and release-notes entry point, providing a useful information structure, installation guidance, and clear license text. Several skills include concrete examples and FAQ-like constraints, and Dashboard Builder documents the no-selected-database condition. Project-level limitations are sparse, and naming across sample skills and modules is not fully uniform. The README points to release information, but the materials provide limited evidence about a responsible maintainer and an explicit update path, so maintenance responsibility receives partial credit.

Effectiveness7 / 13 · 2.7/5

The project aims to connect natural-language requests with data, analysis, and dashboards, and provides structured report templates, artifact references, and multi-model/data-source support. This indicates reusable output paths and a distinct data-workflow value. The supplied skills require numeric report values to be bound to captured artifacts and distinguish evidence from interpretation; however, the packet provides no systematic cost or resource comparison and does not substantiate realized benefits across scenarios, so cost-benefit receives a low score.

Verifiability4 / 8 · 2.5/5

README scope claims receive some cross-source support from skill instructions, Quickstart configurations, pyproject metadata, and example tests. The report skill requires artifact references for numeric values; the CSV skill describes deriving insights from a statistical summary; and the dashboard skill requires use of the selected source and distinguishes sampled evidence from exact facts. These support separation of evidence and inference. Promotional claims about performance, accuracy, and privacy lack matching implementation or independent support in this packet, limiting claim traceability.

Risks and how to mitigate them
  • The README describes autonomous SQL/code execution and sandboxing; check tool permissions, isolation, user confirmation, and data-access scope before deployment because this packet does not establish that these controls are comprehensive.
  • Quickstart requires proxy API-key configuration and may download models from model hubs; review network transfer, credential handling, and model sources against your data policies.
Evidence confidence: Low Reviewed Nov 08, 2026 Reviewed revision 9d50d0a55071 New commits since this review; the score may not cover them
See the full review method →
Maintain this project? Add the FARS badge to your README

The badge shows the current review score and verdict and links back to this page. It refreshes about once an hour after a re-review.

FARS

[![FARS review](https://followagents.com/badge/db-gpt.svg)](https://followagents.com/en/agents/db-gpt)
<a href="https://followagents.com/en/agents/db-gpt"><img src="https://followagents.com/badge/db-gpt.svg" alt="FARS review"></a>

Recent releases

Latest entries from the project's GitHub Releases. Notes are quoted from upstream as written, not rewritten or tested by FollowAgents.

  1. v0.8.3
    Release notes excerpt
    ✨ Enhancements - improve evidence verification and report recovery (#3348) - add configurable metadata payload indexes (#3305) - Add structured and traceable data analysis reports (#3295) - add dashboard workspace with Next.js 16 toolchain upgrade (#3278) - add Keenable Search MCP connector template (#3227) - tag Valkey clients with lib-name client\_info\_tag (#3282) - add llm wiki index for knowledge module (#3276) - add configurable runtime execution (#3272) - add Serply search tool (#3243) - add llm provider ui (#3241) - add Synthorai as a proxy LLM provider (#3210) …
    View on GitHub ↗
  2. v0.8.2
    Release notes excerpt
    ✨ Enhancements - support multi-file upload and analysis (#3206) - add OrcaRouter proxy provider (#3186) - add MaxCompute (ODPS) datasource support (#3105) (#3178) - Parallel sub-agent delegation execution (#3161) - Agentic Knowledge-Base Search (Indexing + Agentic RAG) (#3160) - add ask_question tool as builtin-tools (#3107) 🐞 Bug fixes - avoid KeyError when chart/sql run omits db\_name (#3199) - include flow uid in update\_flow PUT path (#3193) (#3196) - use LONGTEXT for large agent messages on MySQL (#3189) - move EXAMPLE\_1 database creation to end of schema file (#3183) …
    View on GitHub ↗
  3. v0.8.1
    Release notes excerpt
    ✨ Enhancements - Support Schedule task and MCP connector (#3095) - add CLIENT SETNAME to Valkey vector store client (#3090) - upgrade MiniMax default model to M3 (#3093) - Harden ~/.dbgpt/configs/\<profile>.toml file permissions to 0o600 (#3077) - adds context management, task-plan tracking, and the corresponding frontend UI. (#3053) - Implement VARBINARY and BINARY types for StarRocks (#3062) - add Valkey cache integration (#3057) - make distance metric configurable (#3044) - add Valkey vector store integration (#3051) - add LiteLLM as an embedded AI gateway provider (#3043) …
    View on GitHub ↗

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.
Was this page helpful?
View on GitHub ↗ Install ↓

Related concepts