Skip to main content

Prerequisites

Before installing DeerFlow, ensure you have the required tools installed on your system.

Required Tools

DeerFlow requires Node.js version 22 or higher for the frontend development server.Installation:Verify installation:
pnpm is the package manager used for frontend dependencies.Installation:
Or visit pnpm.io/installationVerify installation:
uv is a fast Python package manager used for backend dependencies.Installation:
Or visit docs.astral.sh/uvVerify installation:
nginx is used as a reverse proxy to unify all services on port 2026.Installation:
Or visit nginx.org/en/download.htmlVerify installation:
Docker is required if you plan to use Docker-based sandbox execution or Docker development mode.Installation:Verify installation:

Quick Check

DeerFlow provides a convenient command to verify all prerequisites:
This will check for:
  • Node.js 22+
  • pnpm
  • uv
  • nginx
And report which tools are missing or need to be updated.

Installation Steps

1

Clone the Repository

Clone DeerFlow from GitHub:
2

Generate Configuration Files

Generate local configuration files from templates:
This creates:
  • config.yaml - Main configuration file
  • .env - Environment variables
  • frontend/.env - Frontend environment variables
The make config command will abort if configuration files already exist to prevent overwriting your settings.
3

Configure Your Model

Edit config.yaml and configure at least one LLM model:
config.yaml
See Configuration Guide for more model options.
4

Set API Keys

Set your API keys using one of these methods:
5

Install Dependencies

Install both frontend and backend dependencies:
This runs:
  • cd backend && uv sync - Install Python dependencies
  • cd frontend && pnpm install - Install Node.js dependencies
6

(Optional) Pre-pull Sandbox Image

If you plan to use Docker-based sandbox execution, pre-pull the container image:
This downloads the sandbox container image:
This step is optional but recommended. It ensures the sandbox image is available when you need it, avoiding delays during first use.

Verify Installation

Start the development server to verify everything is working:
You should see output indicating all services have started:
Open http://localhost:2026 in your browser to access DeerFlow.

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

Install the missing tools as indicated by the error message. Each tool has specific installation instructions shown in the output.
Ensure config.yaml exists in the project root directory:
If missing, run:
Verify your API keys are correctly set:
  • Check .env file has the correct keys
  • Ensure environment variables are exported
  • Verify the API key is valid with your provider
If port 2026, 8001, 3000, or 2024 is already in use:
  1. Stop any existing DeerFlow processes:
  2. Find and kill the process using the port: