Sign in Get 3 free credits

Try a job or a niche: tiktok captions, study notes, excel formulas. Press Esc to close.

MuJoCo Studio viewer and plugins

Launches MuJoCo Studio viewers and writes Python or C++ plugins, so you can watch and steer your simulation live.

What we improved

Made SKILL.md carry the method instead of pointing at documentation. The original's long list of links to the official .rst pages (with Sphinx label names) is replaced by one line saying where the docs are, and the essentials from those pag

Improved by YourAISkill from the original by eust-w, under its Apache-2.0 licence. The download includes the author's licence and a CHANGES.md listing every change. Both Claude reviews read the improved version.

Claude's review

8/10 Detailed, version-pinned guide to the new MuJoCo Studio launchers, threads, messages, plugins and hot reload with working recipes; narrow audience.

We asked Claude the question you would ask: would I be glad I installed this? Two separate reviews, the second blind to the first, must both rate a skill 7 or higher before we sell it.

In detail

Builds and launches interactive MuJoCo Studio viewers and plugins in Python and C++, covering decoupled sim/viewer threads, Snapshot and Event messaging, lifecycle events, WebViewer browser streaming, and Python hot reload. Use only when launching MuJoCo Studio viewers (mujoco_studio.launch_web, launch_native, launch_passive, LaunchStudio) for a MuJoCo MjModel/MjData/MjSpec simulation, authoring MuJoCo Studio Python ViewerPlugin/SimPlugin or C++ RegisterPlugin (mjPLUGIN_LIB_INIT) extensions, synchronizing MuJoCo sim/viewer state (ViewerHandle.sync, @messages.handler), hot-reloading plugins/models (HotReloadEvent), configuring WebViewer WASM streaming, modifying Studio's built-in UI, WebViewer frontend/server, or camera/touch input controls, or debugging Studio logs. Don't use for non-MuJoCo simulations or generic web viewers/sidecars not using MuJoCo, Dear ImGui/ImPlot layout (mujoco-gui), core stepping (mujoco-python), or headless rendering (mujoco-rendering).

How you use it

  1. Add it to your pack, then download your pack (1 credit).
  2. In Claude, open Customize > Skills and upload the zip. Code execution needs to be on under Settings > Capabilities.
  3. Ask Claude for the job in your own words. It uses the skill when your request matches what it does. Step by step guide

Safety check

Nothing risky found: no hidden instructions, no download and run, no reading of saved passwords or keys.

An automated scan lowers risk but cannot promise zero risk. How we check skills

Preview

The first lines of SKILL.md
---
name: mujoco-studio
description: "Build, launch and extend MuJoCo Studio (the Dear ImGui and Filament successor to simulate and mujoco.viewer) from Python and C++: choosing NativeViewer, WebViewer or the standalone app, launch_web / launch_native / launch_passive in blocking .run and non-blocking .launch modes, the split sim and viewer threads, Snapshot versus Event messages, ViewerPlugin and SimPlugin lifecycle, custom stepping and controllers, Python-built scenes with UI, hot reload, safe remote WebViewer access, C++ plugins and Studio logs. Use when launching a Studio viewer for a MuJoCo model, writing Studio plugins or panels, syncing a training or control loop with a viewer (ViewerHandle.sync), hot-reloading plugins or models, or debugging Studio. Not for the legacy mujoco.viewer, headless offscreen rendering, or non-MuJoCo simulators."
metadata:
  publisher: google
---
<!-- Modified by YourAISkill (youraiskill.com) on 2 December 2026 from the original by eust-w. See CHANGES.md. -->

# MuJoCo Studio: Interactive Simulation, UI and Plugins

Studio replaces the legacy `simulate` app and `mujoco.viewer`: Dear ImGui and ImPlot for UI, Google Filament for rendering (OpenGL, Vulkan, WebGL, headless and software modes), browser streaming through `WebViewer`, and plugins in Python and C++. Its default interface (`studio_app.App`) is itself an ordinary plugin you can keep, extend or replace.

**Check first.** Studio is new: `python -c "import mujoco.studio"` must succeed, or the installed `mujoco` predates it (upgrade, or build from source). API names here were checked against the Studio docs and samples at MuJoCo commit `7b7fc90`; if one is missing in the user's version, read the installed `mujoco/studio/` source or the docs at `https://mujoco.readthedocs.io/en/latest/studio/` (`doc/studio/*.rst` in a checkout). Runnable samples: `python/mujoco/sample/studio/` in the MuJoCo repository.

## 1. Choose how to run it

| Need | Use |
|---|---|
| Look at a model, no code | `python -m mujoco.studio.viewer --model=m.xml`, the standalone app in each GitHub release, or drag a model onto live.mujoco.org |
| Studio drives the simulation, with your plugins | `launch_native.run(...)` (desktop window) or `launch_web.run(...)` (browser) |
| Attach a viewer to your own loop (RL training, replay, a test) | `launch_native.launch(...)` or `launch_web.launch(...)` as a context manager |
| Remote machine, container, no display or GPU | `launch_web` or `--gfx=web`: physics and headless ImGui run on the host, the browser renders |
| Pick web or native from `config.gfx` at runtime | `launch_passive` (delegates to `launch_web` when `gfx` is `'web'` or `'webgl'`) |
| Extend in C++, or run serverless in the browser (WASM) | the C++ app and `mujoco::studio::LaunchStudio` (section 7) |

```shell
python -m mujoco.studio.viewer --model=humanoid.xml                      # native window
python -m mujoco.studio.viewer --model=humanoid.xml --gfx=web            # browser
python -m mujoco.studio.viewer --model=humanoid.xml --plugins=my_plugin.py --hot_reload=all
```

Native backends (`ViewerConfig.gfx` or `--gfx`): `''` platform default, `'opengl'`, `'vulkan'`, `'opengl_headless'` (offscreen, for tests), `'opengl_software'` and `'vulkan_software'` (CI without a GPU). On Linux, direct window rendering needs X11; under Wayland `'opengl'` is rejected and the default falls back to `'opengl_headless'`.

**macOS:** blocking `launch_native.run` and the CLI work under plain `python`, but non-blocking `launch_native.launch` must be run with `mjpython` (AppKit windows need the main thread). `launch_web` works under plain `python` everywhere.

## 2. Threads: simulation and viewer are decoupled

```text
Simulation thread (caller)                      Viewer thread (or web client)
- owns the authoritative MjModel / MjData        - owns window, renderer, camera, vis options, perturb
...

From eust-w's repository, Apache-2.0 licence.

Related skills

  • Checked

    Zarr arrays in Python

    Stores large scientific arrays with Zarr 3 on disk or in the cloud, so reads stay quick and writes stay safe.

    by K-Dense-AI 59k
    8/101 credit
  • Checked

    Secret Leak Code Review

    Finds passwords and API keys that can leak into logs, traces and error reports through how your objects print.

    by getsentry 1.2k
    8/101 credit
  • Checked

    Python GPU Speedup

    Moves slow NumPy, pandas or scikit-learn code onto NVIDIA GPUs and checks the result is correct and truly faster.

    by K-Dense-AI 59k
    7/101 credit
  • Checked

    BED Interval File Handling

    Reads, sorts and converts genomic interval files without the off by one and chromosome name errors.

    by GPTomics 1.3k
    8/101 credit
  • Checked

    Python job scheduling

    Schedules Python functions with APScheduler, with cron jobs, persistence and misfire handling.

    by TerminalSkills 221
    7/101 credit
  • Checked

    Python Library Test Suites

    Builds pytest suites for Python libraries and finds tests that pass even when the code is broken.

    by wdm0006 121
    7/101 credit

Secure checkout

Credits

AUD

  1. 1Choose
  2. 2Pay on Square
  3. 3Credits added