OpenAI Gym's foster home grew up and got a PhD
The de facto standard API for single-agent RL environments, maintained by the community that OpenAI handed it to.

What it does
Gymnasium is the continuation of OpenAI’s Gym: a Python API that lets reinforcement learning algorithms and environments talk to each other through a simple env.reset() / env.step() contract. It ships with reference environments spanning toy text problems, classic control, Box2D physics, MuJoCo robotics, and Atari 2600 emulation. Third-party environments plug into the same API.
The interesting bit
The Farama Foundation took over maintenance after OpenAI moved on, and rather than letting it rot, they formalized the interface with an arXiv paper and strict environment versioning (CartPole-v1, not just CartPole). That versioning is the boring part that keeps RL research reproducible — when an environment changes in ways that could alter learning curves, the version number ticks up.
Key highlights
- Standard
envclass interface:reset(),step(),close()withterminated/truncatedflags - Bundled environments from trivial debug toys (Toy Text) to MuJoCo multi-joint physics
- Atari support via ALE emulator; third-party ecosystem with compatibility shims
- Python 3.10–3.14 tested on Linux and macOS; Windows PRs accepted but not officially supported
- Companion ecosystem includes PettingZoo (multi-agent) and CleanRL (reference implementations)
Caveats
- No official Windows support
- Optional environment dependencies (Atari, MuJoCo, etc.) are split out and can be finicky to install;
gymnasium[all]pulls in “a massive number”
Verdict
If you’re doing single-agent RL in Python, you’re probably already using this or something built on it. If you’re not in RL, it’s a well-designed API contract worth studying — and otherwise not your concern.
Frequently asked
- What is Farama-Foundation/Gymnasium?
- The de facto standard API for single-agent RL environments, maintained by the community that OpenAI handed it to.
- Is Gymnasium open source?
- Yes — Farama-Foundation/Gymnasium is open source, released under the MIT license.
- What language is Gymnasium written in?
- Farama-Foundation/Gymnasium is primarily written in Python.
- How popular is Gymnasium?
- Farama-Foundation/Gymnasium has 12.2k stars on GitHub.
- Where can I find Gymnasium?
- Farama-Foundation/Gymnasium is on GitHub at https://github.com/Farama-Foundation/Gymnasium.