# PettingZoo

> Python library of multi-agent reinforcement learning environments with a standard API, the multi-agent counterpart of Gymnasium.

Source: https://talira.ai/catalog/pettingzoo-31a1gxaq
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)
- Licence: MIT[^1]
- Backed by: [Farama Foundation](https://talira.ai/orgs/farama-foundation.md)

PettingZoo is a Python library for multi-agent reinforcement learning research, made by the Farama Foundation as a multi-agent version of Gymnasium. It gives every environment one standard API, both turn-based (the agent environment cycle) and parallel, and ships families of reference environments: multi-player Atari 2600 games, cooperative Butterfly games, classic card and board games, and SISL's cooperative tasks. Each family's dependencies install as an extra (`pip install 'pettingzoo[atari]'`), and tutorials cover creating custom environments and training with common RL libraries. It's supported on Linux and macOS.

## Links

- Website: https://pettingzoo.farama.org/
- GitHub: https://github.com/Farama-Foundation/PettingZoo
- Docs: https://pettingzoo.farama.org/

## Problems it solves

- train several reinforcement learning agents that interact in the same environment
- find ready-made multi-agent environments to benchmark my RL algorithm
- wrap my own multi-agent simulation in a standard API so RL libraries can use it

## Features

- standard multi-agent environment API (AEC and parallel)
- multi-player Atari environments
- cooperative Butterfly games
- classic card and board games
- SISL cooperative environments
- custom environment tutorials

## Trust

Overall: 0.68 out of 1.
Signals: maintenance 1.00, adoption 0.71, momentum 0.50, community 0.89, backing 0.30, extensibility 0.00.

- last commit 6 days ago
- 60 commits in the last 90 days
- latest release 1.27.0 3 months ago
- 3.6k GitHub stars
- 164 contributors
- accepts sponsorship (Github)
- backed by Farama Foundation

## Alternatives

- [Gymnasium](https://talira.ai/catalog/gymnasium-zzeh3njn.md): The standard Python API for single-agent reinforcement learning environments, formerly OpenAI Gym
- [Agent Lightning](https://talira.ai/catalog/agent-lightning-ct9367pe.md): Microsoft's lightweight reinforcement learning framework for training LLM agents inside their real harnesses
- [Unity ML-Agents Toolkit](https://talira.ai/catalog/unity-ml-agents-toolkit-tk6bd28y.md): An open source toolkit that turns Unity scenes into environments for training game and simulation agents with reinforcement and imitation learning.
- [FinRL](https://talira.ai/catalog/finrl-scxcxhsm.md): Deep reinforcement learning framework for quantitative trading research
- [Stable Baselines3](https://talira.ai/catalog/stable-baselines3-qsc1m7fr.md): Reliable reinforcement learning algorithms in PyTorch

## Sources

[^1]: https://github.com/Farama-Foundation/PettingZoo/blob/master/LICENSE (checked 29 Nov 2026)
