AgileRL

Streamlines reinforcement learning with RLOps: evolutionary hyperparameter optimization removes exhaustive tuning runs for up to 10x faster training.

Source repo
AgileRL/AgileRL
Stars
★ 969
Last updated
today
License
Apache-2.0
Primary language
Python

At a glance

How it runs
Library / SDKCLI
Works with
Universal · cross-platform
Cost
Free tier plus a paid hosted plan
Setup effort
Medium · a few setup steps
You'll need
PythonPyTorchShell / CLINetwork access
Typical use
RL researchers who want to train DQN/PPO/TD3 agents on standard Gymnasium environments (LunarLander, CartPole) without first running hundreds of tuning experiments.
Not a fit if
  • Teams that must keep all data and training fully on-premises
  • Users unwilling to pay the compute cost of training a whole population
  • Teams that want to avoid vendor lock-in to a proprietary cloud platform
Website
agilerl.com ↗ set on GitHub
Maintenance
Commits in the last 30 dayslast commit 2026-11-16latest release v2.65.0 (2026-11-16)
Source review
62/100 · Some gaps

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

AgileRL is a PyTorch-based deep reinforcement learning library built around RLOps — MLOps practices applied to RL. Its signature capability is evolutionary hyperparameter optimization (HPO): a population of agents is trained while tournament selection and mutations automatically converge on optimal hyperparameters, with official benchmarks showing roughly an order-of-magnitude time savings versus multi-run tuning with Optuna. The library spans on-policy (PPO), off-policy (DQN/Rainbow DQN/DDPG/TD3), offline (CQL/ILQL), multi-agent (MADDPG/MATD3/IPPO), contextual multi-armed bandit (NeuralUCB/NeuralTS), and LLM reinforcement fine-tuning algorithms (GRPO/CISPO/GSPO/DPO and more), plus distributed training. Usage paths include the LocalTrainer Python API, YAML manifests, and a CLI for free local training, with an optional Arena cloud platform (agilerl-arena SDK/CLI) for managed training and deployment. The project is Apache-2.0 licensed and offers documentation, tutorials, and a Discord community.

It reads Gymnasium/PettingZoo environments and algorithm configurations, builds an evolvable agent population, and trains it via LocalTrainer or a YAML manifest (e.g., configs/training/dqn/dqn.yaml): in single-agent mode trainer.train() returns a population and fitnesses; with hpo=True, TournamentSelection and Mutations run every evo_steps (default 10,000), evolving hyperparameters like learning rate and network architecture. Advanced users compose DQN.population(), ReplayBuffer, and train_off_policy into custom pipelines. The LLM fine-tuning path supports multi-turn training with GRPO, CISPO, and similar algorithms; agilerl-arena provides an ArenaClient (OAuth2 device-flow login) and the arena CLI to upload/validate custom environments (arena env validate), submit experiments (arena experiments submit), and deploy trained agents.

  1. RL researchers who want to train DQN/PPO/TD3 agents on standard Gymnasium environments (LunarLander, CartPole) without first running hundreds of tuning experiments.
  2. Multi-agent developers training MADDPG/MATD3/IPPO agents in PettingZoo parallel-API environments such as speaker listener or simple spread.
  3. LLM engineers performing multi-turn reinforcement fine-tuning on small models for long-horizon tasks (e.g., GEM Sudoku Hard with 32k context and up to 50 turns per rollout), with lower memory needs than ART/TRL (A100 40GB suffices).
  4. Offline RL practitioners training policies with CQL or ILQL on static datasets instead of environment interaction.
  5. Teams building contextual multi-armed bandit decision systems (NeuralUCB/NeuralTS on datasets like Iris or PenDigits).
  6. Users who want to train and deploy agents on managed cloud infrastructure without local compute, via the Arena platform.

Key setup facts

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

Install / run
  • pip install agilerl
  • pip install git+https://github.com/AgileRL/AgileRL.git@main
  • pip install agilerl-arena
Config files
configs/training/dqn/dqn.yaml path/to/manifest.yaml

How do you install or deploy this agent?

Base install: pip install agilerl

Development mode: git clone https://github.com/AgileRL/AgileRL.git && cd AgileRL && pip install -e .
Optional extras: agilerl[box2d] (Box2D environments for Gymnasium), agilerl[arena] (Arena SDK & CLI), agilerl[llm] (LLM reinforcement fine-tuning), agilerl[all] (everything).

From main branch: pip install git+https://github.com/AgileRL/AgileRL.git@main
Arena standalone: pip install agilerl-arena

How do you use this agent?

Simplest entry point (single agent):

from agilerl import LocalTrainer
trainer = LocalTrainer(algorithm="DQN", environment="LunarLander-v3")
population, fitnesses = trainer.train()

Defaults: 1,000,000 steps, default hyperparameters, no evolutionary HPO.
Enable evolutionary HPO:

from agilerl.models import TrainingSpec
trainer = LocalTrainer(algorithm="DQN", environment="LunarLander-v3", training=TrainingSpec(pop_size=4), hpo=True)

Alternatively via a YAML manifest: LocalTrainer.from_manifest("configs/training/dqn/dqn.yaml"), or CLI: python -m agilerl.train configs/training/dqn/dqn.yaml.
Arena cloud training: arena login (OAuth2 device flow) → arena env validate my-custom-env --source path/to/my_env.py → arena experiments submit path/to/manifest.yaml --project my-project.

What are this agent's strengths and limitations?

Pros
  • Evolutionary HPO converges on hyperparameters within a single training run; official benchmarks show roughly an order-of-magnitude speedup vs. popular RL frameworks combined with Optuna's multi-run tuning.
  • Broad algorithm coverage in one library: on-policy, off-policy, offline, multi-agent, contextual bandits, and LLM fine-tuning (GRPO/CISPO/GSPO/LLM PPO/DPO etc.), all with evolvable network architectures.
  • Highly customizable training pipeline: YAML manifests, the high-level LocalTrainer API, or low-level components (DQN.population, TournamentSelection, Mutations, train_off_policy) with support for custom evolvable algorithms and networks.
  • Ships Arena, a managed RLOps platform (Python SDK + CLI) with RL-tailored cloud infrastructure for free training, custom environment validation, and agent deployment.
Limitations
  • Evolutionary HPO trains a population, so compute cost grows with population size; it is off by default for single-agent training, requiring a deliberate trade-off.
  • The Arena cloud platform is proprietary — full cloud training/deployment depends on AgileRL's managed infrastructure and an OAuth2 account, creating platform lock-in for that path.
  • Features are split across optional dependency groups (llm, arena, box2d), and Arena is a separate PyPI distribution that must be installed on top.
  • Key claims (10x speedup, LLM benchmarks beating ART/TRL) come from the project's own benchmarks under specific conditions (A100 40GB nodes, GEM Sudoku task); independent verification is not provided in the source.

How does this agent compare with similar options?

Official benchmarks compare AgileRL against Optuna (which requires multiple training runs for hyperparameter optimization), claiming roughly an order-of-magnitude HPO speedup; for multi-turn LLM fine-tuning it is compared against the ART and TRL frameworks, with claimed superior performance on GEM Sudoku Hard and lower memory needs (A100 40GB vs. 80GB).

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

Agent Source review Form / cost Stars Updated Language Full support on
AgileRL This agent 62 · Some gaps Library / SDKFreemium ★ 969 today Python —
Relax Omni-Modal RL Engine 59 · Major gaps CLIFree ★ 676 today Python —
RLinf RL Infrastructure 54 · Major gaps Library / SDKFree ★ 5.7k today Python —
Kubeflow 28 · Major gaps Self-hosted serviceFree ★ 16k 1mo ago — —

How does FollowAgents rate this agent?

FollowAgents source review · FARS-2.1
Some gaps
62/ 100 5-point scale 3.1 / 5
This review covers the source as of Nov 08, 2026. The project has shipped 12 stable release(s) since, which have not been re-reviewed. The score and verdict describe the reviewed version only. Recent releases ↓
Trust 13/29
Reliability 8/14
Adaptability 14/18
Convention 13/18
Effectiveness 9/13
Verifiability 5/8
Why each dimension lost points
Trust13 / 29 · 2.2/5

The CLI distinguishes API keys, organization keys, and external user IDs, and provides logout and credential clearing. Test fixtures isolate local credentials and inference cache, supporting partial credit for data-flow transparency and sensitive-data handling. External effects such as training, Arena uploads, submissions, and deployment are visible, but the sample does not show pre-action confirmation, fine-grained permissions, or recovery mechanisms. The dependency set is large and this packet provides no verifiable vulnerability-management evidence. README and citation details offer attribution clues, while publisher identity remains unverified by the registry.

Reliability8 / 14 · 2.9/5

README, pyproject, and code support a coherent scope spanning LLM training, classic RL, and the Arena CLI; several dependencies have version bounds and optional groups. The many dependencies and platform, GPU, and optional-component requirements limit confidence in availability. The CLI gives a clear read-manifest error and exit code, but the sample does not show handling for all failure cases.

Adaptability14 / 18 · 3.9/5

Documentation identifies scenarios across LLM post-training, classic RL, multi-agent and offline tasks, and different runtime setups, with algorithms and tutorials. Manifests and custom-environment support add flexibility. The scope is broad, but claims such as 'any problem' exceed what this sample demonstrates. CUDA, Linux, FlashAttention, and vLLM constraints are mentioned, though a full compatibility matrix is not shown.

Convention13 / 18 · 3.6/5

The README has a table of contents, installation options, scenario-based tutorials, algorithm lists, and citation instructions. The Apache-2.0 license text is included in full. Installation notes cover Python versions, optional dependencies, and some GPU requirements; the sample does not provide a full changelog, support lifecycle, clear maintenance responsibility, or systematic known-limitations section, so those scores remain conservative.

Effectiveness9 / 13 · 3.5/5

The framework combines SFT, preference optimization, multi-turn RL, and evolutionary hyperparameter optimization, with runnable command and Python examples that show meaningful integration value. JSON output, manifest validation, and metrics retrieval improve automation usability. Large-model training can require GPUs, complex dependencies, and managed Arena infrastructure, raising costs; benchmark conclusions in this packet are primarily project claims.

Verifiability5 / 8 · 3.1/5

Most README capabilities link to specific API documentation, tutorials, or configs and are partly corroborated by pyproject dependencies and the shown CLI implementation. The sample contains no benchmark raw data, methodological detail, or result-reproduction record. The rationale distinguishes visible implementation from unverified performance claims and does not claim execution or testing.

Risks and how to mitigate them
  • Treat Arena keys and training data as sensitive. Before managed training, data uploads, or deployment, confirm the target environment, data destination, cost, and cleanup path.
  • LLM dependencies have platform and GPU constraints; check Python, CUDA, PyTorch, and optional-engine compatibility before installation.
  • Throughput, reward, and memory comparisons in the README are publisher claims; this static review did not verify benchmark results.
Evidence confidence: Low Reviewed Nov 08, 2026 Reviewed revision dfdd538b8a0c 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/agilerl.svg)](https://followagents.com/en/agents/agilerl)
<a href="https://followagents.com/en/agents/agilerl"><img src="https://followagents.com/badge/agilerl.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. v2.65.0 v2.65.0: train chat-format preference rows
    Release notes excerpt
    Features - add Nebius catalog credentials and keep recovered project ids out of Terraform The Nebius cluster module creates a catalog service account, an inline access key, and a tenant editors group. Register stores the access key id, secret, and group id together, and arena cluster status redacts the secret. When an install package includes both catalog env files, register applies the arena-byoc-catalog-credentials Secret before the agent chart. …
    View on GitHub ↗
  2. agilerl-arena/v1.38.0 agilerl-arena v1.38.0: train chat-format preference rows
    Release notes excerpt
    Features - add Nebius catalog credentials and keep recovered project ids out of Terraform The Nebius cluster module creates a catalog service account, an inline access key, and a tenant editors group. Register stores the access key id, secret, and group id together, and arena cluster status redacts the secret. When an install package includes both catalog env files, register applies the arena-byoc-catalog-credentials Secret before the agent chart. …
    View on GitHub ↗
  3. v2.64.0 v2.64.0: run Snowflake training from an in-account broker
    Release notes excerpt
    Fixes - reject hyperparameter mutation ranges outside the field limits Algorithm hyperparameters that live in a real range publish a minimum and a maximum on the training-manifest schema. Temperature and top-p must be above 0. Tau and learning rates must be above 0, and tau is at most 1. Presence and frequency penalties run from -2 to 2. A completion cap must be at least 1 and less than the model context length. LLM update epochs are at most 10. On-policy distillation temperature stays at 1. Ornstein-Uhlenbeck noise is rejected when theta times the timestep is above 1. An HPO mutation w …
    View on GitHub ↗

FAQ

How does evolutionary HPO differ from normal training?
With hpo=True, a population of agents (sharing experiences, learning individually) is trained; every evo_steps (default 10,000) steps, tournament selection and mutations explore the hyperparameter space, removing the need for prior tuning experiments. Without it, a single agent trains with default hyperparameters.
Do I have to use the Arena platform, and what does it cost?
No. Install agilerl with pip and train locally via LocalTrainer. Arena is an optional managed cloud platform advertised as free for training, but its cloud training/deployment depends on an OAuth2 account and AgileRL's hosted infrastructure.
Which environments and algorithms are supported?
Gymnasium single-agent and PettingZoo parallel-API multi-agent environments; algorithms include PPO, DQN/Rainbow DQN, DDPG, TD3, CQL, ILQL, MADDPG, MATD3, IPPO, NeuralUCB/NeuralTS, and LLM fine-tuning via GRPO, CISPO, GSPO, LLM PPO, LLM REINFORCE, and DPO.
How do I fine-tune LLMs, and what hardware is required?
Install agilerl[llm] and follow the official tutorials (e.g., GRPO). In the official GEM Sudoku Hard benchmark, AgileRL runs used A100 40GB nodes (compared frameworks required A100 80GB), with sync, async, and HPO modes (the latter two executed on Arena).
Can training configurations be versioned and reproduced?
Yes. Training can be fully defined by a YAML manifest (e.g., configs/training/dqn/dqn.yaml) covering algorithm hyperparameters, mutation probabilities, network architecture, replay buffer, and training targets, loaded via LocalTrainer.from_manifest or python -m agilerl.train.
Is AgileRL open source?
Yes. The source code is on GitHub (AgileRL/AgileRL) under the Apache-2.0 licence.
Is AgileRL safe to use?
FollowAgents' FARS review (Nov 08, 2026) scored AgileRL 13/29 on trust and safety. None of the eight safety controls the review checks for was missing outright. The repository has changed since that review.
Is AgileRL still maintained?
Yes. The latest commit on GitHub is from 2026-11-16, within the last 30 days. The latest release is v2.65.0 (2026-11-16).
Who makes AgileRL?
AgileRL is published on GitHub by the account AgileRL. FollowAgents has not verified which person or company is behind that account.
What is AgileRL's official website?
The project's GitHub repository lists https://agilerl.com as its website. That link is set by the repository owner; the source code itself is on GitHub (AgileRL/AgileRL).
Was this page helpful?
View on GitHub ↗ Install ↓

Related concepts