Work from a terminal
Install the CLI and sign in. Upload a dataset, import a run, train on your own runner and test in sim.
Prompt for your AI
Read https://mousemouse.ai/docs/from-a-terminal.md first. Install the lucen CLI, sign me in, and show me what is mine on the hub. Ask me before anything that costs money or moves a robot.Prompt for your AI
Read https://mousemouse.ai/docs/from-a-terminal.md first. Install the lucen CLI, sign me in, and show me what is mine on the hub. Ask me before anything that costs money or moves a robot.The same hub from the lucen CLI. Download a dataset and upload it as your
own, import a run the Training Coach can read, train a policy on a runner you
start, and run sim tests on your own CPU. The tutorial
walks the browser's path. Creating a key and approving a policy onto a robot
stay in the browser, because only a signed-in person may do them. The same
engine is a Python API for scripts and notebooks: Script the hub from Python
(from lucen import Hub).
Every command here is tested. Where a command names this hub, it is printed with the address of the hub serving this page: https://api.mousemouse.ai for the API, https://mousemouse.ai for the web app.
Before you start
You need uv and an account on this hub. Sign in with the button at the top right.
1 · Install the CLI
The package on PyPI is lucen-cli; the command is lucen. The PyPI project
named lucen is unrelated. mousemouse is the same CLI under the product's
name, so uvx mousemouse version runs it without installing anything.
uv tool install lucen-cli
lucen version
lucen 0.1.6
2 · Create a key and sign in
Every programmatic call carries a scoped API key. Scopes nest:
read ⊂ write ⊂ train. A key that can upload data cannot spend money on
GPUs unless you gave it train.
Create one in API keys. Only a signed-in browser session can
do that, so a leaked write key cannot create a stronger one. Then tell the
CLI which hub to use, and paste the key when it asks:
lucen auth login --url https://api.mousemouse.ai
API key:
Signed in as you (scopes: read, write, train) at https://api.mousemouse.ai
Saved to /Users/you/.config/lucen/credentials (mode 0600)
The CLI has no built-in hub. Until a URL is stored (or LUCEN_API_URL is
set), every command refuses and says how to set one. Your key never goes to a
guessed address. The key never appears on a command line, and there is no
--api-key flag. It lands in ~/.config/lucen/credentials at mode
0600 and the CLI refuses to read that file if the permissions are looser.
LUCEN_API_KEY and LUCEN_API_URL override it for CI.
lucen auth whoami
you · lucen_sk_2UBHN-Vl… · scopes: read, write, train
https://api.mousemouse.ai (key from file)
Find your way: quickstart, status, open
lucen --help is grouped by task, such as Get started, Robots and Train
and test. lucen <group> with no subcommand prints that group's help. Three commands exist only to orient
you. lucen quickstart prints the next three to five commands for where you
are and runs none of them; a flag names the situation (--robot-file PATH,
--robot OWNER/SLUG, --hf DATASET, --no-file), or it asks on a terminal:
lucen quickstart --robot lucen/laika
MouseMouse quickstart. Your robot is on the hub (lucen/laika).
Hub: the MouseMouse hub at https://api.mousemouse.ai.
1. lucen runs create --template ppo_mujoco --robot lucen/laika --executor worker
Queue a PPO run for this robot, driven by its interface; it waits for a runner.
2. lucen worker run
In a second terminal: claims the run, trains on this machine (free) and publishes the policy as a model repo (needs the rl extra: install `cli[rl]`).
3. lucen rollout you/MODEL --robot lucen/laika --battery smoke --local
Test the published policy in sim, in MuJoCo on your CPU; the hub scores every test (MODEL is the repo the runner printed).
4. lucen open you/MODEL
The model page: lineage, scorecard, and Run on a robot (a person approves).
Nothing was run or copied. `you` is your handle (`lucen auth whoami` prints it).
lucen status is one screen: who you are, which MouseMouse hub, and what is
yours right now. It reads the same overview as the web's workspace rail:
lucen status
you · key lucen_sk_2UBHN-Vl… from file · scopes read, write, train
MouseMouse hub https://api.mousemouse.ai · lucen-api 0.1.0 (dev) · web https://mousemouse.ai
Runs 0 queued · 0 running · 0 in all
Sim tests 0 queued · 0 running · 0 in all
Endpoints 0 queued · 0 running · 0 in all
Approvals none waiting
Robots 0 connected · 0 online (seen within 60 s) · 0 running a policy
Plans 0 active · 0 waiting on approval
Spend $0.0000 on AI models today
Since midnight UTC you used 0 coach calls, …
lucen open turns a repo, a run id or a sim test id into its page and opens
it in your browser. --print just prints the address, which the CLI learns
from the hub itself:
lucen open lucen/laika --print
https://mousemouse.ai/lucen/laika
Every command takes --json, and an error under --json is one JSON object
on stdout. Without it, an error is always three lines: what happened, what the
hub said, and Fix:. The exit code says which kind: 1 your mistake or the
hub's answer, 2 refused (no key, a missing scope) or cancelled, 3 the hub
could not be reached. Shell completion is lucen --install-completion
(or lucen completion zsh to see the script).
lucen completion zsh
3 · Download a dataset
lucen pull lucen/laika-demo ./laika-demo
Downloading 10 file(s), 51.0 kB (0 already local)
Pulled lucen/laika-demo: 10 file(s) (51.0 kB)
Files stream in parallel and each one is hashed while it is written; a file is
renamed into place only when its sha256 matches what the tree said it would be.
A second pull into the same directory downloads nothing.
4 · Upload it as your own
Replace you with your handle (lucen auth whoami prints it):
lucen push you/laika-demo ./laika-demo --kind dataset --public -d "My first Lucen dataset"
Created and pushed you/laika-demo: 10 file(s), 0 uploaded (0 B), 10 deduped
Zero bytes moved. Files are stored by their content, and the hub already held these ones. So your upload linked the existing files instead of sending them again, across accounts, paths and repos. Change one file and only that file uploads. Stop an upload midway, and the next one sends only the parts that never arrived.
Open https://mousemouse.ai/you/laika-demo and the Episodes tab will play the video
against synced per-joint charts.
lucen repo ls --owner you
repo kind visibility updated description
you/laika-demo dataset public 2026-09-02 My first Lucen dataset
5 · Import a training run
A run trained anywhere, such as your workstation, a cluster or Isaac, can be recorded on the hub so the Coach can read it:
printf 'seed: 0\nlr: 3.0e-4\nepisodes: 3\n' > run-config.yaml
lucen runs import --config run-config.yaml --dataset lucen://you/laika-demo --template quickstart
Imported run_01M1FYAWR191NM7X0ZEPFSE5ZF (succeeded): config
https://mousemouse.ai/runs/run_01M1FYAWR191NM7X0ZEPFSE5ZF
Pass --config the resolved config, not the template you edited: the Coach
diffs a run against its --parent to attribute a regression, and a diff of two
templates attributes nothing. --metrics and --scorecard are optional; a
scorecard must be JSON, because its PASS rows become standing constraints on
every proposal the Coach makes about the run.
lucen runs ls
run kind status template parent created
run_01M1FYAWR191NM7X0ZEPFS… external succeeded quickstart — 2026-09-02
Runs are private. lucen runs ls shows only runs you own or whose
organization you belong to.
6 · Train on your own machine, and watch it
The other path runs a recipe for real, on a machine where you start a runner.
It is free, because the hardware is yours. The built-in ppo_mujoco template
trains a reflex policy in MuJoCo on your CPU. Sixty iterations is the train
form's Quick test: about a minute and a half on a laptop, enough for Lucen Biped
to stand still, not yet to walk. In a second terminal, start a runner with the
same credentials:
lucen worker run
Then, back here, write a recipe and submit it with --follow, which streams
the runner's output to stderr until the run ends and exits by its outcome
(0 succeeded, 1 failed, 2 canceled):
printf 'template: ppo_mujoco\nrobot: lucen/laika\ndataset: []\nhyperparams:\n iterations: 60\n' > recipe.yaml
lucen train -f recipe.yaml --follow
Submitted run_01M4SJ4VQ2FH3DTCPVWWSNQS1E; following its log (Ctrl-C detaches, the run keeps going)
| [lucen-ppo-mujoco] lucen/laika: base floating, 12 DoF, task velocity, obs 47 = base_ang_vel + projected_gravity + commands + joint_pos + joint_vel + last_action + gait_phase, fingerprint 21b5c95a83ea
| [lucen-ppo-mujoco] 1024 envs x 24 steps x 60 iterations on 12 thread(s); dt 0.002 s x 10 = 50 Hz
| [lucen-ppo-mujoco] harness conditions in training: action delay 2 control step(s) = 40 ms (harness); bridge slew on; pushes up to 0.4 m/s every 6-10 s; mirror symmetry off (off by hyperparams.mirror_symmetry)
| [lucen-ppo-mujoco] terrain curriculum: levels 0-5, the flat floor up to 8 degree slopes and 4 cm steps, 2 m tiles; every robot starts on the floor (level 0)
| [lucen-ppo-mujoco] initial exploration 0.25 rad per joint (log_std -0.693, init_action_noise_rad)
| iter 1/60 return -0.510 reward/step -0.01607 std 1.004 22,550 steps/s terrain 0.00
| [lucen] published checkpoints/step_0/ to you/ppo-mujoco-wwsnqs1e (2 file(s), 292,134 B, 292,134 B uploaded: policy.npz, ppo_velocity.onnx)
…
| iter 60/60 return -2.429 reward/step 0.00931 std 0.674 21,477 steps/s terrain 0.00
| [lucen-ppo-mujoco] done: 1,474,560 env steps in 68.8 s; episode return -0.5097038764607732 -> -2.428927462479867
| [lucen-ppo-mujoco] terrain: mean level 0.00 of 5; 0 promotion(s), 0 demotion(s)
| [lucen] published checkpoints/step_60/ to you/ppo-mujoco-wwsnqs1e (2 file(s), 292,135 B, 292,135 B uploaded: policy.npz, ppo_velocity.onnx)
run_01M4SJ4VQ2FH3DTCPVWWSNQS1E ended: succeeded
The lines are shortened. The whole log, the summary and the run's address follow on your screen.
The run page shows the same log live, with the metrics curve under it and a
Cancel button. lucen runs cancel RUN_ID does the same from here. A queued run
ends at once, and a running one is stopped by its runner within a few seconds.
Stop the runner in the other terminal with Ctrl-C when you are done. If a
runner dies mid-run, the hub queues the run again after five minutes without
a heartbeat.
7 · Test it in sim
A policy is done when it stands and tracks its commands, not when the loss curve looks good. A sim test runs a policy's ONNX in MuJoCo on a robot's own MJCF and meshes, one command at a time. A policy whose inputs and outputs do not fit the robot is refused. The hub scores each test: it passes when every seed stays upright for the whole horizon and tracks its command within 15%. The engine is an extra, so the plain CLI stays small:
uv tool install "lucen-cli[rollout]"
lucen/laika-omni-l4-turn2300 is the walking policy Lucen Biped runs.
The hub publishes the real policies the robot runs. Test it on lucen/laika with the
five-test Quick check suite, right here on your CPU:
lucen rollout lucen/laika-omni-l4-turn2300 --robot lucen/laika --battery smoke --local
Created sim test rollout_01M7F8P28V15G1HA06Y9WQ2J7W: Quick check, 5 tests x 2 seeds, 5 s each
Running the test suite on this machine, as your-laptop
| policy: lucen/laika-omni-l4-turn2300/omni_l4_turn2300.onnx (1109615 bytes)
| robot: lucen/laika/laika_v3_mjcf.xml + 13 asset(s)
| contract: profile omni_ff, obs 215 = base_ang_vel(3) + projected_gravity(3) + commands(3) + joint_pos_rel(12) + joint_vel(12) + last_action(12) + gait_phase(2) + frame_hist(168), action 12, clip ±1, 50 Hz, joints l_hip_pitch_joint, l_hip_roll_joint, l_hip_yaw_joint, l_knee_joint, l_ankle_pitch_joint, l_ankle_roll_joint, r_hip_pitch_joint, r_hip_roll_joint, r_hip_yaw_joint, r_knee_joint, r_ankle_pitch_joint, r_ankle_roll_joint
| engine: mujoco 3.12.0, onnxruntime 1.30.0, dt 0.002 s x 10 = 50 Hz control, per-group kp 12 kd 0.6, kp 20 kd 1, kp 30 kd 1.5
| test stand: 2/2 upright (1.4s)
| test vx+0.30: 2/2 upright, tracking vx 97% (1.3s)
| test vy+0.10: 2/2 upright, tracking vy 6% (1.3s)
| test vy-0.10: 2/2 upright, tracking vy 88% (1.3s)
| test yaw+0.50: 2/2 upright, tracking yaw 73% (1.3s)
| uploaded 20 artifact(s), 4932183 bytes
Sim test rollout_01M7F8P28V15G1HA06Y9WQ2J7W: succeeded. lucen/laika-omni-l4-turn2300 on lucen/laika, Quick check, seed 0, 5 s each.
Ran on your-laptop.
test result upright tracking video
stand Pass 2/2 — side/front/feet
vx+0.30 Pass 2/2 vx 97% side/front/feet
vy+0.10 Fail 2/2 vy 6% side/front/feet
vy-0.10 Pass 2/2 vy 88% side/front/feet
yaw+0.50 Fail 2/2 yaw 73% side/front/feet
3 of 5 tests pass.
Four checks before the real robot: 1 of 4 pass.
1. Command tracking: Fail. 3 of 5 commands pass: every seed upright, tracking within 85-115%. Failed: vy+0.10, yaw+0.50.
2. Robustness: Not measured. This sim test perturbed no parameter (run the sweep).
3. Actuator margin: Fail. Peak torque 83.9% of the limit at l_ankle_pitch_joint (vx+0.30), bar 90%. Peak joint speed 102.2% at l_knee_joint (vy-0.10), bar 90%. Median over seeds of each seed's peak.
4. Smoothness against the baseline: No baseline. No baseline policy to compare with.
parameter survives needs covered trained on covers it
mass (x) — 0.9 to 1.1 — — —
friction (mu) — 0.4 to 1.2 — — —
kp (x) — 0.8 to 1.2 — — —
kd (x) — 0.85 to 1.15 — — —
power (x) — 0.8 to 1 — — —
delay (steps) — 1 to 3 — — —
push (N·s) — -6 to 6 — — —
https://mousemouse.ai/sim-tests/rollout_01M7F8P28V15G1HA06Y9WQ2J7W
Both seeds stay upright in every test. Forward walking and stepping to the
right track within 15 %. Stepping left and turning do not, and the test says
so. The robot itself runs this policy at 80 % motor power, and these tests run
it at full power. (8 s on a laptop CPU.) That page shows three videos per test (side, front and feet) over the
joint chart, and the scorecard table. A video needs an offscreen GL context
and ffmpeg. Without them the sim test still scores, and says
video unavailable: … instead.
Pass --run RUN_ID and the scorecard is also written onto that run. The Test
in sim form on the policy page prefills the run the policy came from. The
Coach then keeps every passing test as a constraint. Without --local, the
sim test waits queued for a lucen rollout worker on any machine with the
extra installed.
A sim test is yours until you publish it. Add --publish to a --local run, or
run lucen rollout publish ROLLOUT_ID once it has finished. The policy page
then shows its video and results to everyone while the policy is public.
lucen rollout publish ROLLOUT_ID --unpublish takes it back.
What each of these costs, and where it runs, is the table in Train on your own machine.
8 · Share it with your lab
A lab is two people. An organization is a handle you share. Every member publishes robots, policies, datasets and runs under it, and an owner decides who is in it. Create one, and you are its first owner:
lucen org create my-lab
Created organization my-lab. You are its first owner.
https://mousemouse.ai/my-lab
Add your lab on that page, signed in: by hub handle or by e-mail.
Adding a person happens in the browser, on Organizations. Sign in, then add each person by their hub handle, or invite them by e-mail. A member can approve the lab's deployments and spending. So an API key cannot add one, and the CLI has no command for it.
lucen org members my-lab
member role name added
you owner you 2026-10-09
ada member ada 2026-10-09
An owner changes a member's role on the same page. lucen org remove my-lab ada
removes them, lucen org leave my-lab is how you leave, and lucen org ls lists
yours. An organization keeps at least one owner. The last owner cannot be demoted
or leave until someone else is an owner, and the hub says how to fix it.
An e-mail invite reaches someone before they have an account. The invite link works once and lasts 7 days.
Next
- The tutorial: your first policy on Lucen Biped, in the browser, with screenshots.
- Import a dataset from Hugging Face: a LeRobot dataset in one command.
- Add your robot: an MJCF or a URDF to a checked robot page, in three commands.
- Dataset format: what the episode viewer reads, and what it refuses.
- Use the hub from your AI: what an agent can do with an API key.
- API reference: every operation, with the scope it needs.
- Training Coach: the principles and lessons every citation links to.