A complete MJCF lifecycle and trial orchestration suite for MuJoCo, powered by Pydantic v2.
MuJoCo Mojo bridges the gap between static XML modeling and large-scale simulation research. It provides a strongly-typed bridge for building models and a robust execution engine for running them at scale.
- Model: Build MJCFs via validated Python objects allowing for programatic generation.
- Scale: Execute multi-threaded Monte Carlo trials with built-in resume logic.
- Monitor: Track progress via a zero-dependency web dashboard and persistent logs.
- Assess: Quickly view interactive results of a trial in context of others.
- Reproduce: Automatic environment snapshotting (
requirements.txt) for every job.
Installation
Install using uv (recommended):
uv add mujoco-mojo[all]
or with pip:
pip install mujoco-mojo[all]
Features
MJCF Tools
- Strongly-Typed Elements: MJCF components backed by Pydantic v2 for immediate validation.
- Semantic Validation: Early detection of structural errors and attribute mismatches before the engine starts.
- MuJoCo Alignment: Designed to mirror MuJoCo’s XML schema closely (no magic abstractions)
- Object Enumerations: Embedded MuJoCo object mappings to simplify retrieving
mjOBJIDs. - Asset Sharing: Specialized handling of dependency by remapping assets to become shared allows for space efficient execution of complex models
Runtime Toolkit
- Forcing Functions: A library of typed
Loaddefinitions (spring-dampers, point-to-point forces, friction, and more) that apply themselves including reaction forces. - Proximity Sensing: Built-in distance and closest-point tracking between sites and bodies, exposed as both telemetry signals and live overlays with no extra instrumentation. Works on concave geometry meshes.
- Structured Telemetry: A single
post/trackcall records any value into a hierarchical namespace during simulations. This include prebuiltrequestcalls for commonly desired values. - Video Recording: Multi-camera MP4/WebM/GIF capture synced to simulation time, with playback-speed control, force/proximity overlays, on-frame labels, and single-frame snapshots.
Job Utilities
Campaign Orchestration
- Multi-Threaded Execution: Single or multi-threaded trial execution
- Environment Snapshotting: Automatically record installed Python packages to
requirements.txtfor job recreation (works withuvorpip) - Resume Logic: Resume a previously started job without rerunning previous cases
- Robust Logging: Built in Rich logging for terminal and a rotating file handler for persistent logs and status files for insight on trial progress
- Global Overrides: Force specific values onto distributions via CLI or JSON overrides to test "golden" cases.
Monte Carlo
- Reproducible Sampling: Random draw tools for Monte Carlo or rerun with global variable override
- End of run summary with metric to help perform a state of health check
- Support for running jobs with SLURM for distributed compute
Optimization
- Bayesian Search: Intelligent design space navigation powered by Optuna integration.
- Design Variables: Continuous (
DesignFloat) and discrete (DesignCategorical) parameters evolved by the solver. - Adaptive Refinement: "Zoom" into promising neighborhoods by aggressively shrinking search bounds on resume.
- Stochastic Robustness: Multi-evaluation trials that average scores over different seeds to filter out noisy physics outliers.
Dojo Dashboard
A zero-dependency, offline-first web suite for monitoring and analyzing your simulation jobs in real-time.
Monitor: Real-Time Oversight
- Live Progress Tracking: Dynamic progress bars and color-coded status cards provide a high-level view of your Monte Carlo runs.
- Success/Failure Analytics: Automatic categorization of trials with built-in data integrity checks to identify "empty" vs. "failed" runs.
- Sensory Feedback: Optional audio cues and visual celebrations let you know exactly when a multi-hour job hits 100%.
- Deep-Linked Navigation: Jump straight from the monitor to any individual trial in the viewer with one click.
Mosaic: Advanced Telemetry Analysis
- High-Fidelity Plotting: Hardware-accelerated visualization using Plotly.js for seamless zooming and panning through millions of data points.
- Dynamic Versus Mode: Overlay current telemetry against previous trials using an intuitive range-selection slider for instant regression testing.
- Regex-Powered Filtering: Navigate high-dimensional datasets using a "folder-style" signal selector with suffix and regex support.
- State Persistence & Sharing: Every view is captured in a shareable, compressed URL by pasting a link to share your exact configuration.
- Pro-Grade Tooling: Built-in JSON configuration editor, drag-and-drop config restoration, and multi-format exports (SVG, PNG, CSV).
- Keyboard-First Design: Full hotkey support for warping between trials and managing views without leaving the home row.
Reloaded
A rapid prototyping loop that allows you to modify physics logic and model architecture on the fly without ever closing the visualizer.
- Module Hot-Reloading: Recursively reloads local Python modules and MJCF logic, allowing code changes to propagate instantly to the active simulation.
- Unified Visualizer Bridge: Synchronized visualization of custom force and torque vectors across the viewer (the classic OpenGL window, MuJoCo Studio, or Studio in a browser) and video recordings.
- Terminal UI: Drive the reload/sync pipeline from a terminal UI with clickable settings, command completion, and a log of every run.
- Interactive Prototyping: A developer-centric command loop to toggle playback speeds, repeat last commands, watch for file changes and auto-reload, switch telemetry recording on or off mid-session, or trigger "generation-only" mode for rapid MJCF debugging.
- Live Session Controls: Adjust the seed and trial number on the fly with
seed <N>andtrial <N>, without restarting the loop. - Asset Persistence: Automatically dumps current MJCF snapshots and model configurations to a workspace directory for post-hoc analysis or version tracking.
Metadata
Release files for mujoco-mojo 2.8.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mujoco_mojo-2.8.0.tar.gz | 9.5 MB | Without provenance | Details for mujoco_mojo-2.8.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mujoco_mojo-2.8.0-py3-none-any.whl | Python 3 | none | any | Details for mujoco_mojo-2.8.0-py3-none-any.whl |
Total release size: 11.9 MB
Release files / mujoco_mojo-2.8.0.tar.gz
| Download URL | mujoco_mojo-2.8.0.tar.gz |
|---|---|
| Size | 9.5 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d909dfcb27abf2a557ec6ed4ff2cab3fad815ccb92937f573d47ac3737e2a2d7
|
|
BLAKE2b-256 checksum How to use checksums |
c9cb1bc0b2c154db8961766c5de445f0eab066c5051f8e4530c765c9b9b55b98
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / mujoco_mojo-2.8.0-py3-none-any.whl
| Download URL | mujoco_mojo-2.8.0-py3-none-any.whl |
|---|---|
| Size | 2.4 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
118060ce9f8e8d21d2edd123209f4dd083affb521bf372d767604bf64f6894a2
|
|
BLAKE2b-256 checksum How to use checksums |
691ed3f3b67cf54a40fdb363c7ad15debcf34bace828b21bd8ede3740946b6fa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for mujoco-mojo 2.8.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.