OpenManus-RL is an open-source initiative collaboratively led by Ulab-UIUC and MetaGPT .
This project is an extended version of the original @OpenManus initiative. Inspired by successful RL tunning for reasoning LLM such as Deepseek-R1, QwQ-32B, we will explore new paradigms for RL-based LLM agent tuning, particularly building upon foundations.
We are committed to regularly updating our exploration directions and results in a dynamic, live-streaming fashion. All progress, including rigorous testing on agent benchmarks such as GAIA, AgentBench, WebShop, and OSWorld, and tuned models, will be openly shared and continuously updated.
We warmly welcome contributions from the broader community—join us in pushing the boundaries of agent reasoning and tool integration!
Code and dataset are now available! The verl submodule has been integrated for enhanced RL training capabilities.
<img src="https://github.com/OpenManus/OpenManus-RL/raw/main/assets/manus.jpg" style="width: 100%;" alt="marble">
@Kunlun Zhu(Ulab-UIUC), @Muxin Tian, @Zijia Liu(Ulab-UIUC), @Yingxuan Yang,@Jiayi Zhang(MetaGPT), @Xinbing Liang, @Weijia Zhang, @Haofei Yu(Ulab-UIUC), @Cheng Qian,@Bowen Jin,
We wholeheartedly welcome suggestions, feedback, and contributions from the community! Feel free to:
We welcome contributions, including fine-tuning codebase, tuning dataset, environment setup, and computing resources. Create issues for feature requests, bug reports, or ideas. Submit pull requests to help improve OpenManus-RL. Or simply reach out to us for direct collaboration. Important contributors will be listed as co-authors to our paper.
Agent Environment Support Setting up LLM agent environment for online RL tunning.
Agent Trajectories Data Collection Connect to specialized reasoning models such as deepseek-r1, QwQ-32B for more complex inference tasks to collect comprehensive agent trajectories.
RL-Tuning Model Paradigm Provide an RL fine-tuning approach for customizing the agent's behavior in our agent environment.
Test on Agent Benchmarks Evaluate our framework on agentic benchmark such as Webshop, GAIA, OSWorld, AgentBench

Our method proposes an advanced reinforcement learning (RL)-based agent tuning framework designed to significantly enhance reasoning and decision-making capabilities of large language models (LLMs). Drawing inspiration from RAGEN's Reasoning-Interaction Chain Optimization (RICO), our approach further explores novel algorithmic structures, diverse reasoning paradigms, sophisticated reward strategies, and extensive benchmark environments.
To benchmark the reasoning capabilities effectively, we evaluate multiple state-of-the-art reasoning models: - GPT-O1 - Deepseek-R1 - QwQ-32B
Each model provides unique reasoning capabilities that inform downstream optimization and training strategies.
We experiment with a variety of rollout strategies to enhance agent planning efficiency and reasoning robustness, including:
These methods help identify optimal rollout techniques for various reasoning tasks.
We specifically analyze and compare several reasoning output formats, notably:
These formats are rigorously compared to derive the most effective reasoning representation for various tasks.
We investigate multiple post-training methodologies to fine-tune agent reasoning effectively:
We train specialized agent reward models using annotated data to accurately quantify nuanced reward signals. These models are then leveraged to guide agent trajectory selection during both training and evaluation phases.
During the inference phase, trajectory scaling methods are implemented, allowing agents to flexibly adapt to varying task complexities, thus enhancing robustness and performance in real-world scenarios.
Agents are equipped with action-space awareness, employing systematic exploration strategies designed to navigate complex action spaces effectively, ultimately maximizing expected rewards.
We integrate insights and methodologies from leading RL tuning frameworks, including:
The verl submodule is fully integrated into OpenManus-RL, providing:
- Advanced RL Algorithms - PPO, DPO, and custom reward modeling
- Efficient Training - Optimized for large language model fine-tuning
- Flexible Configuration - Easy customization of training parameters
- Production Ready - Battle-tested framework from Bytedance
Through these frameworks, agents can effectively balance exploration and exploitation, optimize reasoning processes, and adapt dynamically to novel environments.
In summary, our method systematically integrates advanced reasoning paradigms, diverse rollout strategies, sophisticated reward modeling, and robust RL frameworks, significantly advancing the capability and adaptability of reasoning-enhanced LLM agents.
<img src="https://github.com/OpenManus/OpenManus-RL/raw/main/assets/method_overview.png" style="width: 100%;" alt="marble">
OpenManusRL-Dataset combines agent trajectories from AgentInstruct, Agent-FLAN and [AgentTraj-L(AgentGym)] with features:
| Source | Trajectories | Avg Turns | Key Features |
|---|---|---|---|
| AgentInstruct | 1,866 | 5.24 | Multi-task QA, CoT reasoning |
| Agent-FLAN | 34442 | 3-35 | Error recovery patterns, diverse real-world tasks |
| AgentTraj-L | 14485 | 3-35 | interactive environments and tasks |
| Combined | 50793 | 4-20 | Enhanced generalization, uniform format with broader task coverage |
English
ReAct Pattern Example:
{
"id": "os_0",
"conversations": [
{"role": "user", "content": "Count files in /etc"},
{"role": "assistant", "content": "Think: Need reliable counting method\nAct: bash\n```bash\nls -1 /etc | wc -l\n```"},
{"role": "user", "content": "OS Output: 220"},
{"role": "assistant", "content": "Think: Verified through execution\nAct: answer(220)"}
]
}
A simplified library for Supervised Fine-Tuning (SFT) and GRPO tunning of language models for agentic system. (developed upon Verl from Bytedance) We are still laboriously developing this part, welcome feedback.
This project uses git submodules. After cloning the repository, make sure to initialize and update the submodules:
# Clone the repository with submodules
git clone --recursive https://github.com/OpenManus/OpenManus-RL.git
# Or if already cloned, initialize and update submodules
git submodule update --init --recursive
First, create a conda environment and activate it:
# Create a new conda environment
conda create -n openmanus-rl python=3.10 -y
conda activate openmanus-rl
Then, install the required dependencies:
# Install PyTorch with CUDA support
pip3 install torch torchvision
# Install vllm for efficient inference
# Install the main package
pip install -e .[vllm]
# flash attention 2
pip3 install flash-attn --no-build-isolation
pip install wandb
To set up the WebShop environment for evaluation:
# Change to the agentenv-webshop directory
cd openmanus_rl/environments/env_package/webshop/webshop/
# Create a new conda environment for WebShop
conda create -n agentenv_webshop python==3.10 -y
conda activate agentenv_webshop
# Setup the environment
bash ./setup.sh -d all
conda acitvate openmanus-rl
pip3 install gymnasium==0.29.1
pip3 install stable-baselines3==2.6.0
pip install alfworld
Download PDDL & Game files and pre-trained MskRCNN detector (will be stored in ~/.cache/alfworld/):
alfworld-download -f
Use --extra to download pre-trained checkpoints and seq2seq data.
Make sure you have the required environments set up (see Environment Setup section above).
Download the OpenManus-RL dataset from Hugging Face.
conda activate openmanus-rl
bash scripts/ppo_train/train_alfworld.sh
$ claude mcp add OpenManus-RL \
-- python -m otcore.mcp_server <graph>