Prerequisites
Before installing DeerFlow, ensure you have the required tools installed on your system.Required Tools
Node.js 22+
Node.js 22+
DeerFlow requires Node.js version 22 or higher for the frontend development server.Installation:
- Download from nodejs.org
- Or use a version manager like nvm
pnpm
pnpm
pnpm is the package manager used for frontend dependencies.Installation:Or visit pnpm.io/installationVerify installation:
uv (Python Package Manager)
uv (Python Package Manager)
uv is a fast Python package manager used for backend dependencies.Installation:Or visit docs.astral.sh/uvVerify installation:
nginx
nginx
nginx is used as a reverse proxy to unify all services on port 2026.Installation:Or visit nginx.org/en/download.htmlVerify installation:
Docker (Optional)
Docker (Optional)
Docker is required if you plan to use Docker-based sandbox execution or Docker development mode.Installation:
- Download Docker Desktop
- On macOS, you can also use OrbStack as a lightweight alternative
Quick Check
DeerFlow provides a convenient command to verify all prerequisites:- Node.js 22+
- pnpm
- uv
- nginx
Installation Steps
Generate Configuration Files
Generate local configuration files from templates:This creates:
config.yaml- Main configuration file.env- Environment variablesfrontend/.env- Frontend environment variables
Configure Your Model
Edit See Configuration Guide for more model options.
config.yaml and configure at least one LLM model:config.yaml
Set API Keys
Set your API keys using one of these methods:
- .env File (Recommended)
- Environment Variables
- config.yaml (Not Recommended)
Edit the
.env file in the project root:.env
Install Dependencies
Install both frontend and backend dependencies:This runs:
cd backend && uv sync- Install Python dependenciescd frontend && pnpm install- Install Node.js dependencies
Verify Installation
Start the development server to verify everything is working:Next Steps
Docker Setup
Set up Docker development environment for isolated services
Local Development
Learn about running services locally and development workflow
Configuration
Explore configuration options for models, tools, and sandbox
Creating Skills
Extend DeerFlow with custom skills
Troubleshooting
make check fails with missing tools
make check fails with missing tools
Install the missing tools as indicated by the error message. Each tool has specific installation instructions shown in the output.
Config file not found error
Config file not found error
Ensure If missing, run:
config.yaml exists in the project root directory:Invalid API key error
Invalid API key error
Verify your API keys are correctly set:
- Check
.envfile has the correct keys - Ensure environment variables are exported
- Verify the API key is valid with your provider
Port already in use
Port already in use
If port 2026, 8001, 3000, or 2024 is already in use:
-
Stop any existing DeerFlow processes:
-
Find and kill the process using the port: