Skip to main content

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:
This command creates local configuration files based on example templates:
  • config.yaml - Main application configuration
  • .env - Environment variables
  • frontend/.env - Frontend environment variables
The make config command will abort if configuration files already exist to prevent overwriting your settings.

Configure Your Model

Edit config.yaml and define at least one model. Here’s an example with OpenAI’s GPT-4:
Environment Variables: Config values starting with $ are resolved from environment variables (e.g., $OPENAI_API_KEY).

Set API Keys

Choose one of the following methods to configure your API keys:

Step 3: Running the Application

Step 4: Verify Installation

Once DeerFlow is running, verify the installation:
1

Check the Interface

Navigate to http://localhost:2026 and ensure the chat interface loads.
2

Send a Test Message

Type a simple message like “Hello, can you help me?” and verify the agent responds.
3

Check Model Configuration

Look for the model selector in the interface to confirm your configured models are available.

Advanced Configuration

Sandbox Mode

DeerFlow supports multiple sandbox execution modes:
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

If you see errors about ports 2024, 2026, 3000, or 8001 being in use:
If make check reports missing tools:
Ensure config.yaml is in the project root:
Config search order:
  1. DEER_FLOW_CONFIG_PATH environment variable (if set)
  2. backend/config.yaml (current directory)
  3. config.yaml (parent directory - recommended)
If make docker-init fails to pull the sandbox image:
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