Skip to main content

AgileRL

Train and deploy specialized agents on Arena, straight from your terminal.

agilerl is the command-line tool and Python SDK for Arena, AgileRL's post-training platform.

What is Arena?

Arena turns open-weight LLMs and VLMs into task-specific agents. It covers supervised fine-tuning, preference tuning, distillation from a teacher model, and single- and multi-turn reinforcement learning, then serves the trained agent for inference.

You don't tune the infrastructure. Arena sizes every job itself, working out the most efficient training setup for the compute you have. Train on our GPUs or bring your own cluster.

Bring your own data and tasks. Upload your own datasets, or recorded conversations with tool calls to train on. For reinforcement learning, upload your own environment as Python code or a package: Arena runs any environment that follows the OpenEnv reset / step API, and converts gym-style environments for you.

It's fast, too: in our benchmarks, Arena trains faster than the leading open-source RL libraries.

Held-out eval accuracy against training hours on the AWM benchmark: Arena reaches 42.2 in about 12 hours; Prime-RL 33.9, Miles 23.7 and ART 17.5 were stopped after 48 hours, TRL 21.9 and verl 16.6 took over 30.

What the CLI gives you

  • Experiments as code. Describe a run in a YAML manifest, keep it in git, and launch it with arena experiments submit.
  • Know before you spend. arena memory estimate tells you whether a run fits your GPUs before you launch it, and arena memory solve max_model_len finds the longest context you can train at.
  • Check your inputs. arena env validate tests your environment before any GPU time is used.
  • The whole platform from your shell. Create projects and datasets, list GPU types, track experiments and checkpoints, register your own cluster, and generate client code for a deployed agent.
  • A Python SDK. Use from agilerl import ArenaClient in scripts, notebooks and CI.

Install

uv tool install agilerl

This installs the arena command in its own environment. To use the Python SDK (from agilerl import ArenaClient) in a project, run uv add agilerl instead. pip install agilerl also works.

agilerl supports Python 3.10 to 3.14. To train inside your own Snowflake account, use the Arena Native App from the Snowflake Marketplace.

Quickstart

Log in once, then submit an experiment from a manifest:

arena login
arena experiments submit manifest.yaml

Writing a manifest, preparing datasets and environments, and deploying your agent are all covered in the Arena docs.

Docs

The Arena CLI guide covers every command, or you can run arena --help to see them in your terminal.

Migrating from agilerl-arena

Uninstall agilerl-arena the way you installed it, then install agilerl. Both packages ship the arena command, so uninstalling agilerl-arena removes it.

If you installed it with pip:

pip uninstall -y agilerl-arena
pip install -U --force-reinstall agilerl

--force-reinstall puts the arena command back even when agilerl is already installed, for example after the CLI upgraded itself.

If you installed it as a uv tool:

uv tool uninstall agilerl-arena
uv tool install agilerl

If uv tool install says arena already exists, for example from a pip install, add --force.

Then change your imports from agilerl.arena.* to agilerl.*, for example from agilerl import ArenaClient.

Looking for the AgileRL framework?

Before 3.0, agilerl was our open-source reinforcement learning framework. From 3.0, agilerl is the Arena CLI, and installing it replaces the framework in the same environment. To keep using the framework, install it in a separate virtualenv:

python -m venv .venv-agilerl2
.venv-agilerl2/bin/pip install 'agilerl<3'

With uv: uv venv .venv-agilerl2 && uv pip install --python .venv-agilerl2 'agilerl<3'.

To downgrade an environment that already has agilerl 3, reinstall agilerl-arena 1.x afterwards. Both it and agilerl 3 ship the arena command, and removing agilerl 3 deletes it:

python -m pip install 'agilerl<3' && python -m pip install --force-reinstall --no-deps 'agilerl-arena<2'

Run it with that environment's python. With uv, name the environment: uv pip install --python .venv 'agilerl<3' && uv pip install --python .venv --reinstall --no-deps 'agilerl-arena<2'.

The 2.x releases are in the PyPI release history, and their source is under the v2.* tags on GitHub.

License and help

agilerl is licensed under Apache 2.0 (see LICENSE). Report bugs and ask questions in GitHub issues.

Metadata

Release files for agilerl 3.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for agilerl 3.0.0
File Size Uploaded Provenance Actions
agilerl-3.0.0.tar.gz 345.2 kB Without provenance Details for agilerl-3.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for agilerl 3.0.0
File Interpreter ABI Platform Actions
agilerl-3.0.0-py3-none-any.whl Python 3 none any Details for agilerl-3.0.0-py3-none-any.whl

Total release size: 779.4 kB

Release files / agilerl-3.0.0.tar.gz

Download URL agilerl-3.0.0.tar.gz
Size 345.2 kB
Tags Source
SHA-256 checksum
How to use checksums
041e639538af4d6dd14b17db26a28ef3726a06b8bcaf360ddb123d7f125cc5cb
BLAKE2b-256 checksum
How to use checksums
47a0d6e7aafb879ce3dab1d240a24acc68c828616c997f395dd7f37d62ee016c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.10 {"installer":{"name":"uv","version":"0.13.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / agilerl-3.0.0-py3-none-any.whl

Download URL agilerl-3.0.0-py3-none-any.whl
Size 434.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
668d86736272cb062533219faab56bc605719c3de225187a2ef921a11411ff39
BLAKE2b-256 checksum
How to use checksums
0a732ae83c1473f89d09629bbc0d68facf56a457e9f8fb499ae2041a5eb49a78
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.10 {"installer":{"name":"uv","version":"0.13.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for agilerl 3.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

3.0.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page