DB-GPT README

The project's README from github.com/eosphoros-ai/DB-GPT. As one markdown file: README.md.

DB-GPT

DB-GPT: Open-Source Product for Controlled Data Agents

From a data question to verifiable queries, analytical reports, and reusable dashboards.

GitHub Stars Latest release MIT License Follow DB-GPT on X (Twitter) Join the DB-GPT Discord community

English · 简体中文 · 日本語 · हिन्दी · മലയാളം · தமிழ்

Documentation · Releases · Community · Quick start

Connect your data, establish business definitions, choose expert methods, execute within configured tool and runtime boundaries, and deliver results you can inspect, edit, and reuse.

DB-GPT goes beyond translating natural language into SQL. It brings data connections, business semantics, expert skills, task orchestration, and analytical artifacts into one workflow: a practical assistant for users and an extensible foundation for developers building AI-native data applications.

Product demo · Why DB-GPT? · Product modules · Safety and execution boundaries · Quick start · Community

Product demo

https://github.com/user-attachments/assets/36ddad2c-1021-4181-b31a-8fb216c93f81

Why DB-GPT?

Business context before queries

“Revenue” can mean different date attribution, refund treatment, and scope. The Semantic Center organizes schema metadata, business meanings, metric formulas, and published versions so an agent can work from explicit definitions rather than guess them again for each question.

Expert methods, not just answers

Use specialized plugins for queries, analysis, SQL optimization, metadata and architecture, or financial analysis. Skills package reusable instructions and scripts; workflows make steps, dependencies, and tool configuration explicit.

Reusable results

Deliver query tables, charts, analytical reports, and editable dashboards—not only chat messages. Inspect the execution, review the result, request changes, and retain the artifact for the next task.

Human control over consequential actions

Models, tools, data sources, and runtime access depend on deployment and task configuration. Dashboard plans and proposed edits can be reviewed before application. Controlled execution is not a guarantee of absolute safety: use least-privilege credentials, appropriate isolation, and independent review.

Product modules

A shared starting point

The current DB-GPT home interface: natural-language input, model selection, and expert entry points

Start with a question, a file, or a database. Choose a model and the relevant expert, clarify the objective, and move into a query, analysis, or dashboard task.

1. Dashboards: from plan to board view

Start with a plan or template, generate a draft, edit widgets and queries, and enter Preview to present the full board.

The generated Walmart dashboard in Preview: total sales, active stores, weekly trend, and Top 10 stores

This is the actual Walmart dashboard generated and saved during the product demo, shown in Preview board view. Its four widgets include sales and store KPIs, a weekly trend, and a Top 10 ranking. It is a saved draft, not a publicly published board.

The featured Walmart board uses an example dataset. Its values illustrate this case, not current company performance.

2. Plugins and Skills: reusable expertise

Select an expert plugin for the task and bind its data, knowledge context, and permitted tools. Skills package domain instructions, methods, and scripts.

The English plugin interface with five data-expert categories

Expert Typical work
Data Query Clarify the question and metric, inspect and execute SQL, export results
Data Analysis Inspect data, analyze trends and composition, prepare reports and dashboards
SQL Optimization Inspect SQL and execution plans, propose changes for review
Metadata & Architecture Organize data dictionaries, relationships, and modeling recommendations
Financial Analysis Read financial materials and structure comparisons, subject to configuration and data prerequisites

Plugins provide methods, not data permissions. Review third-party instructions, scripts, dependencies, and tool access before installing them.

3. Data sources: reliable connections

Manage database connections and select the source for each task. Queries, analysis, and dashboards can work from the same connection inventory and metadata context.

Full English database catalog: all 27 types, with environment availability preserved

Supports data sources including MySQL, PostgreSQL, SQLite, DuckDB, ClickHouse, Apache Doris, StarRocks, Oracle, MSSQL, Neo4j, and TuGraph.

4. Semantic Center: maintained metric definitions

Organize metadata, business definitions, metrics, query examples, relationships, and rules around a source. Published definitions preserve versions that can be associated with a query result.

The Semantic Center with published metric formulas and versions

5. Workflow: explicit steps and collaboration

Use the visual editor to organize Agent nodes, inputs, outputs, serial steps, and parallel branches. Prefer explicit workflows when a task should be repeatable.

An English workflow template with semantic grounding, planning, parallel analysis, and combined review

This is a template editing view, not evidence that the workflow has been debugged or published. Configure its data source, model, and tools before running it.

6. Knowledge, connectors, and runtime management

From question to result

Connect → Ground → Plan → Execute → Review → Reuse

  1. Select the source and clarify the objective, time range, and metric scope.
  2. Inspect fields, data quality, business definitions, and metric versions.
  3. Select an expert and Skills; configure a workflow for repeatable tasks.
  4. Execute SQL, code, or retrieval within permitted tools and runtimes.
  5. Review the plan, calculations, sources, artifacts, and proposed changes.
  6. Retain the report or dashboard; configure scheduling only with the required operational support.

Safety and execution boundaries

DB-GPT provides configurable execution and review mechanisms. Effective safety depends on deployment:

Capabilities depend on the release, configuration, schema migrations, and model behavior. Use the code and documentation for your version; a UI entry or historical demo is not a production-readiness guarantee.

Quick start

Option 1: installer for macOS and Linux

Download and review the script before running it:

curl -fsSL https://raw.githubusercontent.com/eosphoros-ai/DB-GPT/main/scripts/install/install.sh -o install.sh
less install.sh
bash install.sh

Follow the wizard to choose a profile and configure a model provider. Then use the directory and startup command printed by the installer:

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

Replace <profile> with your configured profile and open http://localhost:5670.

Existing source checkout: keep your current branch

From the repository root:

bash scripts/install/install.sh --profile openai --repo-dir "$(pwd)"
uv run dbgpt start webserver --profile openai

--repo-dir reuses the current checkout instead of cloning or switching branches. Provider credentials and required services still need configuration.

With dependencies installed and an appropriate TOML configuration, the backend can also be started directly:

.venv/bin/python packages/dbgpt-app/src/dbgpt_app/dbgpt_server.py -c configs/dbgpt-proxy-openai.toml

For frontend development, run npm run dev -- --hostname 127.0.0.1 --port 3000 inside web/. A running UI does not prove model inference or data access is ready.

Option 2: PyPI

Use Python 3.10 or newer:

pip install dbgpt-app
dbgpt start

Complete provider setup before using the interface. PyPI releases, main, and feature branches may differ; use the corresponding source checkout to test branch-specific features.

See the documentation for additional installation and configuration options.

Developer ecosystem

Consult current documentation for provider support, drivers, and dependencies instead of treating historical model lists as compatibility guarantees.

Vision and evolution

Make trustworthy data work open and composable: help users complete an analysis while enabling teams to retain business context, reusable methods, and analytical artifacts.

Development directions include semantic consistency, task evaluation, execution diagnostics, portable Skills and workflows, and supervised recurring tasks. Track proposals and priorities through Issues and Discussions, without assuming unconfirmed release dates.

Community

Contribute reproducible cases, fixes, documentation, Skills, and workflows. Include the version, configuration method, and a minimal reproduction when reporting a problem; remove secrets and sensitive data from logs.

Contribution

For detailed guidelines, see how to contribute. Contributions to code, documentation, Skills, workflows, and reproducible examples are welcome.

Contributors Wall

DB-GPT contributors

License and disclaimer

DB-GPT is distributed under the MIT License. Read the disclaimer.

Academic citations

The following papers introduce the project and related research. They do not describe the compatibility of every current UI feature.

BibTeX references
@article{xue2023dbgpt,
      title={DB-GPT: Empowering Database Interactions with Private Large Language Models},
      author={Siqiao Xue and Caigao Jiang and Wenhui Shi and Fangyin Cheng and Keting Chen and Hongjun Yang and Zhiping Zhang and Jianshan He and Hongyang Zhang and Ganglin Wei and Wang Zhao and Fan Zhou and Danrui Qi and Hong Yi and Shaodong Liu and Faqiang Chen},
      year={2023},
      journal={arXiv preprint arXiv:2312.17449},
      url={https://arxiv.org/abs/2312.17449}
}
@misc{huang2024romasrolebasedmultiagentdatabase,
      title={ROMAS: A Role-Based Multi-Agent System for Database monitoring and Planning},
      author={Yi Huang and Fangyin Cheng and Fan Zhou and Jiahui Li and Jian Gong and Hongjun Yang and Zhidong Fan and Caigao Jiang and Siqiao Xue and Faqiang Chen},
      year={2024},
      eprint={2412.13520},
      archivePrefix={arXiv},
      primaryClass={cs.AI},
      url={https://arxiv.org/abs/2412.13520}
}
@inproceedings{xue2024demonstration,
      title={Demonstration of DB-GPT: Next Generation Data Interaction System Empowered by Large Language Models},
      author={Siqiao Xue and Danrui Qi and Caigao Jiang and Wenhui Shi and Fangyin Cheng and Keting Chen and Hongjun Yang and Zhiping Zhang and Jianshan He and Hongyang Zhang and Ganglin Wei and Wang Zhao and Fan Zhou and Hong Yi and Shaodong Liu and Hongjun Yang and Faqiang Chen},
      year={2024},
      booktitle={Proceedings of the VLDB Endowment},
      url={https://arxiv.org/abs/2404.10209}
}

Star History

Star History Chart

DB-GPT (eosphoros-ai/DB-GPT)

Searching Database…

20.3K ·GitHub
What is this?An open-source agentic AI data assistant: connect databases, files or knowledge bases, ask questions in plain language, and the AI writes SQL and code, runs the analysis, and produces charts, dashboards and reports.
Is this a cloud service, or something I host and run myself?Something you host yourself: it installs as a Python package, starts a local web server, and you drive it from a browser-based Web UI. It also works as a platform for building AI-native data apps.
How do I get it running?One-line installer on macOS & Linux, or install from PyPI with Python 3.10+ and uv or pip. On first run a setup wizard asks for your LLM provider and API key, then the web server starts automatically.
Do I need a paid API key, or can it run models locally?The wizard offers providers like OpenAI-compatible APIs, DashScope, Kimi and MiniMax. If you prefer to keep inference on your own hardware, local GPU models via vLLM or llama.cpp are supported too.
Does that one-line installer work on Windows too?No — the quick installer covers macOS & Linux only. On Windows you go through the advanced installation docs, which also cover Docker and manual source-code setup.
My data is sensitive — where does it actually go?It is built for private deployments: privacy and execution safety rest on private model deployment, proxy desensitization and sandboxed execution, and you can pair it with locally hosted models instead of a cloud API.
What data sources can it work with?Relational databases, CSV and Excel files, documents and knowledge bases — and it can mix sources in one workflow, so a database query and spreadsheet analysis can live in the same agentic task.
Which LLMs does it support?DeepSeek, Qwen, GLM, Llama, Gemma, Yi, Starling, SOLAR, Mixtral and Phi are listed as supported providers, and the quick start shows ready profiles for Kimi 2.5 via Moonshot and MiniMax via an OpenAI-compatible API.
What comes in the default PyPI install?The core framework — CLI, FastAPI server and Agent — plus OpenAI-compatible and DashScope LLM support, RAG document parsing and a ChromaDB vector store, so a basic RAG setup works out of the box.
Can I package my own analysis workflows for reuse?Yes — domain knowledge, analysis methods and execution steps are bundled into reusable skills, and AWEL lets you compose agents, workflows and applications on top of the platform.
Size
556.4 MB
Stars
20.3K
Age
3y
Commits · 90 Days