rLLM: Reinforcement Learning Framework for LLM Agents

A unified framework for RL training of language agents, supporting any harness, any sandbox, and one-flag backend switching.

Source repo
rllm-org/rllm
Stars
★ 5.9k
Last updated
1d ago v0.3.0-pre
FARS reviewed
Nov 08, 2026
License
Apache-2.0
Primary language
Python

At a glance

How it runs
CLILibrary / SDKFramework
Works with
Universal · cross-platformOpenAI API
Cost
Free software; you pay for model usage
Setup effort
High · needs real infrastructure
You'll need
Python >= 3.11DockerDaytonaModalShell / CLINetwork accessLocal filesystem
Typical use
Researchers want to train large language models with RL methods like GRPO on multi-GPU clusters.
Not a fit if
  • Solo developers without multi-GPU hardware who want to train RL on a laptop
  • Users wanting simple prompt calls, not the Episode/Trajectory and @rllm.rollout decorator API
Website
docs.rllm-project.com ↗ set on GitHub
Maintenance
Commits in the last 30 dayslast commit 2026-12-01latest release v0.3.0-pre (2026-04-30)

What does this agent do, and when should you use it?

rLLM is an open-source framework for training language agents with reinforcement learning. It provides a unified API to run your agent on any harness (Claude Code, Codex, Terminus-2, mini-swe-agent, opencode, etc.), execute in any sandbox (Docker, Daytona, Modal, or local), and switch between training backends (verl, tinker, fireworks) with a single flag. The framework includes 60+ integrated benchmarks across math, code, QA, search, VLM, and agentic tasks, and supports multiple training methods like GRPO, REINFORCE, RLOO, SFT, and on-policy distillation. A model gateway captures token IDs and logprobs, enabling the same agent code for both evaluation and training. rLLM has been used to train state-of-the-art open-source models like DeepScaleR-1.5B, DeepCoder-14B, and DeepSWE-32B, and is adopted by academic labs and industry teams.

rLLM runs a pipeline: run your agent → collect traces → compute rewards → update the model. The agent is defined via the @rllm.rollout decorator, and the reward function via @rllm.evaluator. During training, the model gateway routes LLM calls and captures token IDs and logprobs, organizing them into Episodes (one task), Trajectories (agent run), and Steps (LLM call). The training backends include verl (distributed multi-GPU), tinker (single-machine), and fireworks (Fireworks platform). For evaluation, it provides CLI commands like rllm eval <benchmark> and rllm train <benchmark>. The framework automatically pulls and runs benchmark datasets, and supports parallel rollout collection via a workflow engine.

  1. Researchers want to train large language models with RL methods like GRPO on multi-GPU clusters.
  2. Teams need to evaluate their agents on many benchmarks (e.g., SWE-bench, AIME) without writing separate code for each.
  3. Developers have existing agent implementations (e.g., using OpenAI API or LangGraph) and want to add RL training without major refactoring.
  4. Organizations that need flexibility to switch training backends (e.g., from single-machine tinker to distributed verl) based on resource availability.
  5. Teams that require sandboxed execution (Docker, Modal) for safe and reproducible training runs.

Key setup facts

Pulled from the install and usage notes below. The project README has the current values.

Install / run
  • uv pip install "rllm @ git+https://github.com/rllm-org/rllm.git"
  • uv pip install "rllm[verl] @ git+https://github.com/rllm-org/rllm.git"
  • uv pip install "rllm[fireworks] @ git+https://github.com/rllm-org/rllm.git"
Runtime
Python 3.11+
Install notes cover
Docker

How do you install or deploy this agent?

Requires Python >= 3.11. Recommended installation using uv:

# Install core CLI (tinker backend)
uv pip install "rllm @ git+https://github.com/rllm-org/rllm.git"

# For distributed multi-GPU training (verl + vLLM/SGLang)
uv pip install "rllm[verl] @ git+https://github.com/rllm-org/rllm.git"

# For Fireworks platform
uv pip install "rllm[fireworks] @ git+https://github.com/rllm-org/rllm.git"

Alternatively, build from source or use Docker. See https://docs.rllm-project.com/installation for details.

How do you use this agent?

After installation, you can use the CLI or Python API.

CLI quickstart:

# Configure model provider
rllm model setup

# Evaluate on a benchmark (e.g., gsm8k)
rllm eval gsm8k

# Train on a benchmark
rllm train gsm8k

Python API example:

  1. Define a rollout function with @rllm.rollout.
  2. Define an evaluator with @rllm.evaluator.
  3. Create an AgentTrainer and call train().

See the cookbooks directory for complete examples.

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)

Local shell command execution

Can run terminal commands; pair with approval gates or container/OS sandboxing.

Local filesystem read/write

Modifies local files; work on a clean Git branch or dedicated worktree.

Outbound network access

Makes outbound requests; verify telemetry settings and model data routing on private repos.

What are this agent's strengths and limitations?

Pros
  • Supports 10+ CLI harnesses and Harbor-compatible task directories, plus custom agents via @rllm.rollout
  • Flexible sandbox options (Docker, Daytona, Modal) with snapshot and warm-pool acceleration to reduce rollout costs
  • One-flag switching between training backends (verl, tinker, fireworks) with the same agent code for eval and training
  • 60+ built-in benchmarks covering math, code, QA, search, VLM, and agentic tasks
  • Multiple RL algorithms (GRPO, REINFORCE, RLOO, SFT, on-policy distillation)
  • Proven results with models like DeepScaleR, DeepCoder, and DeepSWE
Limitations
  • Requires Python 3.11+, which may be restrictive for older environments
  • Distributed training depends on verl and vLLM/SGLang, requiring significant GPU resources and setup
  • CLI benchmark evaluation may require network access to fetch datasets
  • Custom agent integration requires learning the decorator API (e.g., @rllm.rollout) and structuring code into Episodes/Trajectories
  • The Fireworks backend is a specific platform, potentially lock-in

How does this agent compare with similar options?

Compared to standalone agent frameworks (e.g., Claude Code) or RL libraries (e.g., verl), rLLM provides a higher-level abstraction that unifies harnesses, sandboxes, and backends. However, no direct competitors are mentioned in the source.

Key facts side by side with the most closely related agents.

Agent Source review Form / cost Stars Updated Language Full support on
rLLM: Reinforcement Learning Framework for LLM Agents This agent 54 · Major gaps CLIFree + model costs ★ 5.9k 1d ago Python OpenAI API
AgentsMeetRL — Awesome List of Agentic Reinforcement Learning 57 · Major gaps Agent plugin / skillFree ★ 1.9k 10d ago HTML —
HUD 61 · Some gaps CLIFree + model costs ★ 336 2d ago Python OpenAI API · Claude API
MARTI: Multi-Agent Reinforced Training & Inference for LLMs 40 · Major gaps CLIFree ★ 573 3mo ago Python —

How does FollowAgents rate this agent?

FollowAgents source review · FARS-2.1
Major gaps
54/ 100 5-point scale 2.7 / 5
Trust 12/29
Reliability 5/14
Adaptability 14/18
Convention 10/18
Effectiveness 9/13
Verifiability 4/8
Why each dimension lost points
Trust12 / 29 · 2.1/5

The README and configuration guide say the model gateway captures token IDs and logprobs and records traces; they also identify the proxy address and trace database path, giving partial data-flow visibility. They do not fully explain retention, external sharing, or access controls. The configuration example describes API-key setup, and the configuration guide supplies `my-shared-secret` as the default admin token, leaving sensitive-data protections thin. Evaluation and training can contact remote services, pull datasets, and consume cloud resources. The docs describe some sandbox lifecycle controls, but show no general execution-confirmation or training rollback process. The README includes author citation and support acknowledgements, but maintenance responsibility is unclear.

Reliability5 / 14 · 1.8/5

The README and installation guide disagree on the minimum Python version (the README requires 3.11, while the guide says 3.10, with Tinker requiring 3.11). The README also lists Fireworks as a backend, while the training configuration guide mainly describes Tinker and Verl. The project spans many dependencies and cloud services; some dependencies are version-constrained, but it still relies on external repositories, platforms, and services. The sample shows CLI descriptions and some error messages, but does not establish comprehensive failure diagnostics.

Adaptability14 / 18 · 3.9/5

The framework targets researchers and developers and covers multiple harnesses, sandboxes, training backends, algorithms, and benchmarks through CLI and Python APIs, providing strong evidence of scenario coverage. The docs distinguish local execution without isolation from sandbox execution and describe when a sandbox is needed, but do not fully explain execution permissions, cost boundaries, or backend capability differences. CLI commands and configuration entry points are clear; environment guidance covers CPU, GPU, CUDA, and remote sandboxes, though inconsistent version requirements reduce deployment clarity.

Convention10 / 18 · 2.8/5

Documentation is organized around installation, quickstart, core concepts, and training configuration, with multiple install methods, configuration tables, examples, and troubleshooting guidance. The sandbox guide also covers resource limits, timeouts, and some backend limitations. Installation materials disagree on Python requirements and backend support; the package has a prerelease version, but the sample contains no clear changelog. The license text is Apache-2.0, while the pyproject classifier says MIT, creating inconsistent metadata. Team and author names are visible, but no maintenance owner or maintenance plan is identified.

Effectiveness9 / 13 · 3.5/5

The framework connects agent rollouts, trace collection, reward computation, and model updates in a common pipeline, and offers benchmark metrics and integration paths with clear research and engineering value. Metrics and examples help users get started, but the sample does not show a complete result format or user-facing interpretation. Training, concurrent evaluation, and remote sandboxes can consume substantial compute and cloud resources; the docs mention acceleration and resource settings but provide limited typical-cost or cost-control guidance.

Verifiability4 / 8 · 2.5/5

The README, configuration guide, and code sample provide traceable interfaces, parameters, and workflow details for some claims; the sandbox guide also gives concrete snapshot and lifecycle descriptions. However, several scale, performance, and results claims are stated mainly in the README, and repeated descriptions across files are not independent corroboration. The docs generally distinguish configuration information from operational steps, but do not systematically label performance or results claims that are unverified by the supplied material.

Risks and how to mitigate them
  • The README and installation guide disagree on the minimum Python version; check the requirements for the selected backend before installation.
  • The configuration guide gives `my-shared-secret` as the default admin token; replace it before deployment and protect API keys and trace data.
  • The license file is Apache-2.0, but the pyproject.toml classifier says MIT; reconcile the metadata before release or redistribution.
  • Training and remote sandboxes may incur substantial compute, cloud-service, and data-transfer costs; the supplied material gives no typical cost estimates.
Evidence confidence: Low Reviewed Nov 08, 2026 Reviewed revision 4e828c81680e New commits since this review; the score may not cover them
See the full review method →
Maintain this project? Add the FARS badge to your README

The badge shows the current review score and verdict and links back to this page. It refreshes about once an hour after a re-review.

FARS

[![FARS review](https://followagents.com/badge/rllm.svg)](https://followagents.com/en/agents/rllm)
<a href="https://followagents.com/en/agents/rllm"><img src="https://followagents.com/badge/rllm.svg" alt="FARS review"></a>

Recent releases

Latest entries from the project's GitHub Releases. Notes are quoted from upstream as written, not rewritten or tested by FollowAgents.

  1. v0.3.0-pre rLLM: v0.3.0-pre
    Release notes excerpt
    What's Changed * [feature] add support for on policy distillation by @kylemontgomery1 in https://github.com/rllm-org/rllm/pull/356 * [Bugfix] Make sure the tracking logger is now explicitly finished by trainers by @listar2000 in https://github.com/rllm-org/rllm/pull/358 * Add Geo3K Tinker training example with VLM support by @BrianChen26 in https://github.com/rllm-org/rllm/pull/357 * Support custom metric for SDK by @thwu1 in https://github.com/rllm-org/rllm/pull/362 * fix: typo in bibtex by @tongyx361 in https://github.com/rllm-org/rllm/pull/363 …
    View on GitHub ↗
  2. v0.2.1.post1 rLLM: v0.2.1.post1
    Release notes excerpt
    What's Changed * update docs & add curves by @thwu1 in https://github.com/rllm-org/rllm/pull/343 * Fix import for colorful_print in agent_sdk_engine.py and agent_sdk_trainer.py by @wht0703 in https://github.com/rllm-org/rllm/pull/345 * Unblock sdk installation by overriding dependices by @wht0703 in https://github.com/rllm-org/rllm/pull/348 * [Doc] Update README and fix a few installation related issues by @listar2000 in https://github.com/rllm-org/rllm/pull/347 * fix: keyerror completion_ids by @kxfan2002 in https://github.com/rllm-org/rllm/pull/353 …
    View on GitHub ↗
  3. v0.2.1 rLLM: v0.2.1
    Release notes excerpt
    rLLM v0.2.1: Tinker backend, VLM training, Eval Protocol, and SDK (preview) We are excited to release rLLM v0.2.1. This new version comes with the following exciting features: - rLLM SDK (preview): The rLLM SDK enables you to transform agents written in frameworks such as LangGraph, SmolAgent, or Strands into trainable workflows. Check out this [LangGraph RAG example](https://rllm-project.readthedocs.io/en/latest/examples/sdk_langgraph_rag/), which builds a RAG agent and trains it with the rLLM SDK. …
    View on GitHub ↗

FAQ

Can I use rLLM with my existing OpenAI-based agent?
Yes, you can wrap any agent code that calls an LLM API with @rllm.rollout. During training, the model gateway intercepts calls and captures token IDs and logprobs.
What hardware is needed for training?
Depends on the backend. tinker works on a single machine, verl requires multi-GPU setup with vLLM/SGLang. Refer to the documentation for specifics.
How can I add a custom benchmark?
The framework currently provides 60+ built-in benchmarks, and you can run them via rllm eval. For custom tasks, you might need to follow Harbor-compatible formats (not detailed in the README).
Which RL algorithms are supported?
rLLM supports GRPO, REINFORCE, RLOO, SFT, and on-policy distillation, among others.
Was this page helpful?
View on GitHub ↗ Install ↓

Compare agents like this one

The same FARS review applied across the shortlist this agent qualifies for.

Related concepts