Tongyi DeepResearch
An open model and inference system for long-horizon web research, evidence gathering, and research question answering.
- Source repo
- Alibaba-NLP/DeepResearch
- Stars
- ★ 20k
- Last updated
- 9mo ago
- FARS reviewed
- Nov 07, 2026
- License
- Apache-2.0
- Primary language
- Python
- FA score
- 44/100 · Major gaps
At a glance
- How it runs
- Works with
- Portable with changesOpenAI API (Partial support)
- Cost
- Free software; you pay for model usage
- Setup effort
- High · needs real infrastructure
- You'll need
- Typical use
- A search-agent research team wants to run and evaluate a long-horizon model on Humanity's Last Exam, BrowseComp, BrowseComp-ZH, WebWalkerQA, xbench-DeepSearch, FRAMES, or SimpleQA.
- Not a fit if
- Teams wanting a turnkey agent without hosting model weights or GPUs
- Users unwilling to configure several external paid services like Serper, Jina, and DashScope
- Product teams needing a ready-made production Web API or authorization layer
- Website
- tongyi-agent.github.io ↗ set on GitHub
- Maintenance
- No commits for 6+ monthslast commit 2026-02-27+3.1 ★/day over 7 days
- Source review
- 44/100 · Major gaps
What does this agent do, and when should you use it?
Tongyi DeepResearch is a long-horizon information-seeking model and agent inference project from Tongyi Lab, with 30.5 billion total parameters, 3.3 billion activated per token, and a 128K context length. The repository provides inference scripts, a ReAct execution path, an IterResearch-based Heavy mode, and evaluation scripts for multiple research benchmarks. Its runtime can combine Serper.dev search and Google Scholar, Jina page reading, an OpenAI-compatible page-summarization endpoint, DashScope file parsing, and a SandboxFusion Python environment. It accepts JSON or JSONL records containing question and answer fields, generates predictions, and uses the reference answer for automated benchmark judging. It is best suited to research or engineering teams prepared to host a model, configure several external services, and operate their own evaluation workflow rather than adopters seeking a turnkey chat-platform integration.
The user points DATASET to a JSON or JSONL question set and configures MODEL_PATH, OUTPUT_PATH, and the required service credentials. Running bash run_react_infer.sh invokes the ReAct workflow in inference/react_agent.py, which can use retrieval, web search, a calculator, page reading, file parsing, or a Python sandbox according to the enabled tools, then saves predictions under OUTPUT_PATH. Document questions require source files in eval_data/file_corpus/ and an uploaded-file prefix in the question text. Scripts under evaluation/ assess generated responses on supported benchmarks, using each record's answer as the ground-truth or reference response. As an alternative to local weights, users can edit call_server, the model identifier, and content concatenation in inference/react_agent.py to call alibaba/tongyi-deepresearch-30b-a3b through OpenRouter.
- A search-agent research team wants to run and evaluate a long-horizon model on Humanity's Last Exam, BrowseComp, BrowseComp-ZH, WebWalkerQA, xbench-DeepSearch, FRAMES, or SimpleQA.
- An enterprise research group has a JSONL collection of questions and reference answers and needs batch web-research predictions for automated judging.
- An analysis team needs to ask questions about local PDF or XLSX material and can place files in eval_data/file_corpus/ while configuring DashScope parsing.
- A model engineering group wants to compare ReAct with the IterResearch-based Heavy inference paradigm and study test-time scaling.
- A developer without local GPUs is willing to modify inference/react_agent.py and invoke the hosted Tongyi-DeepResearch model through OpenRouter.
Key setup facts
Pulled from the install and usage notes below. The project README has the current values.
- Install / run
pip install -r requirements.txt
- Environment variables
SERPER_KEY_IDJINA_API_KEYSAPI_KEYAPI_BASEDASHSCOPE_API_KEYSANDBOX_FUSION_ENDPOINT- Config files
.env.example.env- Runtime
- Python 3.10.0
How do you install or deploy this agent?
Use the recommended Python 3.10.0 environment:
conda create -n react_infer_env python=3.10.0
conda activate react_infer_env
pip install -r requirements.txt
cp .env.example .envEdit .env and configure the services used by your run: SERPER_KEY_ID, JINA_API_KEYS, API_KEY/API_BASE, DASHSCOPE_API_KEY, and SANDBOX_FUSION_ENDPOINT, plus MODEL_PATH, DATASET, and OUTPUT_PATH. Serper.dev supplies web and Google Scholar search, Jina reads pages, the OpenAI-compatible endpoint summarizes pages, DashScope parses files, and SandboxFusion supplies Python execution. The source states that .env is gitignored.
How do you use this agent?
Create a JSONL file with one object per line, such as {"question":"What is the capital of France?","answer":"Paris"}; a JSON array of equivalent objects is also supported. Edit run_react_infer.sh so MODEL_PATH points to the model weights, DATASET contains the full input path, and OUTPUT_PATH names the results directory, then add the keys or BASE_URL values required by enabled tools. Start inference with:
bash run_react_infer.shFor document processing, place files in eval_data/file_corpus/ and prefix the question with text such as “(Uploaded 1 file: ['report.pdf'])\n\nWhat are the key findings?”. To use OpenRouter, edit call_server in inference/react_agent.py with the OpenRouter key and URL, change the model to alibaba/tongyi-deepresearch-30b-a3b, and adjust content concatenation as described by the comments associated with lines 88–90.
Safety boundaries, hardening & integrations
Operational blast radius, source-verified safety controls, and first-run hardening steps before connecting this agent to real workspaces.
Declared capability surface (blast radius)
Can run terminal commands; pair with approval gates or container/OS sandboxing.
Modifies local files; work on a clean Git branch or dedicated worktree.
Makes outbound requests; verify telemetry settings and model data routing on private repos.
What are this agent's strengths and limitations?
- The 30B-A3B mixture-of-experts configuration activates 3.3 billion parameters per token and exposes a documented 128K context window for long-horizon information seeking.
- It supports both ReAct for testing intrinsic model behavior and an IterResearch-based Heavy mode aimed at a higher test-time performance ceiling.
- The repository includes runnable inference, structured JSON/JSONL ingestion, and benchmark evaluation rather than publishing model weights alone.
- Its documented tool chain covers web search, Google Scholar, page reading, file parsing, and sandboxed Python execution for multi-step research.
- Users can choose a local model path or follow the documented OpenRouter route when local GPUs are unavailable.
- The full workflow depends on separately managed credentials and potentially separate costs for Serper.dev, Jina, an OpenAI-compatible endpoint, DashScope, and SandboxFusion.
- Python 3.10.0 is specifically recommended, and the source warns that other versions may cause dependency problems.
- OpenRouter is not a ready-made adapter: users must edit inference/react_agent.py, including server settings, the model name, and content assembly.
- The hosted demos may be slow or fail intermittently because of model latency and tool QPS limits; stable operation requires local deployment or the Bailian service.
- The documented output is a results directory, with no evidenced turnkey production Web API, authorization layer, or operational deployment specification.
How does this agent compare with similar options?
ReAct is presented as the path for rigorous evaluation of the model's core intrinsic abilities, while the IterResearch-based Heavy mode uses test-time scaling to pursue the model's maximum performance ceiling. For delivery, local deployment favors stability and direct control; the ModelScope and Hugging Face demos favor quick trials but carry latency and QPS caveats; Bailian is identified as the production-oriented service; and OpenRouter removes the local-GPU requirement at the cost of manual changes to inference/react_agent.py.
Key facts side by side with the most closely related agents.
| Agent | Source review | Form / cost | Stars | Updated | Language | Full support on |
|---|---|---|---|---|---|---|
| Tongyi DeepResearch This agent | 44 · Major gaps | CLIFree + model costs | ★ 20k | 9mo ago | Python | — |
| MiroThinker | 45 · Major gaps | CLIFree + model costs | ★ 8.5k | 8mo ago | Python | OpenAI API · Claude API |
| AgentFlow | 43 · Major gaps | CLIFree + model costs | ★ 2.1k | 10mo ago | Python | OpenAI API |
| MiroFlow Research Agent | 42 · Major gaps | CLIFree + model costs | ★ 3.2k | 10mo ago | Python | — |
How does FollowAgents rate this agent?
Why each dimension lost points
The README says users must configure search, page-reading, model, file-parsing, and sandbox credentials, and notes that .env is gitignored. The sampled code also sends queries and web observations to configured model endpoints and creates or appends files in the working directory; it does not show permission constraints, pre-action confirmation, deletion recovery, or detailed credential safeguards. These criteria therefore receive 1 each. The evidence does not establish malicious behavior or a red-line risk.
The code includes retries, exponential backoff, exception printing, error records, and skipping invalid output lines, supporting a 2 for failure messages. However, critic_information makes a model call before its retry loop, and the sampled flow and recovery behavior remain incomplete, so self_consistency and dependency_availability receive 1. Dependencies are pinned, but the static evidence does not establish their availability, compatibility, or security.
The README targets local inference and benchmark users and documents JSON/JSONL inputs, model and output paths, and multiple inference modes, supporting a 2 for audience_and_scenarios. The sampled WebWalker has a configurable call limit, but its scope and default use remain narrow; trigger conditions, tool boundaries, and environment compatibility are not well documented, so those criteria receive 1.
The README provides a clear quick start, configuration steps, data formats, evaluation-directory guidance, and an FAQ link, supporting 2 for information architecture, install notes, and examples. The complete Apache-2.0 license text supports 3 for license. News has a few dated entries, but version migration and maintenance responsibility are not adequately documented. Naming and the relationship among WebAgent, WebWalker, and WebResummer in the sample are also unclear, so those criteria receive 1. The README explicitly warns that demos may fail intermittently due to model latency and tool QPS limits, supporting 2 for known limitations.
The repository describes long-horizon information seeking, ReAct and IterResearch modes, evaluation input formats, and result-file output, supporting 2 for output usability and marginal value. Setup requires large model weights, GPU inference dependencies, and several external APIs or services. The README offers an OpenRouter path without GPUs, but does not sufficiently quantify the trade-offs in cost, latency, and service dependence, so cost_benefit receives 1.
The README links performance and benchmark claims to charts, a technical report, and a blog, providing traceable entry points. The supplied sample does not include enough evaluation procedure or independent corroboration to verify those claims, so claim_traceability and cross_source_corroboration receive 1. The README separates feature descriptions, benchmark claims, and setup steps, but the claims remain project statements and do not clearly distinguish fact from inference; fact_inference_separation receives 1.
- Before deployment, verify what data is sent to or processed by model endpoints, search and page-reading services, file parsing, and sandbox calls; the supplied sample does not fully explain data retention or credential protections.
- Installation calls for Python 3.10 and includes heavyweight CUDA, PyTorch, and vLLM components. The README's OpenRouter route avoids GPUs but still depends on an external API.
- The README warns that online demos may fail intermittently due to model latency or tool QPS limits. The sampled code has partial logging and retry handling for model calls and task failures, but this does not establish correct or stable runtime results.
FAQ
Is a local GPU required?
Which credentials are needed for a complete research run?
Are the online demos suitable for production?
Can it analyze local documents?
May the answer field be empty?
Thanks — we use this to improve the page.
Subscribe to the FollowAgents RSS feed, or save this agent to your browser shortlist to compare on your next visit.