PyPI 安装需 Python 3.10+ 并推荐先装 uv;首次启动要交互式选择 LLM 提供商并填 API Key;默认 Web 端口是 5670,本地 GPU 模型需按文档另行配置后端

DB-GPT
eosphoros-aiMIT活跃维护基于大模型和 Agent 的数据库智能助手,用自然语言直接查询和分析数据库,支持 RAG 与私有化部署,方便搭建 AI+Data 应用。
open-source agentic AI data assistant for the next generation of AI + Data products.
uv pip install dbgpt-app
dbgpt startREADME 未说明具体显存要求;默认安装走云端 LLM API,本地 GPU 模型(vLLM、llama.cpp)需另见官方文档。
开源智能体式 AI 数据助手,连上你的库和文件,自动写 SQL 和代码做分析出报告
基于大模型和 Agent 的数据库智能助手,用自然语言直接查询和分析数据库,支持 RAG 与私有化部署,方便搭建 AI+Data 应用。
核心能力
- 自然语言提问后由 AI 自主规划任务并分步执行
- 自动生成 SQL 与 Python 代码查询、清洗数据并算指标
- 支持数据库、CSV/Excel、文档和知识库多源混合分析
- 把领域分析方法打包成可复用 skill 按需加载执行
- 代码与工具在沙箱隔离环境中运行,产出图表和 HTML 报告
容易踩的坑
- v0.8.2最新正式版2026-08-26 · 2026-08-26 11:10 UTC
✨ 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)
- separate citations from final answers (#3182)
- validate user_id to prevent path traversal in python file upload (#3104) (#3184)
- only load files named SKILL.md as Markdown skills (#3175)
- prevent command injection in MacOSTTS (#3129) (#3174)
- avoid ValueError when LLM output has multiple json fences (#3117)
- fix the unsandboxed jinja2 rce problem. (#3111)
- inner_copy_and_install must not report a failed build as success (#3141)
- deserialize table chunks when a separated chunk is present (#3140)
- create_datasource/create_flow must POST, not GET (#3138)
- fix CORS allowed origins security (#3123)
- StreamedBytesIO ignores negative read size and drops seek(SEEK_END) position (#3136)
- handle native bool value in VariablesProvider._convert_to_value_type (#3135)
- preserve bucket in simplified fsspec paths (#3134)
- ExcelKnowledge._load must handle headerless sheets and multi-sheet workbooks (#3137)
- correct empty/non-list guard in TeiRerankEmbeddings._parse_results (#3133)
- avoid handleChat temporal dead zone (#3132)
- allow Milvus vector store type in TOML configuration (#3127)
👥 New Contributors
- @Bartok9
- @Carbene
- @Dellorchid
- @DreamZhongJu
- @Osamaali313
- @XiaoHuo888-hue
- @chuenchen309
- @mumubuku
- @yyyCode
Thank you to all our contributors for making this release possible! @Aries-ckt, @Bartok9, @Carbene, @Dellorchid, @DreamZhongJu, @Osamaali313, @XiaoHuo888-hue, @chen-alan, @chenliang15405, @chuenchen309, @mumubuku, @yyyCode and 田云钊
中文发版说明: http://docs.dbgpt.cn/zh-CN/docs/next/changelog/Released_V0.8.2 Release Note:http://docs.dbgpt.cn/docs/next/changelog/Released_V0.8.2
- v0.8.12026-06-18 · 2026-06-18 05:24 UTC
查看更新说明
✨ 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)
- Adds support for vector search with Qdrant (#3034)
- add openGauss datasource support (#3007)
- cache ConnectorManager.get_connector with TTL (~63s -> <10ms on warm cache) (#3046)
🐞 Bug fixes
- require local runtime opt-in (#3092)
- support DeepSeek V4 Pro (#3079)
- use size chunking by default for markdown knowledge (Fixes #3030) (#3033)
- restrict personal skill script execution (#3071)
- validate example file names (#3066)
- validate skill upload filenames (#3065)
- handle knowledge space id responses (#3070)
- constrain python upload filenames (#3064)
- tolerate multi-step ReAct output (#3074)
- Implement VARBINARY and BINARY types for StarRocks (#3062)
- tell LLM the table list is a TOP-K subset, not the full DB (#3045)
- fix the insufficient length of the content column in the gpts_messages table (#3055)
- make MilvusStore compatible with milvus 2.5+ (#3042)
- per-chunk error tolerance + per-db indexing lock (#3040)
- override get_fields() for MSSQL with SQL Server-correct INFORMATION_SCHEMA (#3039)
- add authentication dependency to knowledge module endpoints (#3038)
- BranchOperator incorrectly skips shared downstream nodes (fixes #2935) (#3035)
- honor configured Tongyi embedding model name (Fixes #3029) (#3032)
- use explicit UTF-8 encoding when writing code_interpreter temp script (#3023)
- Fix DuckDB datasource creation from Web UI (#3009)
👥 New Contributors
- @Aalron
- @Anush008
- @Artoriasn
- @Goodnight77
- @JAE0Y2N
- @RheagalFire
- @atao2004
- @daric93
- @github0070070
- @hankchrome
- @he-yufeng
- @mryanzhicong
- @wolfkill
Thank you to all our contributors for making this release possible! @Aalron, @Anush008, @Aries-ckt, @Artoriasn, @Goodnight77, @JAE0Y2N, @RheagalFire, @atao2004, @chenliang15405, @daric93, @github0070070, @hankchrome, @he-yufeng, @honglei, @mryanzhicong, @octo-patch and @wolfkill
中文发版说明: https://www.yuque.com/eosphoros/dbgpt-docs/cehdiidrbm8kw1md Release Note:http://docs.dbgpt.cn/docs/next/changelog/Released_V0.8.1
- v0.8.02026-03-27 · 2026-03-27 05:42 UTC
查看更新说明
✨ Enhancements
- 🎉 DB-GPT V0.8.0 - Beta Testing (#2988)
- Fix v0.7.5 documentation build failure with patch file (#2979)
- add dbgpt app start cli (#2997)
- upgrade MiniMax default model to M2.7 (#2993)
- add MiniMax provider support (#2989)
🐞 Bug fixes
- fix web api prcess url & optmize doc image load performence (#3003)
- add docsSidebar alias to versioned sidebars patches (#3002)
- ignore leading vis-thinking block in react parser (#2996)
🛠️ Other improvements
- update 0.8.0 version (#3004)
- add v0.8.0 usage documentation (#2998)
- update pacakge version (#2992)
- install and readme (#2991)
👥 New Contributors
- @octo-patch
- @LXW2019124
Thank you to all our contributors for making this release possible! @Aries-ckt, @Copilot, @LXW2019124, @chenliang15405, @copilot-swe-agent, @fangyinc and @octo-patch
中文发版说明: https://www.yuque.com/eosphoros/dbgpt-docs/khk5q4iepigef6s1 Release Note:http://docs.dbgpt.cn/docs/next/changelog/Released_V0.8.0
- v0.7.52026-02-11 · 2026-02-11 07:12 UTC
查看更新说明
✨ Enhancements
- Introduce Neo4j integration. (#2951)
- support benchmark task execute diff environment datasets (#2957)
- enable Elasticsearch full text search support (#2947)
- adjust benchmark dataset (#2940)
- adjust benchmark data construct approach (#2948)
- support agent api execute benchmark dataset (#2945)
- update benchmark github repo data loading time (#2936)
- Add MetricInfoRetrieverAgent And WebSerachAgent (#2904)
- Add data analysis agent and AnomalyDetectionAgent (#2897)
- Support sandbox for DB-GPT (#2901)
🐞 Bug fixes
- fix boolean and null value result compare (#2967)
- correct the number of arguments in BuiltinKnowledgeGraph.aload_document call (#2966)
- Error when configuring data sources via environment variables (env) (#2924)
- issue2932 (#2933)
- Add missing file_id parameter to BuiltinKnowledgeGraph.aload_doc… (#2926)
- resolve the multi-window issue of the awel workflow (#2944)
🛠️ Other improvements
- update docs typo (#2964)
- adjust benchmark dataset (#2940)
👥 New Contributors
- @Hikomorebi
- @ZhikunZheng
- @lusains
- @zhangyj21-lh
- @ymx10086
Thank you to all our contributors for making this release possible! @Aries-ckt, @Hikomorebi, @ZhikunZheng, @chenliang15405, @dusx1981, @huhao0926, @liuhill, @lusains, @yaoyifan-yyf, @ymx10086, @zhangyj21-lh and alan.cl
中文发版说明: https://www.yuque.com/eosphoros/dbgpt-docs/khk5q4iepigef6s1
- v0.7.42025-10-24 · 2025-10-24 02:24 UTC
查看更新说明
✨ Enhancements
- Support glm4.5 models (#2867)
- feat: add BurnCloud as new AI model provider (#2890)
- feat(benchmark): Support Falcon Text2SQL Datasets LLM benchmark(#2918)
🐞 Bug fixes
- fix:Object of type time is not JSON serializable (#2915)
- pgvector_store read connection_string from env (#2887)
- Merge sheet cells problem in Excel Knowledge (#2907)
- improve graph storage configuration error message (#2880) (#2906)
- Delete corresponding Milvus data when using with TuGraph (#2858)
- fix doris DB connection use mysql protocol (#2875)
- fix url document rag mode (#2874)
- escape document separator (#2870)
- Fix HO context key error (#2862)
🛠️ Other improvements
- Add Tamil translation of README.md (#2914)
- Fix tongyi config example (#2884)
- Add Hindi translation for README.md (#2909)
- doc:add deep wiki for dbgpt (#2892)
👥 New Contributors
- @yaoyifan-yyf
- @iterminatorheart
- @liuhill
- @zuiyue-com
- @wxiao1002
Thank you to all our contributors for making this release possible! @Aries-ckt, @Mishu03, @chenliang15405, @fangyinc, @kobzevvv, @stevenlx96, @wxiao1002, @liuhill, @yaoyifan-yyf, @iterminatorheart and @zuiyue-com
中文发版说明: https://www.yuque.com/eosphoros/dbgpt-docs/dd0xqh9rpmfaoth9
用户点评
登录用户的真实使用记录,可按版本和硬件筛选还没有人点评。第一个说出真实体验的人最有价值。
DB-GPT: Open-Source Agentic AI Data Assistant
Documents | Contact Us | Community | Paper
An open-source AI data assistant that connects to your data, writes SQL and code, runs skills in sandboxed environments, and turns analysis into reports, insights, and action.
What is DB-GPT?
DB-GPT is an open-source agentic AI data assistant for the next generation of AI + Data products.
It helps users and teams:
- connect to databases, CSV / Excel files, warehouses, and knowledge bases
- ask questions in natural language and let AI write SQL autonomously
- run Python- and code-driven analysis workflows
- load and execute reusable skills for domain-specific tasks
- generate charts, dashboards, HTML reports, and analysis summaries
- execute tasks safely in sandboxed environments
DB-GPT is also a platform for building AI-native data agents, workflows, and applications with agents, AWEL, RAG, and multi-model support.
Why DB-GPT?
1. Agentic data analysis
Plan tasks, break work into steps, call tools, and complete analysis workflows end to end.
2. Autonomous SQL + code execution
Generate SQL and code to query data, clean datasets, compute metrics, and produce outputs.
3. Multi-source data access
Work across structured and unstructured sources, including databases, spreadsheets, documents, and knowledge bases.

4. Skills-driven extensibility
Package domain knowledge, analysis methods, and execution workflows into reusable skills.
5. Sandboxed execution
Run code and tools in isolated environments for safer, more reliable analysis.
What you can do with DB-GPT
- Analyze CSV / Excel files and generate visual reports
- Connect to databases and produce profiling reports
- Ask business questions in natural language and let AI write SQL automatically
- Perform financial report analysis with code, charts, and narrative summaries
- Create and reuse SQL analysis skills and domain workflows
- Combine code, SQL, retrieval, and tools in a single agentic workflow
- Build next-generation AI + Data assistants for your team or product
Product Workflow
Explore data
Connect files, databases, and knowledge bases in one workspace.
Plan and execute
Let AI reason through the task, write SQL and code, and execute step by step.
Use skills
Load reusable skills for repeatable business analysis workflows.
Generate reports
Produce charts, dashboards, HTML reports, and decision-ready outputs.
Quick Start
Get DB-GPT running in minutes with the one-line installer (macOS & Linux):
curl -fsSL https://raw.githubusercontent.com/eosphoros-ai/DB-GPT/main/scripts/install/install.sh | bash
Or specify a profile and API key directly:
curl -fsSL https://raw.githubusercontent.com/eosphoros-ai/DB-GPT/main/scripts/install/install.sh \
| OPENAI_API_KEY=sk-xxx bash -s -- --profile openai
For Kimi 2.5 via Moonshot API:
curl -fsSL https://raw.githubusercontent.com/eosphoros-ai/DB-GPT/main/scripts/install/install.sh \
| MOONSHOT_API_KEY=sk-xxx bash -s -- --profile kimi
For MiniMax via the OpenAI-compatible API:
curl -fsSL https://raw.githubusercontent.com/eosphoros-ai/DB-GPT/main/scripts/install/install.sh \
| MINIMAX_API_KEY=sk-xxx bash -s -- --profile minimax
Already have a local DB-GPT checkout? Reuse it instead of cloning ~/.dbgpt/DB-GPT:
OPENAI_API_KEY=sk-xxx \
bash scripts/install/install.sh --profile openai --repo-dir "$(pwd)" --yes
Or reuse your local repo with Kimi 2.5:
MOONSHOT_API_KEY=sk-xxx \
bash scripts/install/install.sh --profile kimi --repo-dir "$(pwd)" --yes
Or reuse your local repo with MiniMax:
MINIMAX_API_KEY=sk-xxx \
bash scripts/install/install.sh --profile minimax --repo-dir "$(pwd)" --yes
After installation, start the server with the generated profile config:
cd ~/.dbgpt/DB-GPT && uv run dbgpt start webserver --profile <profile>
Then open http://localhost:5670.
Prefer to review the script first?
curl -fsSL https://raw.githubusercontent.com/eosphoros-ai/DB-GPT/main/scripts/install/install.sh -o install.sh less install.sh bash install.sh --profile openai
Install via PyPI
Install DB-GPT from PyPI and start it with a single command — no source checkout required.
Prerequisites: Python 3.10+ and uv (recommended) or pip.
1. Install
# Recommended: use uv
uv pip install dbgpt-app
# Or with pip
pip install dbgpt-app
The default installation includes the core framework (CLI, FastAPI, Agent), OpenAI-compatible LLM support, DashScope / Tongyi support, RAG document parsing, and ChromaDB vector store.
2. Start
dbgpt start
On first run, an interactive setup wizard will guide you through choosing an LLM provider and entering your API key. Once complete, the web server starts automatically.
3. Open the Web UI
Visit http://localhost:5670 — you're all set! 🎉
Advanced Installation
For Docker, local GPU models (vLLM, llama.cpp), or manual source-code setup, see the full docs:
Core Capabilities
Agentic Analysis
- task planning
- step-by-step execution
- tool use
- iterative reasoning
SQL + Code Execution
- natural language to SQL
- Python-based analysis and transformation
- metric calculation
- chart generation
Multi-Source Data Access
- relational databases
- CSV / Excel
- documents
- knowledge bases
- mixed-source workflows
Skills and Agents
- reusable skills
- domain workflows
- agent orchestration
- customizable execution flows
Reporting and Decision Support
- database profiling reports
- financial analysis reports
- visual reports and dashboards
- summaries and business insights
Safe Execution
- sandboxed code execution
- controlled tool use
- reproducible outputs and artifacts
Text2SQL Finetune
| LLM | Supported |
|---|---|
| LLaMA | ✅ |
| LLaMA-2 | ✅ |
| BLOOM | ✅ |
| BLOOMZ | ✅ |
| Falcon | ✅ |
| Baichuan | ✅ |
| Baichuan2 | ✅ |
| InternLM | ✅ |
| Qwen | ✅ |
| XVERSE | ✅ |
| ChatGLM2 | ✅ |
More Information about Text2SQL finetune
Supported Models
Privacy and Security
We protect data privacy and execution safety through private model deployment, proxy desensitization, and sandboxed execution mechanisms.
Data Sources
Vision
We believe the future of data products goes beyond dashboards.
The next generation of AI + Data products will be:
- agentic
- multi-source
- skill-driven
- sandboxed
- capable of writing SQL and code
- able to turn analysis into reports, decisions, and action
DB-GPT aims to help developers and enterprises build that future.
Contribution
- To check detailed guidelines for new contributions, please refer how to contribute
Contributors Wall
Licence
The MIT License (MIT)
DISCKAIMER
Citation
If you want to understand the overall architecture of DB-GPT, please cite Paper and Paper
If you want to learn about using DB-GPT for Agent development, please cite the Paper
@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}
}
Contact Information
Thanks to everyone who has contributed to DB-GPT! Your ideas, code, comments, and even sharing them at events and on social platforms can make DB-GPT better. We are working on building a community, if you have any ideas for building the community, feel free to contact us.
- Github Issues ⭐️:For questions about using GB-DPT, see the CONTRIBUTING.
- Github Discussions ⭐️:Share your experience or unique apps.
- Twitter ⭐️:Please feel free to talk to us.