* feat(vefaas-sandbox): add snapshots, pause/resume, and image precache Implement Phase 2 of #8426 on top of #8449: - Extend VeFaaSClient (OpenAPI Version=2024-06-06) with PauseSandbox, ResumeSandbox, CreateSandboxSnapshot, DescribeSandboxSnapshot, ListSandboxSnapshots (paginated), DeleteSandboxSnapshot, PrecacheSandboxImages, GetSandboxImagePrecacheTicket, plus SnapshotId and AutoPauseConfig support on CreateSandbox. - Add opt-in lifecycle controls to VeFaaSSandboxProvider: pause_on_idle, auto_pause, snapshot_on_idle (with scoped metadata filtering and old snapshot pruning), base snapshot_id, precache_images, and off-loop precache_on_startup, plus public snapshot/precache helper methods. - Preserve ownership lease fencing, dirty-sandbox exclusion, cross-tenant snapshot isolation, retryable shutdown, and non-blocking event-loop guarantees with offline unit and Blockbuster tests. * fix(vefaas-sandbox): harden snapshot teardown lease, auto-pause reclaim, and manual snapshot shutdown fence Address all review findings on #8513: - Keep destructive teardown leases alive via a heartbeat and poll-tick refresh throughout idle pause/snapshot retirement, and re-verify claim(..., for_destroy=True) right before KillSandbox so a peer-adopted sandbox is never killed if the lease is lost mid-snapshot. - Detect paused/transitioning warm instances in _reclaim_warm_pool via DescribeSandbox and hand them off to discovery/resume instead of killing them on failed HTTP readiness. - Fence manual create_snapshot() source sandboxes via _snapshotting_remote_ids so concurrent shutdown() stays retryable and leaves the source alive until the snapshot settles. - Move shared veFaaS offline test helpers into tests/support/vefaas_sandbox.py and add deterministic regression tests for all three scenarios. * fix(vefaas-sandbox): keep paused warm sandboxes tracked during reacquire Resume paused or transitioning warm-pool entries in place inside _reclaim_warm_pool() instead of popping _warm_pool ahead of ListSandboxes discovery: - Keep the owned warm entry tracked in _warm_pool across transient 5xx control-plane errors (DescribeSandbox / ResumeSandbox), readiness timeouts, and ownership backend errors so shutdown() after recovery still sends KillSandbox and retry acquire() resumes without duplicates. - Only discard a warm entry without teardown once the known remote instance is authoritatively confirmed absent/terminal (DescribeSandbox returning None/terminal or ResumeSandbox raising SandboxNotFound) or confirmed under a peer teardown lease. - Move unadoptable resumed warm instances (e.g. invalid/mismatched init marker) atomically to _pending_destroys and tear them down via _destroy_tracked() rather than forgetting them. - Handle concurrent shutdown rollback cleanly when resuming/publishing a paused warm entry and avoid falling through to discovery/create after shutdown starts. * feat(vefaas-sandbox): support speculative sandbox prewarm Fold speculative sandbox prewarm support for VeFaaSSandboxProvider (formerly #8492) into #8513 so prewarm, snapshots, pause/resume, and image precache land together on top of #8449. * chore(vefaas-sandbox): address CodeQL quality findings - Scope `needs_kill` inside the claimed teardown branch in `_retire_warm_entry` so the peer-owned branch does not write an unread local variable. - Catch `Exception` rather than `BaseException` in the concurrent resume test helper thread. * fix(vefaas-sandbox): retain teardown fence until async snapshots settle When `create_snapshot(..., wait=False)` returns early or `wait=True` exits without an authoritative terminal/ready state (such as `TimeoutError` or a transient describe error), hand off the `_snapshotting_remote_ids` refcount to a background completion watcher thread instead of releasing the fence in `finally`. Keep warm-pool reaping/eviction, shutdown, and client teardown fenced (while continuing ownership lease renewal) until the control plane confirms Ready, terminal failure, or SnapshotNotFound. * fix(benchmark): pass OpenSandbox instance to _invalidate_sandbox Follow-up to #8507 (`6cefec0c9`), which changed `OpenSandboxProvider._invalidate_sandbox` to accept an `OpenSandboxSandbox` instance instead of `sandbox_id: str`. Look up the active or warm sandbox instance under `self._lock` inside `BenchmarkOpenSandboxProvider.destroy()` before calling `_invalidate_sandbox()`. * fix(vefaas-sandbox): keep ownership lease renewal active during manual snapshots Stop inserting `sandbox_id` into `_acquire_inflight` during `create_snapshot()`. Local reaping, eviction, teardown, and shutdown are already fenced by `_snapshotting_remote_ids`, whereas `_acquire_inflight` caused `_renew_leases_once()` to skip renewing the ownership lease during long synchronous `create_snapshot(..., wait=True)` waits. * fix(vefaas-sandbox): hand off and refresh ownership leases across resume waits - Use `take(sandbox_id)` when resuming a `Paused` sandbox so a turn landing on another worker can cleanly transfer a normal `own:` lease from a peer holding an auto-paused warm entry while still rejecting a destructive `del:` lease with `_PeerTeardownError`. - Keep the normal `own:` lease refreshed throughout `ResumeSandbox`, `_wait_for_remote_running()`, and `wait_for_sandbox_ready()` via `_ownership_lease_heartbeat()` plus poll-tick `_refresh_owned_lease()` callbacks, and authoritatively verify ownership (`_verify_owned_lease_strict`) before adopting with `ownership_claimed=True`. * fix(vefaas-sandbox): reserve cross-worker snapshot fence before manual snapshots - Reject `create_snapshot()` on stale/peer-owned handles via `claim(sandbox_id)` before calling `CreateSandboxSnapshot`. - Reserve a remote-scoped cross-worker snapshot fence (`snapshot-fence:<remote_id>` with `for_destroy=True`), perform a Dekker re-check on `claim(sandbox_id)` so teardown and snapshot admission cannot interleave, and keep the fence refreshed across synchronous waits (`_teardown_lease_heartbeat` + poll-tick refresh), async completion watchers, and `_renew_leases_once()` until the snapshot settles. - Guard `_retire_warm_entry()`, `_destroy_tracked()`, and `shutdown()` against active cross-worker snapshot fences (unwinding any destructive `del:` lease and deferring teardown until the remote snapshot settles). * fix(vefaas-sandbox): address P2 review findings on snapshot fencing, filtering, and restore - Keep deferred warm-pool `AioSandbox` handles open in `_destroy_tracked()` and `_retire_warm_entry()`, closing the local handle only once teardown proceeds or the entry leaves `_warm_pool` (WillemJiang P2). - Retain local and cross-worker snapshot fences after uncertain `CreateSandboxSnapshot` failures (timeouts, transport errors, 5xx) and reconcile via a background watcher polling `ListSandboxSnapshots(SandboxId=...)` and `DescribeSandbox` until no snapshot is in progress (WillemJiang P2). - Serialize cross-worker `snapshot-fence:<remote_id>` last-key release with new reservations via a per-remote `_snapshot_fence_lock()` (Codex P2). - Pass server-side `Filters` (`Metadata.*` and `Status`) in `_find_latest_ready_snapshot()`, `_prune_old_snapshots()`, and `list_snapshots()`, caching graceful fallback if a backend rejects filters while keeping strict client-side metadata verification (YukoOshima P2). - Refresh `/mnt/skills` and host `uploads/` (without overwriting snapshot workspace/outputs) when booting from a snapshot that preserved `/tmp/.deerflow-vefaas-initialized`, and document snapshot retention/cleanup in `README.md` (YukoOshima questions).
English | 中文 | 日本語 | Français | Русский | Português | 한국어
On February 28th, 2026, DeerFlow claimed the 🏆 #1 spot on GitHub Trending following the launch of version 2. Thanks a million to our incredible community — you made this happen! 💪🔥
DeerFlow (Deep Exploration and Efficient Research Flow) is an open-source super agent harness that orchestrates sub-agents, memory, and sandboxes to do almost anything — powered by extensible skills.
https://github.com/user-attachments/assets/a8bcadc4-e040-4cf2-8fda-dd768b999c18
Note
DeerFlow 2.0 is a ground-up rewrite. It shares no code with v1. If you're looking for the original Deep Research framework, it's maintained on the
1.xbranch — contributions there are still welcome. Active development has moved to 2.0.
Official Website
Learn more and see real demos on our official website. The landing-page case studies open as allowlisted, read-only showcases without requiring a sign-in.
Sister Projects
- LLM Space - Meet our secret weapon behind DeerFlow — one desktop tool to prototype agent ideas, inspect each harness step, replay failures, and benchmark performance.
Coding Plan from ByteDance Volcengine
- We strongly recommend using Doubao-Seed-2.0-Code, DeepSeek v3.2 and Kimi 2.5 to run DeerFlow
- Learn more
- 中国大陆地区的开发者请点击这里
InfoQuest
DeerFlow has newly integrated the intelligent search and crawling toolset independently developed by BytePlus — InfoQuest (supports free online experience)
One-Line Agent Setup
If you use Claude Code, Codex, Cursor, Windsurf, or another coding agent, you can hand it the setup instructions in one sentence:
Help me clone DeerFlow if needed, then bootstrap it for local development by following https://raw.githubusercontent.com/bytedance/deer-flow/main/Install.md
That prompt is intended for coding agents. It tells the agent to clone the repo if needed, choose Docker when available, and stop with the exact next command plus any missing config the user still needs to provide.
Quick Start
git clone https://github.com/bytedance/deer-flow.git
cd deer-flow
make setup # interactive wizard: writes config.yaml and .env (about 2 minutes)
Then start DeerFlow with Docker (recommended) or run it locally:
# Docker
make docker-init # pull the sandbox image (once, or when the image updates)
make docker-start # start services
# Local development
make check # verifies Node.js 22+, pnpm, uv, nginx
make install
make dev
The local commands use the pnpm version pinned in frontend/package.json. If a
different global pnpm is on PATH, they use Corepack when available; otherwise
they report the version mismatch before installing frontend dependencies.
Run make doctor after setting model credentials. It reports obvious placeholder
API keys as incomplete configuration; replace them with real keys before testing
model calls.
Open http://localhost:2026.
- All configuration options, providers and manual setup: Configuration
- Docker details, sizing, upgrades, startup modes and production deployment: Running the Application
- Upgrading a custom Redis checkpoint cache prefix: Redis checkpoint history cache upgrade
- Running on a server or exposing it beyond localhost: read the Security Notice first
From Deep Research to Super Agent Harness
DeerFlow started as a Deep Research framework — and the community ran with it. Since launch, developers have pushed it far beyond research: building data pipelines, generating slide decks, spinning up dashboards, automating content workflows. Things we never anticipated.
That told us something important: DeerFlow wasn't just a research tool. It was a harness — a runtime that gives agents the infrastructure to actually get work done.
So we rebuilt it from scratch.
DeerFlow 2.0 is no longer a framework you wire together. It's a super agent harness — batteries included, fully extensible. Built on LangGraph and LangChain, it ships with everything an agent needs out of the box: a filesystem, memory, skills, sandbox-aware execution, and the ability to plan and spawn sub-agents for complex, multi-step tasks.
Use it as-is. Or tear it apart and make it yours.
Guides
Each guide is the full reference for its topic. Open the one you need.
| Topic | Guide |
|---|---|
Models, providers, config.yaml, environment variables |
Configuration |
| DeepSeek web search, thinking mode and citation excerpts | DeepSeek Web Search |
| Docker, local development, upgrades, production deployment | Running the Application |
| Workspace file tools, isolated shell providers, uploads and outputs | Sandbox |
| boxd machines, bounded output copies and cleanup retries | boxd sandbox provider |
| BytePlus veFaaS cloud sandboxes, SigV4 control plane and optional TOS mounts | veFaaS sandbox provider |
| Skills, built-in tools, script workflows, Claude Code integration | Skills & Tools |
| MCP servers and model-specific image handling | MCP Server, Image results |
| Sub-agents, task delegation and optional SQLite checkpoint history | Sub-Agents, Inspect one thread's child history, Tool restrictions |
| Agent teams, SQLite/PostgreSQL persistence and shutdown behavior | Agent teams extension |
| Long-term memory | Long-Term Memory |
| Session goals, context compaction, todo counters, task notes, evidence-based decisions | Context, Goals and Agent Decisions |
| Private knowledge retrieval (RAGFlow) | Private Knowledge Retrieval |
| Agentic browser control | Agentic Browser Control |
| Projects, instructions, document shelf | Projects |
| Scheduled tasks | Scheduled Tasks |
| Feishu, Slack, Telegram, Discord, DingTalk and other IM channels | IM Channels |
| GitHub webhooks and tool setup | GitHub Event-Driven Agents |
| File attachments, downloads and Office previews | File Previews |
| Token usage dashboard, workspace, chat archive | Workspace UI |
| Terminal workbench | Terminal Workbench (TUI) |
| Personal access tokens, stream actions, embedded Python client | API Access and Python Client |
| Trace correlation, LangSmith, Langfuse, Monocle | Tracing and Observability |
| Deployment risks, admin model, security recommendations | Security Notice |
Recommended Models
DeerFlow is model-agnostic — it works with any LLM that implements the OpenAI-compatible API. That said, it performs best with models that support:
- Long context windows (100k+ tokens) for deep research and multi-step tasks
- Reasoning capabilities for adaptive planning and complex decomposition
- Multimodal inputs for image understanding and video comprehension
- Strong tool-use for reliable function calling and structured outputs
More Documentation
- Install.md - Setup instructions written for coding agents
- Configuration Reference - Every
config.yamloption - Backend Architecture - Backend architecture and API reference
- Conversation Sharing - Expiring read-only snapshots, artifact previews and workspace copies
- Architecture Overview - How the services fit together
- Contributing Guide - Development environment, workflow and tests
- Changelog - Release notes
⚠️ Security Notice
DeerFlow can execute commands and read and write files. It is designed to run in a local trusted environment, and a Gateway admin account is equivalent to code execution on the host. Before you deploy it on a server or expose it to a network, read the full Security Notice and SECURITY.md.
Runtime tool approval is disabled by default. The Gateway warns at startup when it is disabled. See Skills & Tools for configuration.
Contributing
We welcome contributions! Please see CONTRIBUTING.md for development setup, workflow, and guidelines.
License
This project is open source and available under the MIT License.
Acknowledgments
DeerFlow is built upon the incredible work of the open-source community. We are deeply grateful to all the projects and contributors whose efforts have made DeerFlow possible. Truly, we stand on the shoulders of giants.
We would like to extend our sincere appreciation to the following projects for their invaluable contributions:
- LangChain: Their exceptional framework powers our LLM interactions and chains, enabling seamless integration and functionality.
- LangGraph: Their innovative approach to multi-agent orchestration has been instrumental in enabling DeerFlow's sophisticated workflows.
These projects exemplify the transformative power of open-source collaboration, and we are proud to build upon their foundations.
Key Contributors
A heartfelt thank you goes out to the core authors of DeerFlow, whose vision, passion, and dedication have brought this project to life:
Your unwavering commitment and expertise have been the driving force behind DeerFlow's success. We are honored to have you at the helm of this journey.