farama-foundation/pettingzoo

A standard API for multi-agent reinforcement learning environments, with popular reference environments and related utilities

View on GitHub ↗Jump to charts ↓Open shareable report

Summary Information

Updated 45 minutes ago
Added to GitGenius on September 19th, 2026
Created on January 20th, 2020
Open Issues & Pull Requests: 32 (+0)
GitHub issues: Enabled
Number of forks: 528
Total Stargazers: 3,522 (+0)
Total Subscribers: 15 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 2.2 days
Mean response time: 71.4 days
90th percentile: 248.9 days
Tracked items: 105

Most active contributors

Sign in to see contributor activity.

How this project is maintained

About 12% of issues opened in the past year have never received a reply. Work labelled "bug" is answered fastest, typically in about 5 days, while "question" waits about 7 weeks. 74% of issues opened in the past year have been closed, leaving a working backlog. Three people close 83% of everything that gets resolved.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 17
New in 7 days: 0
Closed in 7 days: 2
Avg open age: 305 days
Stale 30+ days: 9
Stale 90+ days: 2

Recent activity

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

Top labels

  • bug (39)
  • enhancement (17)
  • question (16)
  • help wanted (5)
  • documentation (1)
  • good first issue (1)
  • in progress (1)
  • python (1)

Detailed Description

PettingZoo is a Python library for multi-agent reinforcement learning that provides a standard API for building and testing multi-agent environments.

The library addresses the fragmentation in multi-agent RL research by offering a unified interface modeled on the Agent Environment Cycle framework. This approach allows a single API to cleanly support diverse multi-agent scenarios—cooperative, competitive, and mixed-sum games—while minimizing common implementation bugs. The tool includes reference environments across multiple families: Atari multi-player games, cooperative graphical games called Butterfly, classical games including card and board games, and SISL environments for cooperative tasks.

Teams should adopt PettingZoo if they are conducting multi-agent RL research and want to avoid building custom environment infrastructure. The library suits projects ranging from algorithm development to curriculum learning and self-play training. The tool is designed as a multi-agent counterpart to Gymnasium, making it a natural choice for researchers already familiar with that ecosystem. Installation is flexible, allowing users to install only the dependencies needed for specific environment families rather than all at once.

Development activity shows consistent engagement with the research community. The project maintains active coordination through a public Discord server used for development planning. Documentation is comprehensive, including tutorials for environment creation, custom environment examples, and integration guides with popular training frameworks like CleanRL, Tianshou, and AgileRL. The maintainers officially support Linux and macOS while accepting Windows-related contributions without formal support commitments.