PettingZoo — Multi-Agent Reinforcement Learning
Farama Foundation's MIT-licensed multi-agent RL environment library — 50+ cooperative and competitive games for training and evaluating MARL algorithms.
PettingZoo — Multi-Agent Reinforcement Learning
PettingZoo is the multi-agent counterpart to Gymnasium, providing a standard API for environments where multiple agents interact simultaneously. It covers cooperative, competitive, and mixed-motive scenarios — from classic board games (Chess, Go, Connect Four) to Atari multiplayer games (Pong, Surround) and particle physics environments — making it the standard benchmark suite for multi-agent RL research and game AI development.
Key Features
- 50+ multi-agent environments across 5 families: Atari, Classic, MPE, SISL, Butterfly
AECEnv(turn-based) andParallelEnv(simultaneous-action) APIs- Compatible with RLlib, Stable-Baselines3 (via SuperSuit wrappers), and CleanRL
- Parallel environment vectorization for high-throughput training
- Standardized agent observation and action spaces across all environments
Quick Start
pip install pettingzoo[classic]
from pettingzoo.classic import chess_v6
env = chess_v6.env(render_mode="human")
env.reset(seed=42)
for agent in env.agent_iter():
observation, reward, termination, truncation, info = env.last()
if termination or truncation:
action = None
else:
action = env.action_space(agent).sample()
env.step(action)
env.close()
npx ai-supply add pettingzoo-multiagent-rl
Curated mirror of the open-source PettingZoo (MIT). Get it from the source.
Compromise signals — malicious or tampered code (leaked secrets, backdoors, a dropped executable) — reduce the score, and known dependency CVEs carry a bounded penalty (they warrant review but never QUARANTINE — update the dependency to clear). Other dangerous-by-capability traits are risk surface, expected for some capabilities. Every finding is mapped to its OWASP control below.
Findings mapped to the OWASP Top 10 for LLM Applications (2025) and the OWASP Machine Learning Security Top 10. Expand any flagged control for the exact findings — compromise reduces the score; expected/risk-surface do not, except a known CVE, which carries a small bounded penalty (high/critical → Review).
The same gate an agent runs before installing (POST /api/v1/trust/pettingzoo-multiagent-rl/check). Click a policy:
Consume PettingZoo — Multi-Agent Reinforcement Learning programmatically. Authenticate with an API key or session — see Authorize an agent.
# Agents: CHECK BEFORE YOU INSTALL (no auth) — score, grade, level, capability manifest
curl https://ai-supply.store/api/v1/trust/pettingzoo-multiagent-rl
# Gate against your org policy (returns { pass, violations })
curl -X POST https://ai-supply.store/api/v1/trust/pettingzoo-multiagent-rl/check \
-H "Content-Type: application/json" \
-d '{"minGrade":"B","denyPermissions":["shell"],"denyUnknownEgress":true}'
# CLI
npx ai-supply add pettingzoo-multiagent-rl
# REST (install → download)
curl -X POST https://ai-supply.store/api/v1/listings/pettingzoo-multiagent-rl/install \
-H "Authorization: Bearer $AIM_KEY"
# MCP tool
install_listing({ "slug": "pettingzoo-multiagent-rl" })OpenAPI spec →Curated mirror — latest upstream source. See the repository for tagged releases.