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
- FA score
- 62/100 · Some gaps
At a glance
- How it runs
- Works with
- Universal · cross-platform
- Cost
- Free tier plus a paid hosted plan
- Setup effort
- Medium · a few setup steps
- You'll need
- 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.
- RL researchers who want to train DQN/PPO/TD3 agents on standard Gymnasium environments (LunarLander, CartPole) without first running hundreds of tuning experiments.
- Multi-agent developers training MADDPG/MATD3/IPPO agents in PettingZoo parallel-API environments such as speaker listener or simple spread.
- 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).
- Offline RL practitioners training policies with CQL or ILQL on static datasets instead of environment interaction.
- Teams building contextual multi-armed bandit decision systems (NeuralUCB/NeuralTS on datasets like Iris or PenDigits).
- 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 agilerlpip install git+https://github.com/AgileRL/AgileRL.git@mainpip install agilerl-arena
- Config files
configs/training/dqn/dqn.yamlpath/to/manifest.yaml
How do you install or deploy this agent?
Base install: pip install agilerlDevelopment 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-arenaHow 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?
- 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.
- 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?
Why each dimension lost points
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.
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.
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.
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.
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.
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.
- 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.
Recent releases
Latest entries from the project's GitHub Releases. Notes are quoted from upstream as written, not rewritten or tested by FollowAgents.
-
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 ↗ -
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 ↗ -
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?
Do I have to use the Arena platform, and what does it cost?
Which environments and algorithms are supported?
How do I fine-tune LLMs, and what hardware is required?
Can training configurations be versioned and reproduced?
Is AgileRL open source?
Is AgileRL safe to use?
Is AgileRL still maintained?
Who makes AgileRL?
What is AgileRL's official website?
Thanks — we use this to improve the page.