DB-GPT
DB-GPT 是 osFoundry 社区目录中的应用。面向数据库的 AI 原生数据应用开发框架——用自然英语与你的 SQL / NoSQL 数据对话,带上下文生成 SQL,构建 text-to-SQL 工作流,并将数据分析副驾驶嵌入你的应用。多 LLM 支持,内置对 OpenAI / Claude / Gemini / DeepSeek / 通义千问 / 本地模型的接入。应用自身状态默认使用 SQLite;可接入任意数量的上游 Postgres / MySQL / MongoDB 数据库供 AI 内省与查询。是当前最成熟的开源数据 AI 助手。
详情
- 工作区: osfoundry
- 分类: AI
- 价格: Free
- 访问权限: Community
功能
- Text-to-SQL across Postgres / MySQL / SQLite / MongoDB / Elasticsearch / DuckDB / ClickHouse
- Chat with CSVs + Excel — upload files, ask questions in plain English
- App Center with pre-built data-AI apps (SQL Generator, Data Analysis, RAG over docs)
- Multi-LLM: OpenAI / Claude / Gemini / DeepSeek / Qwen / Ollama / vLLM / custom OpenAI-compatible
- No-code workflow builder for custom data-AI apps
- SQLite default for the app's own state — connected databases stay where they are
文档
文档由上游项目以英文维护。
# DB-GPT
## First-boot
No default password — first user to register becomes admin. Configure auth from the Settings menu.
## Connect a database
**Database → Add Connection** — supports:
- Postgres / MySQL / SQLite / DuckDB / ClickHouse
- MongoDB / Elasticsearch / OceanBase
- File: CSV / Excel
Paste the connection string. DB-GPT introspects the schema and makes it available as context for AI chats.
## Text-to-SQL chat
**Chat → New → pick the connected DB**. Ask questions in plain English:
- 'How many users signed up last month, by referrer?'
- 'Top 10 customers by lifetime value'
- 'Show me orders with shipping anomalies'
DB-GPT generates the SQL, runs it, and presents the result table + a natural-language summary.
## Apps
**App Center** — pre-built data-AI apps:
- **SQL Generator** — NL → SQL with multi-table joins
- **Data Analysis** — chart generation from queries
- **RAG over docs** — add markdown / PDF / web context
- **Custom apps** via no-code workflow builder
## Storage
SQLite at `/data/pilot/` for DB-GPT's own state. The connected databases stay where they are; DB-GPT only stores connection configs + chat history.
如何在 osFoundry 中使用 DB-GPT
一键将 DB-GPT 安装到您的工作区,然后在 osStudio 中将其分支,针对您的技术栈自定义提示词、工具或配置。工作区中的任何人都可以接续您的工作继续推进。
社区中的其他应用
- 客户关系管理 — 客户关系管理工具,支持联系人、交易和销售管道跟踪。
- Kanban Board — Trello 风格的看板与项目板,含卡片、面板、日历与表格视图以及每面板属性。基于 Focalboard(独立个人服务器)构建。在持久卷上内嵌 SQLite。
- 服务台 — 工单分流与客户支持收件箱,附带 SLA 跟踪。
- Page Builder — 可视化拖放页面生成器,支持区块、主题、SEO 与发布
- Website Builder — 带 CMS 合集、全局导航、页脚、主题与发布的多页面网站生成器
- 店面 — 电商店面,包含商品目录、购物车和结账流程。