bytedance/deer-flow
Self-hosted LangGraph agent runtime for long-running research, coding, and content creation
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
DeerFlow 2.x is a self-hosted application and agent runtime, with a Python backend, a frontend, and orchestration built on LangGraph and LangChain. A lead agent plans multi-step tasks and delegates work to sub-agents, which can operate with restricted tool sets. Persistent memory preserves information across runs, while session goals, task notes, and context compaction help the agent manage a task in progress.
The workspace gives an agent a filesystem for inputs and outputs; shell execution uses a configurable sandbox provider. Skills capture repeatable task procedures, MCP connects external tools, and out-of-tree extensions let teams add functionality without maintaining a fork. The message Gateway supports channel integrations. The 2.x line is a ground-up rewrite: main-1.x retains the original Deep Research implementation, so existing integrations should be evaluated for migration rather than treated as drop-in upgrades.
Key Capabilities & Differentiators
The same runtime can handle research, coding, and artifact creation, such as slide decks and dashboards. It accepts OpenAI-compatible model endpoints; models with 100k+ context, reliable tool calling, and strong reasoning are recommended for demanding jobs, not required by the API. Multimodal capability depends on the model, including whether and how it can consume image results returned by MCP tools.
Concrete integration points include DeepSeek web search, DuckDuckGo source filters, InfoQuest search and crawling, and private knowledge retrieval through RAGFlow. Sandbox providers differ in operational behavior: boxd supports bounded output copies and cleanup retries, while BytePlus veFaaS uses a SigV4 control plane and supports optional TOS mounts. Optional SQLite checkpoint history lets operators inspect child runs for a particular thread; it should not be confused with the agent's long-term memory.
Trade-offs & Limitations
Compared with a managed agent product such as Manus, DeerFlow is the better fit when you need to choose the inference endpoint, control execution and storage, or extend the runtime around internal tooling. You take on deployment, upgrades, credential management, and sandbox capacity in exchange. A simpler research-only workflow may be easier to operate. For delegated jobs, test cost and completion time on your own workloads: additional model calls, tool round trips, and sandbox work can all add up.
Treat the Gateway as a privileged service, not as a public-facing chat UI: a Gateway admin account is equivalent to host code execution, and runtime tool approval is disabled by default. A sandbox for task execution does not remove that administrative trust boundary. MIT licensing permits commercial use and modification of DeerFlow, but does not cover the terms or data handling of external model, search, and sandbox providers.
Hardware & Deployment Guide
The recommended self-hosted path is make setup to generate config.yaml and .env, followed by make docker-init to pull the sandbox image and make docker-start to launch services. Run make doctor after configuring model credentials and open http://localhost:2026. For local development, run make check, make install, and make dev; prerequisites include Node.js 22+, pnpm, uv, and nginx. The frontend pins its pnpm version in frontend/package.json.
With an external model API, size the application host for concurrent agent runs, sandbox workloads, and workspace storage. If inference is also self-hosted, plan model capacity separately. v2.1.0 added durable batch delegation, pluggable memory backends, and authentication and authorization improvements. v2.2.0 expanded scheduling into goal-driven workflows with fair execution across owners and broadened multi-Gateway operation across areas including messaging and workflows. Validate these paths under your own concurrency and access-control requirements before exposing the service beyond localhost.
Teams that need a self-hosted agent application for long-running tasks, want control over models, tools, and execution, and can operate the Gateway and sandboxes as privileged infrastructure.
You want a managed experience, only need a small fixed research workflow, or cannot enforce the service's administrative and data boundaries.
Quick Start & Installation
git clone https://github.com/bytedance/deer-flow.git cd deer-flow make setup # interactive wizard: writes config.yaml and .env (about 2 minutes)
Comparison vs. Top Agents & Frameworks Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| deer-flow ★ | 86.1k | +257 | Python | MIT | Self-hosted LangGraph agent runtime for long-running research, coding, and conte |
| dify | 162.4k | +370 | Python | — | Visual workflow and RAG workspace for building and serving LLM apps |
| CowAgent | 48.2k | +116 | Python | MIT | Self-hosted agent harness for running and remembering work across chat channels |
| BettaFish | 42.8k | +59 | Python | GPL-2.0 | Self-hosted multi-agent research for public-opinion analysis and reporting |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/bytedance/deer-flow.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about deer-flow
How do I connect internal tools and inspect delegated work?
Do I need a GPU, and where should I budget for runtime overhead?
Can we self-host DeerFlow commercially and keep data on our network?
When should I choose DeerFlow over Manus?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy