快速安装
这是让 DB-GPT 跑起来的最快方式。安装脚本会帮你准备本地 DB-GPT 工作目录、生成 provider profile,并给出可直接运行的 webserver 启动命令。
推荐:安装脚本
如果你想从零开始,以最短路径获得一个可用的 DB-GPT Web UI,推荐直接使用安装脚本。
curl -fsSL https://raw.githubusercontent.com/eosphoros-ai/DB-GPT/main/scripts/install/install.sh | bash系统要求
这个快速安装流程主要面向以下环境:
- macOS 或 Linux
- 可运行
bash的 shell 环境 - 可以联网下载依赖
- 如果你要直接使用托管模型 provider,需要提前准备好 API Key
适用场景
如果你想快速体验 DB-GPT,而不是手动管理仓库结构和依赖细节,这条路径最合适。
使用 provider profile 安装
如果你已经明确要使用哪个 provider,可以在安装时直接传入 profile 和 API Key。
OpenAI 兼容 profile
curl -fsSL https://raw.githubusercontent.com/eosphoros-ai/DB-GPT/main/scripts/install/install.sh | OPENAI_API_KEY=sk-xxx bash -s -- --profile openai通过 Moonshot API 使用 Kimi 2.5
curl -fsSL https://raw.githubusercontent.com/eosphoros-ai/DB-GPT/main/scripts/install/install.sh | MOONSHOT_API_KEY=sk-xxx bash -s -- --profile kimi通过 OpenAI 兼容接口使用 MiniMax
curl -fsSL https://raw.githubusercontent.com/eosphoros-ai/DB-GPT/main/scripts/install/install.sh | MINIMAX_API_KEY=sk-xxx bash -s -- --profile minimax复用已有本地仓库
如果你已经有一个本地 DB-GPT 仓库,可以直接复用,而不是重新克隆到 ~/.dbgpt/DB-GPT。
使用本地仓库 + OpenAI
OPENAI_API_KEY=sk-xxx bash scripts/install/install.sh --profile openai --repo-dir "$(pwd)" --yes使用本地仓库 + Kimi
MOONSHOT_API_KEY=sk-xxx bash scripts/install/install.sh --profile kimi --repo-dir "$(pwd)" --yes使用本地仓库 + MiniMax
MINIMAX_API_KEY=sk-xxx bash scripts/install/install.sh --profile minimax --repo-dir "$(pwd)" --yes