Farama-Foundation/Gymnasium
A standard API for single-agent reinforcement learning environments, with popular reference environments and related utilities (formerly Gym)
What it solves
Researchers and developers of reinforcement learning often face incompatible interfaces between algorithms and environments, making it hard to share, reproduce, and compare results. Gymnasium fixes this by providing a single, well-defined API that both sides can rely on.
How it works
Gymnasium models environments as simple Python classes that expose a reset() and a step() method. You create an environment with gym.make(...), reset it to get an initial observation, then repeatedly call step(action) to get rewards and new observations until the episode ends. The library ships with many ready-made environments, including classic control tasks, Box2D games, Atari emulations, and MuJoCo physics simulations. It also enforces strict versioning (e.g., -v0, -v1) so that changes which could affect learning results are explicitly tracked and reproducible.
Who it's for
Anyone building or testing reinforcement learning algorithms—from beginners debugging their first implementation to researchers running large-scale experiments. It is also useful for educators, students, and hobbyists who want a consistent way to try out RL ideas.
Highlights
- Standard, minimal API that is easy to learn and use
- A wide variety of built-in environments (Atari, MuJoCo, Box2D, Toy Text, Classic Control)
- Support for third-party environments with version-compatibility helpers
- Strict environment versioning for reproducible research
- Active maintenance and community support (a fork of OpenAI Gym by the Farama Foundation)
Related
- Project
- Project
- Project
- Project
- Project