RL environment
An RL environment is a simulated task, such as a website, codebase or game, in which an AI agent can act, be scored on the result and learn from that reward.
In reinforcement learning the environment is the world the agent acts in. At each step the agent sees an observation, chooses an action, and the environment replies with a new observation and a reward. The loop repeats until the episode ends, either because the task is finished or failed or because a time limit is hit. In the textbook CartPole example, the environment is a pole balanced on a moving cart and the agent earns a reward for every step the pole stays upright.
A shared interface made this practical for research. OpenAI released Gym in April 2016 as a toolkit of benchmark problems that all used the same programming interface, so one algorithm could be tested on many tasks. That interface continues in Gymnasium, maintained by the Farama Foundation, where a reset call starts an episode and a step call takes an action and returns the observation, the reward and whether the episode is over.
For AI agents the environments now look like ordinary software. A TechCrunch report in September 2025 described one that simulates a Chrome browser in which an agent tries to buy a pair of socks on Amazon, and is rewarded when it succeeds. Others target particular kinds of work: the startup Mechanize was building environments for AI coding agents, and the data-labelling firm Mercor was pitching environments for coding, healthcare and law.
The same report said leading labs were building environments in-house and looking to outside suppliers, citing The Information's report that Anthropic leaders had discussed spending more than $1 billion on RL environments over the following year. Prime Intellect launched a hub for sharing environments, and data-labelling companies including Surge and Scale AI were also building them.
The difficulty is building environments that cannot be gamed. If the scoring has a loophole, the agent will find it rather than learn the task, which is reward hacking. Training general agents this way can also cost more compute than earlier methods. In practice, an RL environment is to agent training what a dataset is to pre-training: the quality of the tasks and the honesty of the scoring set the ceiling on what the agent learns.
It is a simulated setting where an AI agent can take actions and receive rewards, such as a game, a robot simulator, a mock website or a codebase with tests. The agent improves by repeating tasks there and learning which actions earn reward. Training agents to carry out multistep tasks in software needs many realistic practice tasks with reliable scoring, and these are slow to build. In 2025 labs built their own and also turned to startups and data-labelling firms to supply them. It is an informal name for an RL environment or a collection of them, borrowed from OpenAI Gym, the 2016 toolkit that gave reinforcement learning tasks a common interface. A benchmark measures how well a finished model performs. An RL environment supplies rewards during training so the model can learn. The same simulated task can serve as both, but a model trained on a task can no longer be fairly tested on it.Common questions
What is an RL environment?
Why are AI labs paying for RL environments?
What is an RL gym?
What is the difference between an RL environment and a benchmark?
Search for "RL environments", "reinforcement learning environments for agents", "OpenAI Gym" or "Gymnasium API" to understand both the classic idea and the 2025 market for agent training tasks. Reliable sources include the Gymnasium documentation and research papers on arXiv for how environments work, and technology news outlets for the commercial side. Treat spending figures reported from anonymous sources as reports rather than confirmed facts, and check whether companies have confirmed them.Finding more
Working out what this means for your business?
Aileron Shift builds the systems behind this site: AI newsrooms that research, write and publish on their own, marketing automation and WordPress hosting for companies that need to move faster than their competitors.