ScriptsApr 6, 2026·2 min read

DeerFlow — SuperAgent for Research, Code & Creative

ByteDance's open-source long-horizon SuperAgent with sub-agents, sandboxes, memory, and skills. Handles complex tasks spanning minutes to hours. 58,300+ stars, MIT license.

TL;DR
DeerFlow is ByteDance's open-source SuperAgent with sub-agents, sandboxes, and memory for complex tasks spanning minutes to hours across research, code, and creative work.
§01

What it is

DeerFlow is an open-source SuperAgent framework from ByteDance designed for long-horizon tasks. It orchestrates sub-agents, sandboxed execution environments, persistent memory, and reusable skills to handle complex workflows that span minutes to hours. The framework covers research, code generation, and creative tasks with a web UI for monitoring agent progress.

DeerFlow targets developers and teams building autonomous agents that need to execute multi-step plans with coordination between specialized sub-agents. It provides the infrastructure for long-running agentic workflows with built-in error recovery and state persistence.

§02

How it saves time or tokens

DeerFlow handles the orchestration layer that you would otherwise build manually. Sub-agent delegation means each agent focuses on its specialization (research, coding, writing) rather than one monolithic agent trying to do everything. Sandboxed execution provides safe code running without risking your system. Persistent memory across sessions means agents do not restart from scratch.

§03

How to use

  1. Clone the repository and set up configuration: git clone https://github.com/bytedance/deer-flow.git && cd deer-flow && make config.
  2. Set API keys in .env for your LLM provider (OpenAI, Anthropic) and tools (Tavily for search).
  3. Launch with Docker: make docker-start and access the UI at http://localhost:2000.
§04

Example

# Clone and configure
git clone https://github.com/bytedance/deer-flow.git
cd deer-flow
make config

# Set API keys in .env
# OPENAI_API_KEY=sk-...
# TAVILY_API_KEY=tvly-...

# Launch via Docker
make docker-start

# Access the UI at http://localhost:2000
# Submit a task: 'Research the latest advances in protein folding
# and write a summary report with citations'
§05

Related on TokRepo

§06

Common pitfalls

  • DeerFlow requires multiple API keys (LLM, search, etc.) to function fully. Missing keys will silently disable capabilities rather than failing with clear errors.
  • Long-horizon tasks consume significant tokens. Monitor costs, especially when sub-agents iterate on research or code generation.
  • The Docker deployment is recommended over local setup due to sandboxing requirements. Local execution without containers may expose your system to code execution risks.

Frequently Asked Questions

What makes DeerFlow different from other agent frameworks?+

DeerFlow is designed for long-horizon tasks (minutes to hours) with built-in sub-agent delegation, sandboxed execution, and persistent memory. Most agent frameworks target single-turn interactions. DeerFlow handles multi-step plans with coordination and error recovery.

What LLM providers does DeerFlow support?+

DeerFlow works with OpenAI, Anthropic (Claude), and other API-compatible providers. You configure the provider and API key in the .env file. Different sub-agents can use different models.

Is DeerFlow safe to run locally?+

DeerFlow includes sandboxed execution environments for code running. The Docker deployment provides additional isolation. Running without containers is possible but carries code execution risks from agent-generated code.

Can DeerFlow remember context across sessions?+

Yes. DeerFlow includes persistent memory that survives across sessions. Agents retain knowledge from previous tasks, reducing redundant work and enabling continuous learning.

What license is DeerFlow under?+

DeerFlow is released under the MIT license, allowing free use in both personal and commercial projects.

Citations (3)
🙏

Source & Thanks

Created by ByteDance. Licensed under MIT.

deer-flow — ⭐ 58,300+

Discussion

Sign in to join the discussion.
No comments yet. Be the first to share your thoughts.

Related Assets