OpenAI Gym
Test, deploy, and optimize AI models with custom and pre-built environments.
Test, deploy, and optimize AI models with custom and pre-built environments.

Pre-built environments
Ready-to-use test spaces including CartPole, MountainCar, Atari games, and robotic control problems
Custom environment creation
Build your own environments using the standard Gym interface for domain-specific problems
Standardised API
Consistent method signatures across all environments make it easy to swap between different test spaces
Integration with popular frameworks
Works with TensorFlow, PyTorch, and other machine learning libraries
Environment registry
Access a large collection of community-contributed environments beyond the official set
Observation and action space specifications
Clear definitions of what agents can perceive and do in each environment
Training reinforcement learning agents for game-playing and control tasks
Benchmarking different algorithm implementations against standard problems
Research into new learning strategies using reproducible test environments
Educational projects for learning reinforcement learning principles
Prototyping robotic control policies before deploying to physical hardware