deer-flow
by bytedance
ByteDance framework for AI agents that research, write code and create content on long, multi-step tasks.
- Stars
- 85,776 stars
- Forks
- 12k forks
- Last push
- today
- Activity
- Active
# Clone and configure$ git clone https://github.com/bytedance/deer-flow.git
cd deer-flow
make setup# Start with Docker$ make docker-init
make docker-startCommands from the project's README. Run them after installing (see below).
Overview
Understand deer-flow in 60 seconds
- What it does
- DeerFlow is an open-source super agent harness from ByteDance. It coordinates sub-agents, memory and sandboxes so an AI agent can research, code, build slides or run data pipelines on its own, through a web UI at localhost.
- The problem it solves
- Building an agent that does long, multi-step work means wiring up planning, tools, file sandboxes, memory and a UI yourself. DeerFlow ships all of that ready to run, built on LangGraph and LangChain, and works with any OpenAI-compatible model.
- Why choose it
- Choose it for a batteries-included agent runtime you can run locally and extend. It can execute commands, so run it only in a trusted environment.
- Who should use it
- Developers wanting a ready-made deep research agent
- Teams building autonomous agents on LangGraph
- Self-hosters who want an agent with sandboxes and memory
- Builders connecting agents to Slack, Telegram or GitHub
- Setup difficulty
You'll need:
- Docker (recommended), or Node.js 22+, pnpm, uv and nginx
- make
- An API key for an OpenAI-compatible model
How deer-flow works
DeerFlow started as a deep research framework. Version 2.0 is a ground-up rewrite into a general agent harness that shares no code with v1, which is kept on the 1.x branch. It orchestrates sub-agents, memory and sandboxes on top of LangGraph and LangChain.
It includes workspace file tools and isolated shells, skills and built-in tools, MCP servers, long-term memory, agentic browser control, scheduled tasks, private knowledge retrieval with RAGFlow, IM channels such as Slack, Telegram and Discord, GitHub event-driven agents, a terminal workbench and tracing through LangSmith or Langfuse.
Setup uses make: a wizard writes config.yaml and .env, then you start it with Docker or locally, and open localhost:2026. The README recommends models with long context, reasoning, multimodal input and strong tool use. It warns that DeerFlow can run commands and read and write files, so it is meant for a local trusted environment.
Features
Key features
Sub-agents
Delegate work to child agents and track their history.
Sandboxes
Isolated shells and workspace file tools for agent work.
Long-term memory
Agents remember across sessions.
Skills and MCP
Built-in tools, skills and MCP server support.
IM channels
Slack, Telegram, Discord, Feishu and more.
Scheduled tasks
Run agent work on a schedule.
Strengths
- Batteries included: UI, sandbox, memory and tools
- Model-agnostic via OpenAI-compatible APIs
- MIT licensed
- Detailed guides for every feature
Limitations
- Can execute commands and write files, so it needs a trusted environment
- Runtime tool approval is disabled by default
- Several prerequisites for local runs
- v2 is a rewrite, so v1 tutorials don't apply
Practical use cases
Deep research reports
Ask it to research a topic and produce a cited report.
Slide and document generation
Have the agent build decks or documents in its sandbox.
Team agent bot
Connect it to Slack or Telegram.
GitHub automation
Trigger agents from GitHub webhooks.
Installation
Install deer-flow
Commands come from DeerFlow's README. AIRepoHub hasn't run them yet. View source
Prerequisites
- Git
- make
- Docker, or Node.js 22+, pnpm, uv and nginx
Supported systems
- Linux
- macOS
- 1
Clone the repository
Shellgit clone https://github.com/bytedance/deer-flow.gitcd deer-flow - 2
Run the setup wizard
Writes config.yaml and .env in about 2 minutes.
Shellmake setup - 3
Pull the sandbox image and start
Shellmake docker-initmake docker-start - 4
Open http://localhost:2026
- 1
Clone and configure
Shellgit clone https://github.com/bytedance/deer-flow.gitcd deer-flowmake setup - 2
Check prerequisites
Verifies Node.js 22+, pnpm, uv and nginx.
Shellmake check - 3
Install and run
Shellmake installmake dev
Configuration and API keys
| Setting | What it's for |
|---|
First run
- 1
Check your configuration
Reports placeholder API keys as incomplete.
Shellmake doctor - 2
Open http://localhost:2026
deer-flow's documentation doesn't include sample output, so we don't show any. Expect the results in your terminal.
Your first project
Run DeerFlow locally with Docker
Get the agent harness running and give it a first task.
Before you start
- Docker
- An API key for an OpenAI-compatible model
- 1
Clone
Shellgit clone https://github.com/bytedance/deer-flow.gitcd deer-flow - 2
Configure models and keys
Shellmake setup - 3
Start
Shellmake docker-initmake docker-start - 4
Check the setup
Shellmake doctor - 5
Open http://localhost:2026 and ask for a short research report
What to expect
The DeerFlow UI opens at localhost:2026 and the agent works on your request using its tools and sandbox.
Next steps
- Read the Security Notice before exposing it beyond localhost
- Add MCP servers or skills
- Connect an IM channel
Costs and requirements
What it costs to run
- License
- MIT. Free to use, modify and use commercially.Free
- Software
- Free and open source.Free
- Models
- Billed by the model provider you configure.Paid
Troubleshooting
Common setup issues
Model calls fail after setup
Run make doctor; it flags placeholder API keys. Replace them with real keys.
pnpm version mismatch
The local commands use the pnpm version pinned in frontend/package.json, through Corepack when available.
Want to run it on a server
Read the Security Notice first; an admin account is equivalent to code execution on the host.
Looking for the old Deep Research version
v1 is maintained on the 1.x branch.
Alternatives
Similar AI repositories
hermes-agent
NousResearch
Personal AI agent from Nous Research that learns and improves the more you use it.
AutoGPT
Significant-Gravitas
Platform for building, deploying and running autonomous AI agents.
langflow
langflow-ai
Visual builder for creating and deploying AI agents and workflows by connecting blocks instead of writing code.
langchain
langchain-ai
Framework for building LLM-powered applications and agents.