Skip to content

Quick start

MujoVerse runs a shared MuJoCo scene inside Minecraft: Booster T2 and Unitree G1 run their original controllers at a 2 ms physics step and 50 Hz policy rate, and 33 robots from MuJoCo Menagerie and other sources are available as exhibits. Python drives them over a local WebSocket bridge, reading observations and every body pose at every step. Runs on macOS (Apple silicon), Linux x64 and Windows x64.

终端窗口
pip install minepilot # driving and observation; depends only on websockets
pip install "minepilot[numpy]" # plus reading recordings
pip install "minepilot[mcp]" # plus an MCP server for LLM agents

Python 3.10 or newer.

The first release still needs a Minecraft instance with the mods, either:

  • With a window: Minecraft Java 1.21.1 + Fabric Loader + Fabric API, plus the MujoCraft, MujoBots and MinePilot mods (see Install). Create a world with cheats enabled.
  • Headless: a Fabric 1.21.1 dedicated server with the same mods. Type the commands below into the server console; no game client or online player is needed.

Then run:

/mujobots spawn t2 # spawn a T2 (or g1, booster_k1, booster_t1, unitree_go1)
/minepilot bridge start # open the bridge, listening on 127.0.0.1 only

The bridge writes its port and a one-time token to <game dir>/minepilot/bridge.json (.minecraft for single player, the server folder for a server).

import sys
import time
from minepilot import Client
bridge_file = sys.argv[1] if len(sys.argv) > 1 else "minepilot/bridge.json"
with Client(bridge_file=bridge_file) as client:
robot = next(r for r in client.list_robots() if r["loaded"] and r["controlled_by"] == "none")
uuid = robot["uuid"]
client.claim(uuid)
client.subscribe(uuid, observation_hz=50)
start = time.monotonic()
while time.monotonic() - start < 3: # walk for 3 seconds
client.walk(uuid, vx=0.5) # each WALK lasts 0.5 s: keep refreshing
obs = client.next_observation(uuid, timeout=1)
print(robot["type"], "moved to", obs["root_position"], "at native step", obs["native_step"])
client.stop(uuid)
client.release(uuid)
终端窗口
python walk_forward.py ~/.minecraft/minepilot/bridge.json

Each WALK command expires after 0.5 s, so the script keeps refreshing it; disconnecting releases control and stops the robot immediately. A nearby player can take the robot over at any time, and you then receive a released event.