Massively parallel rigidbody physics simulation on accelerator hardware.
Jupyter Notebook
3,247
176 commits
updated Oct 7, 2026
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:
Brax offers four distinct physics pipelines that are easy to swap:
These pipelines share the same API and can run side-by-side within the same simulation. This makes Brax well suited for experiments in transfer learning and closing the gap between simulation and the real world.
Explore Brax easily and quickly through a series of colab notebooks:
MJX physics simulator.To install Brax from pypi, install it with:
python3 -m venv env
source env/bin/activate
pip install --upgrade pip
pip install brax
You may also install from Conda or Mamba:
conda install -c conda-forge brax # s/conda/mamba for mamba
Alternatively, to install Brax from source, clone this repo, cd to it, and then:
python3 -m venv env
source env/bin/activate
pip install --upgrade pip
pip install -e .
To train a model:
learn
Training on NVidia GPU is supported, but you must first install CUDA, CuDNN, and JAX with GPU support.
For a deep dive into Brax's design and performance characteristics, please see our paper, Brax -- A Differentiable Physics Engine for Large Scale Rigid Body Simulation , which appeared in the Datasets and Benchmarks Track at NeurIPS 2021.
If you would like to reference Brax in a publication, please use:
@software{brax2021github,
author = {C. Daniel Freeman and Erik Frey and Anton Raichuk and Sertan Girgin and Igor Mordatch and Olivier Bachem},
title = {Brax - A Differentiable Physics Engine for Large Scale Rigid Body Simulation},
url = {http://github.com/google/brax},
version = {0.14.2},
year = {2021},
}
Brax has come a long way since its original publication. We offer gratitude and effusive praise to the following people:
Overall
Maintained
Code review
PyPI
Latest release
Releases this year
7,141 followers · starred Jun 2021
432 followers · starred Apr 2026
453 followers · starred Apr 2022
Massively parallel rigidbody physics simulation on accelerator hardware.
Jupyter Notebook
3,247
176 commits
updated Oct 7, 2026
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:
Brax offers four distinct physics pipelines that are easy to swap:
These pipelines share the same API and can run side-by-side within the same simulation. This makes Brax well suited for experiments in transfer learning and closing the gap between simulation and the real world.
Explore Brax easily and quickly through a series of colab notebooks:
MJX physics simulator.To install Brax from pypi, install it with:
python3 -m venv env
source env/bin/activate
pip install --upgrade pip
pip install brax
You may also install from Conda or Mamba:
conda install -c conda-forge brax # s/conda/mamba for mamba
Alternatively, to install Brax from source, clone this repo, cd to it, and then:
python3 -m venv env
source env/bin/activate
pip install --upgrade pip
pip install -e .
To train a model:
learn
Training on NVidia GPU is supported, but you must first install CUDA, CuDNN, and JAX with GPU support.
For a deep dive into Brax's design and performance characteristics, please see our paper, Brax -- A Differentiable Physics Engine for Large Scale Rigid Body Simulation , which appeared in the Datasets and Benchmarks Track at NeurIPS 2021.
If you would like to reference Brax in a publication, please use:
@software{brax2021github,
author = {C. Daniel Freeman and Erik Frey and Anton Raichuk and Sertan Girgin and Igor Mordatch and Olivier Bachem},
title = {Brax - A Differentiable Physics Engine for Large Scale Rigid Body Simulation},
url = {http://github.com/google/brax},
version = {0.14.2},
year = {2021},
}
Brax has come a long way since its original publication. We offer gratitude and effusive praise to the following people:
Overall
Maintained
Code review
PyPI
Latest release
Releases this year
7,141 followers · starred Jun 2021
432 followers · starred Apr 2026
453 followers · starred Apr 2022