OpenAI open-sources mujoco-py, a high-performance Python library for robotic simulation using the MuJoCo engine, featuring ~40x speedup with headless GPU rendering and VR interaction support.
We’re open-sourcing a high-performance Python library for robotic simulation using the MuJoCo engine, developed over our past year of robotics research.
# Faster physics in Python
Source: [https://openai.com/index/faster-physics-in-python/](https://openai.com/index/faster-physics-in-python/)
OpenAIWe’re open\-sourcing a high\-performance Python library for robotic simulation using the MuJoCo engine, developed over our past year of robotics research\.

We use the[domain randomization\(opens in a new window\)](https://arxiv.org/abs/1703.06907)technique across many projects at OpenAI\. The latest version of mujoco\-py supports headless GPU rendering; this yields a speedup of ~40x compared to CPU\-based rendering, letting us generate hundreds of frames per second of synthetic image data\. In the above \(slowed down\) animation we use this to vary the textures of one of our robots, which helps it identify its body when we transfer it from the simulator to reality\. Check out[examples/disco\_fetch\.py\(opens in a new window\)](https://github.com/openai/mujoco-py/blob/master/examples/disco_fetch.py)for an example of randomized texture generation\.
The API exposed by mujoco\-py is sufficient to enable Virtual Reality interaction without any extra C\+\+ code\. We ported MuJoCo’s[C\+\+ VR example\(opens in a new window\)](https://www.mujoco.org/book/programming.html#saVive)to Python using mujoco\-py\. If you have an HTC Vive VR setup, you can give try it using[this example\(opens in a new window\)](https://github.com/openai/mujoco-py/blob/master/examples/mjvive.py)\(this support is considered experimental, but we’ve been using it internally for a while\)\.
The simplest way to get started with mujoco\-py is with the[MjSim class\(opens in a new window\)](https://github.com/openai/mujoco-py/blob/master/mujoco_py/mjsim.pyx)\. It is a wrapper around the simulation model and data, and lets you to easily step the simulation and render images from camera sensors\. Here’s a simple example:
This paper presents MuJoCo-Drones-Gym, a GPU-accelerated multi-drone simulator built on MuJoCo that supports flexible physics models, action interfaces, and observation spaces for reinforcement learning and control research.
LavenderSim is a Python-first robotics simulation engine with a C++ core and web visualization, built almost entirely by GPT-5.6 Sol. It allows defining environments in Python without XML.
Alloy is an open-source multi-material physics engine for robot learning that unifies rigid bodies, cloth, cables, liquids, granular media, and soft bodies in a single scene, running in parallel on GPU or CPU and built on Newton, MuJoCoWarp, and Warp. It is designed to be driven by coding agents via MCP, and was used to train walking, cable-handling, and pouring policies on a single GPU.