A differentiable physics engine written in JAX.
Maintained. Last release 9 months ago, commits in 10 of the last 26 weeks. Weaker on issue handling.
pip install brax
WARNING Only
brax/trainingis actively being maintained as of 0.13.0. Instead ofbrax/envs, users should use MuJoCo Playground, all of which train well withbrax/training. If you want to use Brax for physics simulation, please use MJX available at github.com/google-deepmind/mujoco (pip install mujoco_mjx) or MuJoCo Warp rather than Brax as a wrapper to MuJoCo physics simulation. We may repurposebraxpurely as an RL library in the future.
Brax is a fast and fully differentiable physics engine used for research and development of robotics, human perception, materials science, reinforcement learning, and other simulation-heavy applications.
Brax is written in JAX and is designed for use on acceleration hardware. It is both efficient for single-device simulation, and scalable to massively parallel simulation on multiple devices, without the need for pesky datacenters.




Brax simulates environments at millions of physics steps per second on TPU, and includes a suite of learning algorithms that train agents in seconds to minutes:
- Baseline learning algorithms such as PPO, SAC, ARS, and evolutionary strategies.
- Learning algorithms that leverage the differentiability of the simulator, such as analytic policy gradients.