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.
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.
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.
How to use
- Clone the repository and set up configuration:
git clone https://github.com/bytedance/deer-flow.git && cd deer-flow && make config. - Set API keys in
.envfor your LLM provider (OpenAI, Anthropic) and tools (Tavily for search). - Launch with Docker:
make docker-startand access the UI athttp://localhost:2000.
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'
Related on TokRepo
- Agent Tools — AI agent frameworks and orchestration tools
- Research AI Tools — AI-powered research and analysis tools
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
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.
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.
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.
Yes. DeerFlow includes persistent memory that survives across sessions. Agents retain knowledge from previous tasks, reducing redundant work and enabling continuous learning.
DeerFlow is released under the MIT license, allowing free use in both personal and commercial projects.
Citations (3)
- DeerFlow GitHub— DeerFlow is ByteDance's open-source SuperAgent with sub-agents, sandboxes, and m…
- DeerFlow Documentation— Multi-agent orchestration patterns for complex tasks
- Anthropic Research— AI agent architectures for long-horizon task execution
Related on TokRepo
Source & Thanks
Discussion
Related Assets
doctest — The Fastest Feature-Rich C++ Testing Framework
doctest is a single-header C++ testing framework designed for minimal compile-time overhead and maximum speed.
Chai — BDD/TDD Assertion Library for Node.js
Chai is a flexible assertion library for Node.js and browsers that supports expect, should, and assert styles.
Supertest — HTTP Assertion Library for Node.js APIs
Supertest provides a high-level API for testing HTTP servers in Node.js with fluent assertion chaining.