mujoco breaking changes
Updated December 4, 2026
On this page
Latest version 4.1.0, released December 1, 2026. Source repository
Its 4.0.0 release drops Python 3.10. Python end of life dates.
- From 3.17.0 to 4.0.0: 52 breaking changes in 1 version.
- From 3.10.0 to 4.0.0: 225 breaking changes in 8 versions.
mujoco 4.0.0 breaking changes
- Removed
The Python bindings no longer support Python 3.10. Upgrade to a newer Python version. github.com - Removed
cable
Models using the cable plugin must migrate to 1D flexcomp with elasticity; the composite element is also gone. github.com - Removed
composite
Use 1D flexcomp with elasticity instead. github.com - Removed
flexvert
Use continuum elasticity with integrator discrete or edge equality for 2D cloth models. Using mjEQ_FLEXVERT now errors. github.com - Removed
implicit
Use integrator discrete for implicit integration, or Euler with a small timestep for explicit integration. github.com - Removed
mujoco.batch
mujoco.batch was removed in mujoco 4.0.0 pypi.org - Removed
mujoco.batch_test
mujoco.batch_test was removed in mujoco 4.0.0 pypi.org - Removed
mujoco.bindings_test
mujoco.bindings_test was removed in mujoco 4.0.0 pypi.org - Removed
mujoco.cgl
mujoco.cgl was removed in mujoco 4.0.0 pypi.org - Removed
mujoco.egl
mujoco.egl was removed in mujoco 4.0.0 pypi.org - Removed
mujoco.experimental
mujoco.experimental was removed in mujoco 4.0.0 pypi.org - Removed
mujoco.gil_test
mujoco.gil_test was removed in mujoco 4.0.0 pypi.org - Removed
mujoco.gl_context
mujoco.gl_context was removed in mujoco 4.0.0 pypi.org - Removed
mujoco.glfw
mujoco.glfw was removed in mujoco 4.0.0 pypi.org - Removed
mujoco.introspect
mujoco.introspect was removed in mujoco 4.0.0 pypi.org - Removed
mujoco.memory_leak_test
mujoco.memory_leak_test was removed in mujoco 4.0.0 pypi.org - Removed
mujoco.minimize
mujoco.minimize was removed in mujoco 4.0.0 pypi.org - Removed
mujoco.minimize_test
mujoco.minimize_test was removed in mujoco 4.0.0 pypi.org - Removed
mujoco.mjrf
mujoco.mjrf was removed in mujoco 4.0.0 pypi.org - Removed
mujoco.msh2obj
mujoco.msh2obj was removed in mujoco 4.0.0 pypi.org - Removed
mujoco.msh2obj_test
mujoco.msh2obj_test was removed in mujoco 4.0.0 pypi.org - Removed
mujoco.osmesa
mujoco.osmesa was removed in mujoco 4.0.0 pypi.org - Removed
mujoco.render_test
mujoco.render_test was removed in mujoco 4.0.0 pypi.org - Removed
mujoco.renderer
mujoco.renderer was removed in mujoco 4.0.0 pypi.org - Removed
mujoco.renderer_test
mujoco.renderer_test was removed in mujoco 4.0.0 pypi.org - Removed
mujoco.rendering
mujoco.rendering was removed in mujoco 4.0.0 pypi.org - Removed
mujoco.rollout
mujoco.rollout was removed in mujoco 4.0.0 pypi.org - Removed
mujoco.rollout_test
mujoco.rollout_test was removed in mujoco 4.0.0 pypi.org - Removed
mujoco.specs_test
mujoco.specs_test was removed in mujoco 4.0.0 pypi.org - Removed
mujoco.sysid
mujoco.sysid was removed in mujoco 4.0.0 pypi.org - Removed
mujoco.thread_safety_test
mujoco.thread_safety_test was removed in mujoco 4.0.0 pypi.org - Removed
mujoco.usd
mujoco.usd was removed in mujoco 4.0.0 pypi.org - Removed
mujoco.vfs_test
mujoco.vfs_test was removed in mujoco 4.0.0 pypi.org - Removed
mujoco.viewer
mujoco.viewer was removed in mujoco 4.0.0 pypi.org - Removed
mujoco.viewer_test
mujoco.viewer_test was removed in mujoco 4.0.0 pypi.org - Removed
record.cc
Use render with --duration and --fps for multi-frame video recording instead. github.com - Behavior changed
Height fields, fixed tendons, pulleys, cameras, skins and cone meshes that were invalid now fail to compile. Fix the model inputs listed in the migration note. github.com - Behavior changed
Volumetric interpolated flexes integrate stiffness and nodal mass over the mesh volume, changing results for meshes that do not fill their bounding box. github.com - Behavior changed
Contacts with flex elements now use barycentric weights, which changes the simulation of models with flex contacts. github.com - Behavior changed
Lights without intensity get a fallback scaled by diffuse brightness, so the brightest directional light now casts shadows. github.com - Behavior changed
actuatorfrcrange
Saturated joint and tendon actuators stop contributing implicit damping, so models with light links may need armature or a smaller timestep. github.com - Behavior changed
flex
Non-interpolated flexes now use the documented young, poisson and thickness values, so these models become stiffer. Remap parameters to keep previous behavior. github.com - Behavior changed
flexcomp
Open elastic 1D flexcomps create twist bodies and hinge joints, changing nq, nv, nbody and qpos indices. Update keyframes and code that indexes qpos, qvel or bodies by number. github.com - Behavior changed
include
Remove redundant include elements that reference the same file through different paths. github.com - Behavior changed
mj_setConst
mj_setConst now wakes sleeping trees and leaves cam_xpos, cam_xmat, light_xpos and light_xdir unchanged. github.com - Behavior changed
mjr_readPixels
Depth and segmentation renders skip post-processing, use the finite zfar plane, and mjr_readPixels respects readDepthMap. Geoms with segid 0 no longer render as background. github.com - Behavior changed
mjsPair.solref
Contact pairs with undefined solref now mix geom solref using solmix instead of taking the element-wise minimum. github.com - Behavior changed
RK4
Orientation integration of ball and free joints under RK4 changed, so simulations of such models with RK4 will differ. github.com - Behavior changed
sidesite
The tendon path through a side site now follows a homotopy rule, which can change existing models. Place side sites so endpoints do not cross the ray opposite the side site over the range of motion. github.com - Default changed
headlight.active
The default for headlight.active is now auto instead of true. Set it explicitly to keep the old behavior. github.com
And 2 more in this version. Sign up to see every change
mujoco 3.17.0 breaking changes
- Behavior changed
data.actuator('a').moment
data.actuator('a').moment is now a read-only dense copy of shape (nv,) or (outnum, nv) instead of the sparse array, so writes to it no longer work. github.com - Behavior changed
mesh_pathadr
Paths now hold the resolved path or URI the compiler read; code that prefixed these paths with its own directory should pass them to mju_openResource as is. github.com - Behavior changed
mj_setConst
Damping of position actuators, tendon spring lengths and model statistics are now resolved only at compile time; set the model fields directly when editing a compiled model. github.com - Behavior changed
mjModel.mesh_polynormal
Normals use the whole polygon outline instead of the first three vertices, so stored normal values change for existing meshes. github.com - Behavior changed
tex_adr
Single-file textures are no longer decoded into mjModel; tex_adr is -1 and the path is in tex_pathadr, so use mj_loadTexture to get pixels. github.com - Behavior changed
weld
For body-based welds without relpose, qpos0 is recomputed by mj_setConst after compilation; zero eq_data[11] before calling mj_setConst to set the pose directly. github.com - Behavior changed
young
Models that set young on 1D flexes now get bending elasticity, and may fail to compile if the cross-section is degenerate, a vertex joins a zero-length edge, or the rod is not straight. github.com - Signature changed
mjs_addTexture
Callers must pass a default class; use mjs_addTexture(spec, NULL) to keep the old behavior. MjSpec.add_texture is unchanged. github.com - Signature changed
mjs_discardVisual
It now returns the number of elements discarded, and -1 on error; MjSpec.discard_visual now returns the number instead of None. github.com - Signature changed
mjs_fuseStatic
It now returns the number of bodies fused, and -1 on error; test for an error with < 0 rather than != 0. MjSpec.fuse_static now returns the number instead of None. github.com
And 14 more in this version. Sign up to see every change
mujoco 3.16.0 breaking changes
- Removed
filament.msaa.enabled
Control anti-aliasing with visual/quality/offsamples; a value of 1 or less disables it. github.com - Removed
mjrf_DEBUG_drawImguiEditor
Debug ImGui scene editor removed from public API in mujoco 3.16.0 github.com - Removed
mjrf_setLightBlurWidth
Use PCSS shadows by setting filament.shadows.type to pcss. github.com - Removed
mjrf.Light.setBlurWidth
Use PCSS shadows by setting filament.shadows.type to pcss. github.com - Removed
mjrf.LightParams.vsm_blur_width
Use PCSS shadows by setting filament.shadows.type to pcss. github.com - Removed
mjrfLightParams.vsm_blur_width
Use PCSS shadows by setting filament.shadows.type to pcss. github.com - Renamed
filament.clearColor
Filament custom flags renamed in mujoco 3.16.0 github.com - Renamed
mjp_archiveResourceProviderCount
Resource provider functions renamed in mujoco 3.16.0 github.com - Renamed
mjp_defaultResourceProvider
Resource provider functions renamed in mujoco 3.16.0 github.com - Renamed
mjp_findArchiveResourceProvider
Resource provider functions renamed in mujoco 3.16.0 github.com
And 58 more in this version. Sign up to see every change
mujoco 3.15.0 breaking changes
- Removed
internal
The deprecated internal flex collision option and its evpair structures were removed. Code that sets or reads them will no longer work. github.com - Behavior changed
Archives written on Windows now use forward slashes. Code that expects backslash separators in archive paths must be updated. github.com - Behavior changed
Elastic flexes attached to mocap bodies now produce a compiler error. Models relying on this setup must be changed. github.com - Behavior changed
dampratio
The reflected inertia used by dampratio is now the operational-space inertia, so actuators on multi-link chains may get lower damping than before. Review tuned damping values. github.com - Signature changed
mujoco.msh2obj_test.MshTest
Was class MshTest(absltest.TestCase); now class MshTest(parameterized.TestCase). pypi.org - Signature changed
mujoco.rendering.filament.renderer.Renderer.target
Was def target(self, name: str, size: tuple[int, int], pixel_format=mjrf.PixelFormat.PIXEL_FORMAT_RGB8); now def target(self, name: str, buffer: BufferType, pixel_format=mjrf.PixelFormat.PIXEL_FORMAT_RGB8). pypi.org
mujoco 3.14.0 breaking changes
- Behavior changed
Frames are written with their pos and quat and frame-relative contents, so saved files differ from earlier releases. Code that parses or compares saved MJCF output may need updating. github.com - Behavior changed
mj_initCtrlHistory
mj_initCtrlHistory now expects nsample * actuator_ctrlnum[id] values, and history buffers store actuator_ctrlnum[id] values per sample. Code that fills these buffers must allocate and fill the larger size. github.com - Behavior changed
mj_rnePostConstraint
Force and torque sensors now register forces applied by spatial tendons, so sensor readings change for models with tendons. github.com - Behavior changed
mjd_inverseFD
The function now raises an error if sleeping is enabled instead of silently producing wrong derivatives. Code using it with sleeping on must disable sleeping first. github.com - Behavior changed
mjd_transitionFD
The function now raises an error if sleeping is enabled instead of silently producing wrong derivatives. Code using it with sleeping on must disable sleeping first. github.com - Behavior changed
mjs_setName
When mjs_setName fails on a duplicate name, the element's previous name is preserved rather than overwritten. Code relying on the overwritten name must be updated. github.com - Behavior changed
mjsElement.signature
The signature is now 0 whenever the spec was edited since its last compile, and equals mjModel.signature only after a successful mj_compile. Code comparing an uncompiled spec's signature to a value other than 0 must compile first. github.com - Behavior changed
mjWARN_INERTIA
The warning is now also raised by the implicitfast and damped-Euler integrators, and the implicit integrator raises it instead of a fatal error. Code that treats this warning as fatal or counts warnings may behave differently. github.com - Default changed
actuatorfrclimited
The default changed from false to auto, so actuatorfrcrange is now applied by default. Models that relied on the old default being ignored must set actuatorfrclimited explicitly. github.com - Signature changed
mj_readCtrl
The function now takes a result buffer of size actuator_ctrlnum[id] and returns const mjtNum*, which may be NULL. Callers must update their calls to pass the buffer and handle the return value. github.com
And 2 more in this version. Sign up to see every change
mujoco 3.13.0 breaking changes
- Behavior changed
The .mjz encoder now writes the root file as model.xml. Code that looks up the root file by its previous name inside an archive must be updated. github.com - Behavior changed
Materials with PBR parameters but no metallic texture now use a white fallback instead of black, which changes rendered appearance of scalar metallic values. github.com - Behavior changed
integrator
The implicit flex effective-metric special case with the CG solver is removed. Models with flex elasticity or passive flex contact under implicit or implicitfast now raise a runtime error; set integrator to discrete. github.com - Signature changed
mujoco.experimental.studio.messages.PerturbEvent
Was class PerturbEvent(Event); now class PerturbEvent(StateEvent). pypi.org - Signature changed
mujoco.experimental.studio.viewer_handle.ViewerHandle.__init__
Was def __init__(self, sim_endpoint: endpoints.SimEndpoint, *, plugins: list[Any] | None = None, is_alive_fn: IsAliveFn | None = None, shutdown_fn: ShutdownFn | None = None) -> None; now def __init__(self, sim_endpoint... pypi.org - Signature changed
mujoco.experimental.studio.viewer_handle.ViewerHandle.sync
Was def sync(self, model: mujoco.MjModel | None, data: mujoco.MjData | None, step_control: _sim.StepControl) -> tuple[mujoco.MjModel | None, mujoco.MjData | None, _sim.StepControl]; now def sync(self, model: mujoco.MjModel | None, data... pypi.org - Signature changed
mujoco.experimental.studio.web_viewer.WebViewer.__init__
Was def __init__(self, config: viewer_protocol.ViewerConfig, endpoint: endpoints.ViewerEndpoint, *, model: mujoco.MjModel | None = None, model_path: str = '', plugins: list[Any] | None = None, camera: mujoco.MjvCamera | None = None... pypi.org - Signature changed
mujoco.experimental.studio.web.web_server.WebServer.__init__
Was def __init__(self, http_sock: socket.socket, tcp_sock: socket.socket, static_files_dir: Optional[str] = None, mjb_data: Optional[bytes] = None, max_payload_size: int = 0, drop_queue: Optional[multiprocessing.queues.Queue[Any]] = None... pypi.org
Older versions
3 older versions, each with its first changes. Sign up to see every change
Show 3 older versions
mujoco 3.12.0 breaking changes
- Removed
Textures can now only be loaded from PNG and KTX files. Convert any custom binary textures to one of these formats. github.com - Removed
mjData.efm_L_colind
This field described a Cholesky factor sparsity that no longer exists. github.com
And 24 more in this version.
mujoco 3.11.0 breaking changes
- Removed
mjData.qM
The sparse ancestor-walk inertia matrix mjData.qM is gone. Use mjData.M, which stores the same matrix in CSR format. github.com - Removed
mjrVertexAttribute.bytes
The bytes field was removed from mjrVertexAttribute. Stop reading or setting it. github.com
And 27 more in this version.
mujoco 3.10.0 breaking changes
- Signature changed
mujoco.minimize.least_squares
Was def least_squares(x0: np.ndarray, residual: Callable[[np.ndarray], np.ndarray], bounds: Optional[Sequence[np.ndarray]] = None, jacobian: Optional[Callable[[np.ndarray, np.ndarray], np.ndarray]] = None, norm: Norm = Quadratic(), eps... pypi.org - Signature changed
mujoco.sysid.optimize
Was def optimize(initial_params: parameter.ParameterDict, residual_fn: Callable[..., Any], optimizer: Literal['scipy', 'mujoco', 'scipy_parallel_fd'] = 'mujoco', verbose: bool = True, **optimizer_kwargs) -> tuple[parameter.ParameterDict... pypi.org
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.