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

Summary Information

Updated 40 minutes ago
Added to GitGenius on September 29th, 2024
Created on September 8th, 2022
Open Issues & Pull Requests: 79 (+1)
Number of forks: 1,433
Total Stargazers: 12,393 (+1)
Total Subscribers: 63 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 15.0 hours
Mean response time: 59.9 days
90th percentile: 233.9 days
Tracked items: 252

How this project is maintained

Around half of the issues opened in the past year never receive a reply. 72% of open issues come from outside the core team, so the backlog reflects real-world use rather than internal planning. Work labelled "question" is answered fastest, typically in about 7 hours, while "enhancement" waits about 2 days. Only 8% of issues opened in the past year have been closed. Three people close 73% of everything that gets resolved.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 61
New in 7 days: 0
Closed in 7 days: 0
Avg open age: 617 days
Stale 30+ days: 58
Stale 90+ days: 52

Recent activity

Opened in 7 days: 0
Closed in 7 days: 0
Comments in 7 days: 0
Events in 7 days: 0

Top labels

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

Most active issues this week

No issue events were indexed in the last 7 days.

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.