Farama-Foundation/Gymnasium

A standard API for single-agent reinforcement learning environments, with popular reference environments and related utilities (formerly Gym)

View on GitHub ↗Jump to charts ↓Open shareable report →

Data as of . Signed-in members get hourly updates — create a free account.

Summary Information

Updated 1 hour ago
Added to GitGenius on September 29th, 2024
Created on September 8th, 2022
Open Issues & Pull Requests: 110 (+1)
GitHub issues: Enabled
Number of forks: 1,500
Total Stargazers: 12,638 (+1)
Total Subscribers: 66 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 14.4 hours
Mean response time: 58.7 days
90th percentile: 189.8 days
Tracked items: 273

How this project is maintained

About 12% of issues opened in the past year have never received a reply. 75% of open issues come from outside the core team, so the backlog reflects real-world use rather than internal planning. 71% of issues opened in the past year have been closed, leaving a working backlog. Three people close 75% of everything that gets resolved.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 66
New in 7 days: 8
Closed in 7 days: 7
Avg open age: 539 days
Stale 30+ days: 52
Stale 90+ days: 48

Recent activity

Opened in 7 days: 4
Closed in 7 days: 5
Comments in 7 days: 7
Events in 7 days: 18

Top labels

  • bug (256)
  • question (150)
  • enhancement (123)
  • good first issue (10)
  • help wanted (10)
  • before-1.0 (3)
  • Not Human (1)
  • documentation (1)

Most active issues this week

Sign in to see which issues are moving.
Sign in

Detailed Description

Gymnasium is an open source Python library that provides a standard API for developing and comparing reinforcement learning algorithms. It serves as the maintained successor to OpenAI's original Gym library, with the Farama Foundation taking over stewardship after OpenAI handed off maintenance responsibilities. The library establishes a unified interface for communication between learning algorithms and environments, enabling researchers and practitioners to build, test, and benchmark RL solutions consistently.

The repository includes multiple families of built-in environments spanning different complexity levels and problem domains. Classic Control environments address real-world physics problems, while Box2D environments provide toy games using physics simulation and PyGame rendering. Toy Text environments offer simple discrete state and action spaces suitable for algorithm debugging. MuJoCo environments deliver more complex multi-joint control tasks using advanced physics simulation. The Atari family provides emulated 2600 ROM games with high complexity ranges, and third-party environments extend the ecosystem further for specialized use cases. Installation is flexible, allowing users to install the base library or specific environment families as needed, with support for Python 3.10 through 3.14 on Linux and macOS.

The API models environments as simple Python classes with straightforward interaction patterns. Gymnasium maintains strict versioning for all environments using suffixes like "-v0" to ensure reproducibility, incrementing version numbers when changes might impact learning results. This versioning discipline was inherited from the original Gym library and remains central to the project's design philosophy.

The repository's contributor network overlaps with major projects including Microsoft's VSCode and TypeScript implementations as well as the Rust language project, suggesting broad influence across the development ecosystem.

The Farama Foundation maintains a complementary ecosystem of related libraries built on the Gymnasium API, including PettingZoo for multi-agent reinforcement learning and CleanRL for reference implementations. The project actively welcomes community contributions and provides detailed contribution guidelines. Users can support development through GitHub Sponsors, and the project has published an associated research paper for citation purposes. The library's comprehensive documentation is available at gymnasium.farama.org, with community coordination occurring through a public Discord server.