procgen — Procedural Game Environments for RL
OpenAI's MIT-licensed suite of 16 procedurally-generated 2D game environments for measuring generalization in reinforcement learning agents.
procgen — Procedural Game Environments for RL
procgen is OpenAI's suite of 16 fast procedurally-generated 2D game environments designed to benchmark generalization in reinforcement learning. Each environment — CoinRun, StarPilot, CaveFlyer, Dodgeball, Fruitbot, Chaser, Miner, Jumper, Leaper, Maze, BigFish, Heist, Climber, Plunder, Ninja, and BossFight — generates a virtually unlimited number of unique levels, making it impossible for agents to memorize solutions and forcing them to generalize.
Key Features
- 16 visually rich 2D game environments, each with unlimited procedural level generation
- Extremely fast C++ core: 5,000+ steps/second per environment
- Gymnasium-compatible API
- Configurable difficulty, number of training levels, and distribution shift between train/test
- Standard benchmark for measuring sample efficiency and generalization in RL research
Quick Start
pip install procgen
import gymnasium as gym
# Train on a fixed set of 200 levels, test on all levels
env = gym.make("procgen:procgen-coinrun-v0",
num_levels=200,
start_level=0,
distribution_mode="easy")
obs, info = env.reset()
for _ in range(1000):
action = env.action_space.sample()
obs, reward, terminated, truncated, info = env.step(action)
if terminated or truncated:
obs, info = env.reset()
env.close()
npx ai-supply add procgen-procedural-game-environments
Curated mirror of the open-source procgen (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/procgen-procedural-game-environments/check). Click a policy:
Consume procgen — Procedural Game Environments for RL 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/procgen-procedural-game-environments
# Gate against your org policy (returns { pass, violations })
curl -X POST https://ai-supply.store/api/v1/trust/procgen-procedural-game-environments/check \
-H "Content-Type: application/json" \
-d '{"minGrade":"B","denyPermissions":["shell"],"denyUnknownEgress":true}'
# CLI
npx ai-supply add procgen-procedural-game-environments
# REST (install → download)
curl -X POST https://ai-supply.store/api/v1/listings/procgen-procedural-game-environments/install \
-H "Authorization: Bearer $AIM_KEY"
# MCP tool
install_listing({ "slug": "procgen-procedural-game-environments" })OpenAPI spec →Curated mirror — latest upstream source. See the repository for tagged releases.