Documentation Index
Fetch the complete documentation index at: https://mintlify.com/bytedance/deer-flow/llms.txt
Use this file to discover all available pages before exploring further.
Quick Start
Get DeerFlow up and running in just a few steps. This guide covers both Docker (recommended) and local development setups.Prerequisites: Git, and either Docker (for Docker setup) or Node.js 22+, pnpm, uv, and nginx (for local development).
Step 1: Clone the Repository
First, clone the DeerFlow repository:Step 2: Configuration
Generate Configuration Files
Run the following command from the project root directory:config.yaml- Main application configuration.env- Environment variablesfrontend/.env- Frontend environment variables
Configure Your Model
Editconfig.yaml and define at least one model. Here’s an example with OpenAI’s GPT-4:
Set API Keys
Choose one of the following methods to configure your API keys:- Option A: .env File (Recommended)
- Option B: Shell Export
- Option C: Direct in config.yaml
Edit the
.env file in the project root:.env
Step 3: Running the Application
- Docker (Recommended)
- Local Development
The fastest way to get started with a consistent environment.
Initialize Docker
Pull the sandbox image (only needed once or when the image updates):This downloads the sandbox container image (~500MB+) used for isolated code execution.
Start Services
Start all services:This command automatically detects your sandbox mode from
config.yaml and starts the appropriate services:- Local/Docker sandbox mode: Starts frontend, gateway, langgraph, and nginx
- Provisioner mode: Also starts the provisioner service for Kubernetes-based sandboxes
Useful Docker Commands
See the CONTRIBUTING.md guide for detailed Docker development workflows.
Step 4: Verify Installation
Once DeerFlow is running, verify the installation:Send a Test Message
Type a simple message like “Hello, can you help me?” and verify the agent responds.
Advanced Configuration
Sandbox Mode
DeerFlow supports multiple sandbox execution modes:- Local Execution (Default)
- Docker Execution
- Kubernetes Provisioner
Runs sandbox code directly on the host machine. Simple but less isolated.
config.yaml
See the Sandbox Configuration Guide for detailed instructions.
MCP Servers
DeerFlow supports configurable MCP (Model Context Protocol) servers to extend capabilities. Supported transports:- stdio - Command-based servers (e.g., GitHub, filesystem)
- HTTP - REST API servers with OAuth support
- SSE - Server-Sent Events servers
See the MCP Server Guide for detailed setup instructions.
Common Issues
Port Already in Use
Port Already in Use
If you see errors about ports 2024, 2026, 3000, or 8001 being in use:
Missing Dependencies
Missing Dependencies
If
make check reports missing tools:Config File Not Found
Config File Not Found
Ensure Config search order:
config.yaml is in the project root:DEER_FLOW_CONFIG_PATHenvironment variable (if set)backend/config.yaml(current directory)config.yaml(parent directory - recommended)
Docker Image Pull Fails
Docker Image Pull Fails
If
make docker-init fails to pull the sandbox image:API Key Not Working
API Key Not Working
Verify your API keys are correctly set:
What’s Next?
Now that DeerFlow is running, explore these guides:Configuration Guide
Deep dive into models, tools, sandbox, and memory configuration
Skills Management
Learn how to use, create, and install custom skills
Architecture
Understand DeerFlow’s technical architecture
API Reference
Complete API documentation for integration
Need help? Report issues at github.com/bytedance/deer-flow/issues