Skip to main content
Any robot can run a Dreamscale model from Python. Your code reads the cameras and joints and commands the robot; the model runs in the cloud. On an SO-101, bimanual YAM, Franka or OpenARM, the CLI needs no code. “Robot” is a loose word here. Models fine-tuned on Dreamscale have cleared cardboard with a 1,930 kg excavator and driven a Tesla around a cone course. If it has cameras and takes commands, it counts.

What you need

  • Python 3.11 or newer, in a project (uv init makes one).
  • A Dreamscale account. Sign in once with uv run dreamscale login, or set DREAMSCALE_API_KEY to a key from Settings → API keys.
  • Demos recorded on your robot as a LeRobot dataset (v2.x or v3.0): its cameras, observation.state and action.

1. Install the SDK

uv run python -c "import dreamscale; print(dreamscale.__version__)" prints 0.1.0a391 or newer.

2. Fine-tune a model on your robot

A shared model runs one robot type. For yours, fine-tune a base on your demos and deploy the result:
Your dataset defines the robot: its cameras, and what its state and action hold. Models lists the bases and Training has the walkthrough. Already have a fine-tuned checkpoint? See Deployments.

3. Drive your robot

The robot will move. Enforce joint, speed and workspace limits locally, and keep a physical e-stop within reach. Cloud inference does not replace your robot’s safety controller.
Call next_action once per control tick:
The deployment’s dashboard page shows its camera keys and this loop filled in. Pass a new instruction to switch tasks. No robot yet? Simulations has a snippet that runs as it is.

What the SDK handles

The SDK checks each observation and names any wrong field. It prepares images, picks the fastest network path, and blends chunks so motion stays smooth. If the connection drops, it reconnects and holds the robot still; if no server answers within 5 minutes, next_action() raises reconnect_failed. After a minute idle, it frees the server until the next call. Sessions close when your program exits, or with policy.close(). In async code, use await dreamscale.aconnect(...). predict() does none of this: it returns one action chunk for your own executor. Universal Robots and xArm 7 arms also have experimental CLI runners: see dreamscale run.