# LeRobot vs MuJoCo

> MuJoCo scores 77.1 (BB) to LeRobot's 57 (C) for robotics control. Prices, MCP, x402, uptime and agent notes side by side.

- Canonical: https://www.anchorterminal.com/compare/lerobot-vs-mujoco
- Markdown: https://www.anchorterminal.com/compare/lerobot-vs-mujoco.md (~4,100 tokens)
- Slim: https://www.anchorterminal.com/compare/lerobot-vs-mujoco.min.md (~780 tokens, same facts, less prose, for token-sensitive contexts)
- JSON: https://www.anchorterminal.com/compare/lerobot-vs-mujoco.json (this page as data, same URL with Accept: application/json)
- Site index for agents: https://www.anchorterminal.com/llms.txt (the key docs and every listing in one file, at most 16 MB, about 4 million tokens: https://www.anchorterminal.com/llms-full.txt)
- API: https://www.anchorterminal.com/api/v1/index.json
- MCP: https://www.anchorterminal.com/mcp (the whole catalogue as tools, no key)
- DNS: dig +short TXT <slug>.grade.anchorterminal.com (the grade as a DNS TXT record, for a sandbox with no HTTP where names still resolve; also top., best.<category>. and <a>.vs.<b>. under the zone, and the same under grade.letme.dev)
- Licence: CC BY 4.0, credit Anchor Terminal and link this page (https://www.anchorterminal.com/terms/#data)
- Updated: 2026-11-29

MuJoCo scores 77.1 (BB) on agent readiness against LeRobot's 57 (C), and leads in 5 of 7 scored categories. Both do robotics control.

- LeRobot: grade C, 57/100, rank #1021 of 1738. Markdown https://www.anchorterminal.com/tools/lerobot.md · JSON https://www.anchorterminal.com/api/v1/tools/lerobot.json
- MuJoCo: grade BB, 77.1/100, rank #93 of 1738. Markdown https://www.anchorterminal.com/tools/mujoco.md · JSON https://www.anchorterminal.com/api/v1/tools/mujoco.json
- Best robot models, SDKs, simulators and fleet APIs for AI agents: https://www.anchorterminal.com/best/robotics/index.md
- All 200 robotics comparisons: https://www.anchorterminal.com/compare/robotics/index.md

## Which one, for what

### LeRobot (C)

Good for: Labs, students and makers who train and run policies on SO-101 class arms and other supported robots, with simulation for testing.

Watch for: CVE-2026-25874, a critical unauthenticated deserialisation flaw in async inference through 0.6.1, and the HIL-SERL learner still unpickles gRPC messages on an insecure port

### MuJoCo (BB)

Good for: Training and testing robot control and learning policies in simulation, with no hardware.

Ahead on:
- Reliability, 77 against 43
- Schema & documentation, 83 against 76
- Agent ergonomics, 74 against 66
- Maintenance & community, 91 against 60

Also in its favour:
- Agent-ready, a grade of BB or better
- No incidents deducted, where LeRobot loses 8 points for them

Watch for: Simulation only, with no interface to a real robot, so a policy trained here needs separate hardware code


## Why the edge

### Reliability: MuJoCo +34

- LeRobot (43): Local-package reading, for the arms and simulators the SDK drives. It installs from an official PyPI package that requires Python 3.12 or later and lists 3.12 and 3.13 (20). Public workflows run fast, full, latest-dependency and benchmark tests and add quality and security scans, with 325 test files in the repository, but whether main passes wasn't readable because GitHub's pages are closed to our reader (15). Open crash and regression issues weren't readable for the same reason, so this line scores 0, which is our limit and not a finding about the project (0). Releases are numbered 0.x, breaking changes are written up in a backward compatibility page and deprecations print warnings, with no changelog file (8). The package is classified Alpha and says 0.7.0 (0). 20+15+0+8+0 = 43. A robot or a simulator is needed for most of what it does.
- MuJoCo (77): Scored as local software that drives no robot. Official PyPI packages (`mujoco`, `mujoco-core`) with Python 3.11 to 3.15 in the metadata, plus release binaries (20). A build workflow with a compiler matrix and 193 test files, but GitHub's pages refused us so we couldn't see whether main passes (15). Issue counts and reply times unread; the 4.0.0 release carried a sparse Cholesky bug that 4.0.1 fixed five days later with issue numbers cited in the changelog (12 of 25). Custom semantic versioning written down in VERSIONING.md, and each changelog version lists breaking API changes with migration notes (15). Version 4.0.1 and the Production/Stable classifier (15). 20+15+12+15+15 = 77.

### Maintenance & community: MuJoCo +31

- LeRobot (60): lerobot 0.7.0 on 5 November 2026, 24 days before this check (30). One release in the 90 days to 29 November, against three needed (0). 200 commits to main from 25 September to 27 November 2026 by 72 distinct authors, with the stale bot marking issues only after a year, but issues and review replies weren't readable (12 of 25, a partial reading). The official package is current, Python only (10). Actions pinned to commit SHAs, Dependabot for actions weekly and a lock file (8). 30+0+12+10+8 = 60.
- MuJoCo (91): mujoco 4.0.1 on PyPI on 11 November 2026, 18 days before this check (30). Seven releases in the 90 days to 29 November, 3.13.0 on 8 September to 4.0.1 (20). 1,234 commits in the clone in the last 90 days by many authors, and pull requests from outside contributors merged on the day of the check, but issue counts and reply times were unread (18 of 25). Current official packages for the engine, MJX and MuJoCo Warp (15). Workflows pin actions by commit, set a read-only token, and the core wheel depends only on numpy, with CI results unread (8 of 10). 30+20+18+15+8 = 91.

### Agent ergonomics: MuJoCo +8

- LeRobot (66): Framework reading, for a tool-calling agent that shells out to the commands or imports the package. The Robot interface is five calls and 22 commands cover find-port, calibrate, record, train, eval and rollout (18). Datasets can be sliced by episode, edited, merged and streamed, but observations carry camera frames that can't be sized down by a field list (14). Terminal faults exit non-zero after cleanup and the docs say what each situation does, and a missing --rename_map ends with a feature mismatch error the docs explain (14). A context manager disconnects on exit, ESC and /stop end a run and send_action returns what was sent, but there are no idempotency keys and no MCP annotations (12). Python only, and a robot needs a port, calibration and camera settings, with max_relative_target off by default (8). 18+14+14+12+8 = 66.
- MuJoCo (74): A library adds no tool definitions to context. The manual is large (the XML reference alone is about 11,000 lines), which the skill guides and named access offset (17 of 25). `data.body('name')` and `model.geom` named access, sensors you choose, and batch and rollout calls that return only the fields asked for (14 of 20). Irrecoverable engine errors become `mujoco.FatalError` and warnings are counted on `MjData`, but messages vary in how far they point to a fix (14 of 20). Stepping is deterministic, state can be saved and keyframes restored, and `mujoco.batch` results match a plain loop bit for bit at any thread count, so a failed rollout can be rerun (15 of 20). `pip install mujoco` works with defaults, and C, Python, Unity and WebAssembly are all official (14 of 15). 17+14+14+15+14 = 74.

### Schema & documentation: MuJoCo +7

- LeRobot (76): Framework reading. A typed Python API with an abstract Robot class, typed observation and action feature dictionaries, dataclass configs that become command-line flags, and reference pages for robots, motors, cameras, policies, datasets and processors (20). An llms.txt on huggingface.co/docs/lerobot lists a Markdown page per document, and the repository adds AGENT_GUIDE.md and AGENTS.md (10). The docs say which policy suits which hardware and data, size VRAM per policy and warn where a software hold doesn't guarantee a grip (16). Inputs are typed, though cameras and some options are JSON strings on the command line (11). Many runnable examples and tables of faults and what the robot does next, with no single error catalogue (12). Versions are tagged on PyPI, with no changelog file (7). 20+10+16+11+12+7 = 76.
- MuJoCo (83): The C headers type every call and the Python bindings follow them, with a Python chapter and a generated API reference. Type stubs were not confirmed in the wheel, and only the sysid subpackage ships py.typed (20 of 25). No llms.txt on mujoco.org or the docs host, but the docs ship as .rst inside the pip package and every page is on Read the Docs (7 of 10). doc/skills holds nine guides whose descriptions say what each covers and what not to use it for, and the API reference describes each function (16 of 20). MJCF is checked by a documented XML schema and enums name integrators, joints and solvers, though models and `mjSpec` calls take free-form values in places (12 of 15). Tutorial notebooks, samples and a documented error type, `mujoco.FatalError` (13 of 15). A dated changelog with migration notes (15). 20+7+16+12+13+15 = 83.

## Score by category

| Category | Weight | LeRobot | MuJoCo | Edge |
| --- | --- | --- | --- | --- |
| Reliability | 16% | 43 | 77 | MuJoCo +34 |
| Performance | 10%, pending | pending | pending | not scored in this run |
| Schema & documentation | 13% | 76 | 83 | MuJoCo +7 |
| Agent ergonomics | 13% | 66 | 74 | MuJoCo +8 |
| Security & auth | 14% | 63 | 64 | MuJoCo +1 |
| Payments & pricing | 10% | 90 | 90 | even |
| Task success | 10%, pending | pending | pending | not scored in this run |
| Maintenance & community | 7% | 60 | 91 | MuJoCo +31 |
| Transparency & trust | 7% | 66 | 66 | even |
| Negative events | ≤15 | -8 | 0 | |
| **Total** | | **57 · C** | **77.1 · BB** | |

## Facts side by side

| Fact | LeRobot | MuJoCo |
| --- | --- | --- |
| Kind | SDK + MCP | SDK + MCP |
| Vendor | Hugging Face | Google (DeepMind) |
| Hosted endpoint | no (local only) | no (local only) |
| Transports |  |  |
| Auth | None | None |
| Pricing | Free | Free |
| x402 | no | no |
| Licence | Apache-2.0 | Apache-2.0 |
| Tools exposed | 22 | none |
| Read-only variant documented | no | no |
| llms.txt | yes | no |
| Last release | 2026-11-05 | 2026-11-11 |
| Terms last updated | 2022-09-15 | no document linked |
| Privacy policy last updated | 2023-03-28 | no document linked |
| Customer content may train models | not found in the text | not read yet |
| Terms restrict automated access | not found in the text | not read yet |
| Terms restrict benchmarking | not found in the text | not read yet |
| Terms or service can change without notice | yes | not read yet |
| Arbitration or class-action waiver | not found in the text | not read yet |

## Verdicts

**LeRobot.** A Python library with 22 command-line tools that connects arms, records datasets, trains and runs policies, and evaluates them in simulation without a robot. Stopping and fault behaviour is documented. Step limits are off by default, the package is classified alpha, and a critical deserialisation flaw affected its remote inference through 0.6.1.

**MuJoCo.** A mature open-source physics engine with Python bindings that run with no robot, a dated changelog with migration notes, seven releases in 90 days and agent skill guides in the repository. It only simulates and drives no real robot, and 4.0.0 shipped a solver bug fixed five days later.

## Before you call either

### LeRobot

1. Pass --dataset.push_to_hub=False, or --dataset.private=true, to lerobot-record unless the user wants camera video on the Hub
2. Set --robot.max_relative_target (the reBot B601 guide shows 5.0 degrees) before a policy drives an arm, since the default is no cap
3. If remote inference is used outside a trusted LAN, use the TLS Zenoh configurations in examples/remote_inference/zenoh. Bare TCP doesn't authenticate peers
4. Without a robot, run lerobot-eval in simulation or load a LeRobotDataset, and treat recording, calibration and rollout as needing the user's hardware
5. Pin the lerobot version, require Python 3.12 or later, and pass --rename_map when camera names differ from the policy's

### MuJoCo

1. Install with `pip install mujoco`, or `pip install mujoco-core` for headless runs that need only numpy and no viewer or OpenGL
2. Load a model with `mujoco.MjModel.from_xml_path`, step with `mujoco.mj_step`, and read named fields through `data.body('name')` rather than by index
3. Read doc/skills in the package (`pathlib.Path(mujoco.__file__).parent / 'doc'`) before writing model or Python code
4. Catch `mujoco.FatalError` around loads and steps, since irrecoverable engine errors become Python exceptions
5. Pin the version in training and evaluation code, because results are not reproducible across releases
6. Use `mujoco.batch.Batch` or `mujoco.rollout` for many rollouts instead of a Python loop, and MJX or MuJoCo Warp only when a GPU is available

## Questions

### Which is better for AI agents, LeRobot or MuJoCo?

MuJoCo scores 77.1 (BB) on agent readiness against LeRobot's 57 (C), and leads in 5 of 7 scored categories.

### Are LeRobot and MuJoCo open source?

Yes. LeRobot is open source (Apache-2.0). MuJoCo is open source (Apache-2.0).


## For agents

- This comparison as JSON: https://www.anchorterminal.com/compare/lerobot-vs-mujoco.json, and with the fewest tokens: https://www.anchorterminal.com/compare/lerobot-vs-mujoco.min.md
- Over MCP at https://www.anchorterminal.com/mcp (no key): `compare_tools {"a": "lerobot", "b": "mujoco"}`. From a terminal: `anchor compare lerobot mujoco`
- Each listing in full: https://www.anchorterminal.com/api/v1/tools/lerobot.json and https://www.anchorterminal.com/api/v1/tools/mujoco.json

## Other comparisons with LeRobot or MuJoCo

- [Formant vs LeRobot](https://www.anchorterminal.com/compare/formant-vs-lerobot.md)
- [Formant vs MuJoCo](https://www.anchorterminal.com/compare/formant-vs-mujoco.md)
- [Gemini Robotics ER vs LeRobot](https://www.anchorterminal.com/compare/gemini-robotics-er-vs-lerobot.md)
- [InOrbit vs LeRobot](https://www.anchorterminal.com/compare/inorbit-vs-lerobot.md)
- [InOrbit vs MuJoCo](https://www.anchorterminal.com/compare/inorbit-vs-mujoco.md)
- [Kinova Kortex API vs LeRobot](https://www.anchorterminal.com/compare/kinova-kortex-vs-lerobot.md)
- [Kinova Kortex API vs MuJoCo](https://www.anchorterminal.com/compare/kinova-kortex-vs-mujoco.md)
- [LeRobot vs Franka libfranka](https://www.anchorterminal.com/compare/lerobot-vs-libfranka.md)
- [LeRobot vs Pollen Robotics Reachy SDK](https://www.anchorterminal.com/compare/lerobot-vs-reachy.md)
- [LeRobot vs ROS MCP Server](https://www.anchorterminal.com/compare/lerobot-vs-ros-mcp-server.md)
- [LeRobot vs Skydio Cloud API](https://www.anchorterminal.com/compare/lerobot-vs-skydio-cloud-api.md)
- [LeRobot vs Boston Dynamics Spot SDK](https://www.anchorterminal.com/compare/lerobot-vs-spot-sdk.md)
- [LeRobot vs Hello Robot Stretch Body](https://www.anchorterminal.com/compare/lerobot-vs-stretch-body.md)
- [LeRobot vs Unitree SDK2](https://www.anchorterminal.com/compare/lerobot-vs-unitree-sdk2.md)
- [LeRobot vs Universal Robots RTDE](https://www.anchorterminal.com/compare/lerobot-vs-universal-robots-rtde.md)
- [LeRobot vs Viam](https://www.anchorterminal.com/compare/lerobot-vs-viam.md)
- [Franka libfranka vs MuJoCo](https://www.anchorterminal.com/compare/libfranka-vs-mujoco.md)
- [MuJoCo vs ROS MCP Server](https://www.anchorterminal.com/compare/mujoco-vs-ros-mcp-server.md)
- [MuJoCo vs Skydio Cloud API](https://www.anchorterminal.com/compare/mujoco-vs-skydio-cloud-api.md)
- [MuJoCo vs Boston Dynamics Spot SDK](https://www.anchorterminal.com/compare/mujoco-vs-spot-sdk.md)
- [MuJoCo vs Unitree SDK2](https://www.anchorterminal.com/compare/mujoco-vs-unitree-sdk2.md)
- [MuJoCo vs Universal Robots RTDE](https://www.anchorterminal.com/compare/mujoco-vs-universal-robots-rtde.md)
- [Drake vs LeRobot](https://www.anchorterminal.com/compare/drake-vs-lerobot.md)
- [Drake vs MuJoCo](https://www.anchorterminal.com/compare/drake-vs-mujoco.md)
- [Gazebo vs LeRobot](https://www.anchorterminal.com/compare/gazebo-vs-lerobot.md)
- [Gazebo vs MuJoCo](https://www.anchorterminal.com/compare/gazebo-vs-mujoco.md)
- [Genesis World vs LeRobot](https://www.anchorterminal.com/compare/genesis-world-vs-lerobot.md)
- [Genesis World vs MuJoCo](https://www.anchorterminal.com/compare/genesis-world-vs-mujoco.md)
- [NVIDIA Isaac Lab vs LeRobot](https://www.anchorterminal.com/compare/isaac-lab-vs-lerobot.md)
- [NVIDIA Isaac Lab vs MuJoCo](https://www.anchorterminal.com/compare/isaac-lab-vs-mujoco.md)
- [MuJoCo vs Pollen Robotics Reachy SDK](https://www.anchorterminal.com/compare/mujoco-vs-reachy.md)
- [MuJoCo vs Hello Robot Stretch Body](https://www.anchorterminal.com/compare/mujoco-vs-stretch-body.md)
- [MuJoCo vs Viam](https://www.anchorterminal.com/compare/mujoco-vs-viam.md)
- [Gemini Robotics ER vs MuJoCo](https://www.anchorterminal.com/compare/gemini-robotics-er-vs-mujoco.md)
- [Foxglove vs LeRobot](https://www.anchorterminal.com/compare/foxglove-vs-lerobot.md)

---

Query this catalogue directly over MCP: https://www.anchorterminal.com/mcp (Streamable HTTP, no key). How: https://www.anchorterminal.com/agents/#mcp
