Skip to main content
Version: dev

Prerequisites

Everything you need before installing DB-GPT.

Quick check

Already have Python 3.10+ and uv? Skip to Getting Started.

Required​

RequirementVersionCheck command
Python3.10 or newerpython --version
uvLatestuv --version
GitAny recentgit --version

Python​

DB-GPT requires Python 3.10+. We recommend Python 3.11 for the best compatibility.

python --version
# Python 3.11.x
info

If you need to manage multiple Python versions, consider using pyenv or conda.

uv (package manager)​

Starting from v0.7.0, DB-GPT uses uv for environment and package management, providing faster and more stable dependency resolution.

curl -LsSf https://astral.sh/uv/install.sh | sh

Verify the installation:

uv --version

Choose the right setup first​

  • Fastest setup: API proxy model (OpenAI, DeepSeek, Qwen, SiliconFlow) — no GPU required
  • Privacy-first local setup: Ollama — local model runtime, optional GPU
  • High-performance local inference: vLLM or HuggingFace GPU stack — NVIDIA GPU required

Optional (based on deployment)​

For Web UI development​

RequirementVersionCheck command
Node.js18 or newernode --version
npm8 or newernpm --version

For local model deployment​

RequirementDetails
NVIDIA GPUCUDA 12.1+ for GPU-accelerated inference
CUDA ToolkitRequired for vLLM, HuggingFace Transformers with GPU
Sufficient VRAM8 GB+ for 7B models, 24 GB+ for 13B+ models
info

If you only use API proxy models (OpenAI, DeepSeek, etc.), no GPU is required. You can run on a CPU-only machine.

For Docker deployment​

RequirementVersionCheck command
Docker20.10+docker --version
Docker Compose2.0+docker compose version
NVIDIA Container ToolkitLatest (GPU only)nvidia-smi

System resources​

Deployment TypeCPURAMDisk
API proxy only2 cores4 GB10 GB
Local 7B model4 cores16 GB30 GB
Local 13B+ model8 cores32 GB60 GB

Network considerations (China)​

If you are in the China region, configure a PyPI mirror for faster package downloads:

# Set the mirror as environment variable
echo "export UV_INDEX_URL=https://pypi.tuna.tsinghua.edu.cn/simple" >> ~/.bashrc
source ~/.bashrc

Or append --index-url to each uv sync command:

uv sync --all-packages \
--extra "base" \
--extra "proxy_openai" \
--index-url=https://pypi.tuna.tsinghua.edu.cn/simple

Next step​

Ready to go? Head to Getting Started for a 5-minute setup.