Top RL EnvironmentsAn independent guide to RL environment vendors

Home / RL gym: the classic API and the new gyms for LLM agents

RL gym: the classic API and the new gyms for LLM agents

"RL gym" means two things in 2026. To most ML engineers it is the Gym API, now maintained as Gymnasium, that standardized reset() and step(). To AI labs and vendors it also means a training environment for LLM agents, such as a replica of a website or a SaaS app. This guide covers both and how to pick one.

Last reviewed November 9, 2026. 15 sources linked at the end.

Two meanings of "RL gym"

  • The classic meaning. An environment that implements the Gym interface. OpenAI released Gym in 2016 as "a toolkit for reinforcement learning research," with Atari, control and robotics tasks and a common API (Brockman et al.). The Farama Foundation now maintains it as Gymnasium.
  • The 2025 to 2026 meaning. Any environment used to post-train an LLM agent. SemiAnalysis calls website replicas "UI gyms" (January 2026). Deeptune describes its products as "training gyms" that simulate jobs such as accountant or DevOps engineer across tools like Slack and Salesforce (Fortune, March 2026). Turing sells "RL gyms" for sales workflows on replicas of HubSpot, Outreach and Calendly (Turing).

The two meanings share a shape. Both have a reset, a step, an observation and a reward. They differ in what an action is, how the reward is computed, and what it costs to run one step. Our RL environments explainer covers the second meaning in depth.

The Gym API in brief

The Gym contract is small, which is why it spread. An environment exposes:

  • reset(seed): start a new episode and return the first observation and an info dict.
  • step(action): apply one action and return the next observation, the reward, and whether the episode ended.
  • action_space and observation_space: typed descriptions of valid inputs and outputs.
  • close(): release resources.

This is the loop from the Gymnasium README, checked November 9, 2026:

import gymnasium as gym
env = gym.make("CartPole-v1")

observation, info = env.reset(seed=42)
for _ in range(1000):
    action = env.action_space.sample()
    observation, reward, terminated, truncated, info = env.step(action)

    if terminated or truncated:
        observation, info = env.reset()
env.close()

Two details trip up people porting old code. Gymnasium's step() returns five values. The old single done flag is split into terminated (the task reached a terminal state) and truncated (a time or step limit cut it off). The split matters for value bootstrapping: a truncated episode did not really end, so its last state still has value.

Status and license

The openai/gym repository is archived on GitHub. Gymnasium is MIT licensed and had its latest push on November 8, 2026. Its paper describes it as the maintained successor with a standard API that extends Gym's (Towers et al.).

From Gym to gyms for LLM agents

Put an LLM in the Gym loop and three things change.

  • The action is text. A tool call, a shell command, a patch, a click on a screenshot. There is no small discrete action space to sample from.
  • The reward is sparse and comes from a verifier. Hidden tests, a check of the app's database, or an LLM judge with a rubric, usually once at the end. See verifier.
  • One step is expensive. A step can mean a model forward pass of thousands of tokens plus a container executing a command. Environments run on CPU servers, while the policy runs on GPUs.

The newer frameworks keep Gym's verbs. OpenEnv, from Meta-PyTorch and Hugging Face, asks environment authors to implement step(), reset() and close() and serves environments as isolated sandboxes (Hugging Face, October 2025). Prime Intellect's verifiers library frames an environment as a dataset, a harness and a rubric. NVIDIA's NeMo Gym separates environment servers from the training loop and records trajectories in the OpenAI Responses format (NeMo Gym docs).

Today's gyms and hubs

NameKindGood for
GymnasiumClassic API and environmentsTeaching, control, game RL, algorithm research
OpenEnvSpec plus Hugging Face hubPackaging agent environments for TRL, verl, SkyRL, Unsloth
Prime Intellect Environments HubOpen community hubFinding and sharing environments built on verifiers
NVIDIA NeMo GymLibrary with built-in environmentsTeams on the NeMo stack; NVIDIA labels it early development
SWE-Gym2,438 Python SWE tasksTraining coding agents and verifiers
BrowserGymGym-style API over web benchmarksWeb agents across WebArena, WorkArena and others

The full list, with licenses checked on GitHub, is in our open-source RL environments guide.

Commercial gyms are a different market. Most vendors keep environments closed and sell them under exclusive contracts. SemiAnalysis names Prime Intellect, which open-sources, as the exception. Prices are private, but reported ranges are on our pricing page.

How to pick an RL gym

  1. Start from the skill, not the framework. Pick the environment whose tasks look like the work you want the model to do. A gym that matches the target workflow beats a better-engineered one that does not.
  2. Check the grader before anything else. Read the verifier code. Can the agent edit the tests, read the answer, or reach the internet? Our evaluation checklist lists the probes.
  3. Measure pass rates on your model. Run 64 rollouts per task on your current checkpoint. Epoch AI reports buyers want at least about 2 to 3% success, since tasks at 0% or 100% give no learning signal.
  4. Match your trainer. If you train with TRL or verl, OpenEnv integrations save glue code. If you use prime-rl, verifiers environments plug in directly. On NeMo, use NeMo Gym.
  5. Check contamination. Gyms built from public repos or benchmarks may overlap with pretraining data. OpenAI stopped reporting SWE-bench Verified in February 2026 for this and other reasons.
  6. Read the license, including the data. Code licenses do not always cover bundled datasets, Docker images or the websites a replica copies.
  7. Price the compute, not just the gym. Mechanize estimates about $2,400 of compute is spent per task during RL training, per Epoch. A free gym with broken tasks is not free.

Common questions

What is an RL gym?

Originally, an RL gym was an environment that follows the OpenAI Gym API, like CartPole or an Atari game. Today the term also covers training environments for LLM agents, such as replicas of websites and enterprise apps.

Is OpenAI Gym still maintained?

No. The openai/gym repository on GitHub is archived, and the Farama Foundation maintains Gymnasium as its successor. New projects should import gymnasium.

What is the difference between Gym and Gymnasium?

Gymnasium is the maintained fork of Gym under the Farama Foundation, MIT licensed. Its step() returns five values, splitting the old done flag into terminated and truncated, and reset() returns an observation plus an info dict.

What is a UI gym?

SemiAnalysis uses the term for mocked replicas of real websites, such as DoorDash or Uber Eats clones, used to train browser and computer-use agents. It reported in January 2026 that these often cost about $20,000 per site.

Can I use Gymnasium to train an LLM agent?

You can wrap an LLM task in the Gymnasium API, but most LLM tooling uses libraries built for text and tool calls, such as OpenEnv, Prime Intellect verifiers or NVIDIA NeMo Gym. They keep the reset and step idea and add tool schemas, rubrics and containers.

Are there open-source RL gyms for LLM agents?

Yes. SWE-Gym, BrowserGym, OSWorld, tau-bench, NeMo Gym, OpenEnv and the Prime Intellect Environments Hub are all public. Licenses differ, so check each repository.

What does an RL gym cost?

Classic and research gyms are free. Commercial gyms for LLM agents are priced privately: Epoch AI reported $200 to $2,000 per task, about $20,000 per website replica and about $300,000 for a Slack-class replica in January 2026.

Sources

  1. Brockman et al.: OpenAI Gym, arXiv:1606.01540 (2016)
  2. openai/gym repository (archived; checked 2026-11-09)
  3. Farama Foundation: Gymnasium repository and README (MIT; checked 2026-11-09)
  4. Towers et al.: Gymnasium, arXiv:2407.17032
  5. Hugging Face: Introducing OpenEnv (2025-10-23)
  6. NVIDIA NeMo Gym documentation
  7. Prime Intellect: verifiers repository (MIT)
  8. Prime Intellect: Environments Hub launch (2025-08-27)
  9. SemiAnalysis: RL environments and RL for science (2026-01-06)
  10. Epoch AI: An FAQ on RL environments (2026-01-12)
  11. TechCrunch: Silicon Valley bets big on environments to train AI agents (2025-09-21)
  12. Pan et al.: SWE-Gym, arXiv:2412.21139 (2024)
  13. Le Sellier De Chezelles et al.: BrowserGym, arXiv:2412.05467 (2024)
  14. Fortune: Deeptune raises $43M Series A led by a16z (2026-03-19)
  15. Turing: building production-ready RL gyms for commercial agent workflows (case study, 2026)