Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
D

DB-GPT

> 数据库
Open source

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

19.6K stars0 likes1 views
WebsiteGitHub

About

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

DB-GPT: Open-Source Agentic AI Data Assistant

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):

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

Or specify a profile and API key directly:

bash
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:

bash
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:

bash
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:

bash
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:

bash
MOONSHOT_API_KEY=sk-xxx \
  bash scripts/install/install.sh --profile kimi --repo-dir "$(pwd)" --yes

Or reuse your local repo with MiniMax:

bash
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:

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

Then open http://localhost:5670.

Prefer to review the script first?

bash
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

bash
# 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

bash
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:

  • Install
    • Docker
    • Source Code
  • Quickstart
  • Application
    • Development Guide
    • AWEL Flow Usage
  • Debugging
  • Advanced Usage
    • SMMF
    • Finetune
    • AWEL

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

Provider Supported Models
DeepSeek ✅ 🔥🔥🔥 DeepSeek-R1-0528
🔥🔥🔥 DeepSeek-V3-0324
🔥🔥🔥 DeepSeek-R1
🔥🔥🔥 DeepSeek-V3
🔥🔥🔥 DeepSeek-R1-Distill-Llama-70B
🔥🔥🔥 DeepSeek-R1-Distill-Qwen-32B
🔥🔥🔥 DeepSeek-Coder-V2-Instruct
Qwen ✅ 🔥🔥🔥 Qwen3-235B-A22B
🔥🔥🔥 Qwen3-30B-A3B
🔥🔥🔥 Qwen3-32B
🔥🔥🔥 QwQ-32B
🔥🔥🔥 Qwen2.5-Coder-32B-Instruct
🔥🔥🔥 Qwen2.5-Coder-14B-Instruct
🔥🔥🔥 Qwen2.5-72B-Instruct
🔥🔥🔥 Qwen2.5-32B-Instruct
GLM ✅ 🔥🔥🔥 GLM-Z1-32B-0414
🔥🔥🔥 GLM-4-32B-0414
🔥🔥🔥 Glm-4-9b-chat
Llama ✅ 🔥🔥🔥 Meta-Llama-3.1-405B-Instruct
🔥🔥🔥 Meta-Llama-3.1-70B-Instruct
🔥🔥🔥 Meta-Llama-3.1-8B-Instruct
🔥🔥🔥 Meta-Llama-3-70B-Instruct
🔥🔥🔥 Meta-Llama-3-8B-Instruct
Gemma ✅ 🔥🔥🔥 gemma-2-27b-it
🔥🔥🔥 gemma-2-9b-it
🔥🔥🔥 gemma-7b-it
🔥🔥🔥 gemma-2b-it
Yi ✅ 🔥🔥🔥 Yi-1.5-34B-Chat
🔥🔥🔥 Yi-1.5-9B-Chat
🔥🔥🔥 Yi-1.5-6B-Chat
🔥🔥🔥 Yi-34B-Chat
Starling ✅<

Issues· 451 open

View all issuesOpen on GitHub
  • #3279

    [Feature][Storage] Tag Valkey connections with a library name (client_info_tag) for server-side attribution

    Updated Sep 29, 2026
  • #3275

    MemCode provider for durable user context in DB-GPT agents

    Updated Sep 29, 2026
  • #3072

    [Bug] [Docs] 入口文档的介绍图里有单词错误

    bugWaiting for replystaleUpdated Sep 24, 2026
  • #3081

    [Bug] [Module Name] DBGPT 0.8版本,在mysql数据库中新建表,Chat Data、Chat Dashbord应用无法找到新表

    bugWaiting for replystaleUpdated Sep 23, 2026
  • #3262

    [Doc][Connector] Scope for an optional BaizhiCloud MCP setup example

    Updated Sep 23, 2026
  • #3083

    [Vulnerability][dbgpt.agent.resource.tool.autogpt]Path Traversal Leading to Arbitrary File Write via Plugin Install in eosphoros-ai/DB-GPT

    bugWaiting for replystaleUpdated Sep 21, 2026
  • #3256

    Unauthenticated file read via GET /api/v1/agent/files/download

    Updated Sep 21, 2026
  • #3078

    [Feature][Module Name] Feature title

    enhancementWaiting for replystaleUpdated Sep 18, 2026
  • #3242

    [Security] HITL tool-confirmation endpoints (`/pending-confirms`, `/confirm`) have no authentication — unauthenticated approval of arbitrary tool executions

    Updated Sep 17, 2026
  • #3075

    [Bug] [web] new task button and auto-refresh sidebar dialogue list

    bugWaiting for replystaleUpdated Sep 16, 2026

> Tags

Pythonagentsbgidatabasedeepseek

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedOct 1, 2026
Category数据库
PricingOpen source

> Related tools

P
PostgreSQL
功能强大的开源关系型数据库
R
Redis
内存数据结构存储,常用作缓存与队列
M
MySQL
广泛使用的开源关系型数据库