# Gymnasium

> The standard Python API for single-agent reinforcement learning environments, formerly OpenAI Gym

Source: https://talira.ai/catalog/gymnasium-zzeh3njn
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [ai / ml / reinforcement learning](https://talira.ai/categories/ai/ml/reinforcement-learning)
- Platforms: linux, macos, windows[^1]
- Licence: MIT[^2]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Backed by: [Farama Foundation](https://talira.ai/orgs/farama-foundation.md)

Gymnasium is an open source Python library for developing and comparing reinforcement learning algorithms: a standard API between learning algorithms and environments, and a standard set of environments that follow it. It's a fork of OpenAI's Gym by its maintainers, after OpenAI handed maintenance to an outside team, and is where Gym's future maintenance happens. Environments are Python `env` classes created with `gym.make`, and it ships families of reference environments: Classic Control, Box2D, Toy Text, MuJoCo and Atari, plus many third-party environments that follow the API. Environments written for older Gym versions run through the Shimmy compatibility layer. It's maintained by the Farama Foundation, which also makes [PettingZoo](https://talira.ai/catalog/pettingzoo-31a1gxaq.md) for multi-agent environments.

## Links

- Website: https://gymnasium.farama.org/
- GitHub: https://github.com/Farama-Foundation/Gymnasium

## Problems it solves

- a standard set of environments to benchmark my reinforcement learning algorithm
- the maintained replacement for OpenAI Gym
- train an agent on CartPole or MuJoCo tasks in Python

## Features

- a standard API between reinforcement learning algorithms and environments
- Classic Control, Box2D, Toy Text, MuJoCo and Atari reference environments
- runs older Gym environments through Shimmy
- optional dependency groups per environment family

## Limitations

- The base install leaves out each environment family's dependencies, some of which can be hard to install on certain systems.[^1]

## Trust

Overall: 0.73 out of 1.
Signals: maintenance 1.00, adoption 0.82, momentum 0.73, community 1.00, backing 0.30, extensibility 0.00.

- last commit today
- 106 commits in the last 90 days
- latest release v1.4.0 55 days ago
- 12.9k GitHub stars
- 661 contributors
- accepts sponsorship (Github)
- backed by Farama Foundation

## Alternatives

- [PettingZoo](https://talira.ai/catalog/pettingzoo-31a1gxaq.md): Python library of multi-agent reinforcement learning environments with a standard API, the multi-agent counterpart of Gymnasium.
- [Stable Baselines3](https://talira.ai/catalog/stable-baselines3-qsc1m7fr.md): Reliable reinforcement learning algorithms in PyTorch
- [Agent Lightning](https://talira.ai/catalog/agent-lightning-ct9367pe.md): Microsoft's lightweight reinforcement learning framework for training LLM agents inside their real harnesses
- [MuJoCo](https://talira.ai/catalog/mujoco-3mbzhptp.md): Fast physics engine for robotics, biomechanics and reinforcement learning research, with a C API and Python bindings

## Sources

[^1]: https://github.com/Farama-Foundation/Gymnasium/blob/main/README.md (checked 30 Nov 2026)
[^2]: https://github.com/Farama-Foundation/Gymnasium/blob/main/LICENSE (checked 30 Nov 2026)
