Skip to main content
Deploy a model that streams a spinning logo, then change its behavior from a client. Reactor builds and runs the image remotely, so you don’t need Docker or a local GPU. You need a Reactor account with Serve access and a GPU allocation for the deployment.

Install and sign in

Sign in before creating the workspace:
Terminal
This opens your browser to approve the login. Over SSH, pass --no-browser and open the printed URL on another device. For installation options or CI setup, see Install the CLI.

Scaffold a workspace

Create a workspace and enter it:
Terminal
The CLI writes your account-qualified name, such as your-org/my-model, into reactor.yaml. The workspace contains:
Workspace
The starter code runs on a CPU and accepts commands for spin speed, pause, and static cadence. Reactor currently requires a GPU deployment to attach weights, including its logo. Deploy it first, then replace its code with your own ReactorApp. Keep the generated build.runtime_version pin; the runtime changelog lists releases when you’re ready to upgrade.

Deploy to production

Choose a GPU type and region covered by your account allocation. The example below uses one H100 in us-west. Replace these values with your allocated GPU type and region. An allocation does not guarantee free hardware at deployment time. Deploy the workspace and its weights folder:
Terminal
The first deploy creates the project. The CLI builds the image remotely, uploads the weights, and deploys to the project’s production environment. It waits for the rollout to finish. Follow startup from another terminal in the workspace:
Terminal
A project groups your images, weights, and environments. Each environment has its own deployed revision and instance settings. See Projects and environments to add staging alongside production. Check the deployed environment:
Terminal
--weights ./weights explicitly uploads and selects the starter’s logo. Without --weights, a deploy keeps the environment’s existing weights; it doesn’t upload runtime.weights_path automatically. The model reads its deployed weights through get_weights_path(), the same helper it uses locally.

Connect a client

For production, point the JS SDK at the account-qualified name from reactor.yaml, such as your-org/my-model. A deployed model needs a token. Mint it on your server as described in Authentication. For the vanilla JavaScript example, add <video autoplay muted playsinline></video> to your page before running the script.
Confirm that the logo appears, then change its spin speed in the JavaScript client:
Change the spin speed
The logo should turn faster. This checks the video output and the command path, beyond whether the image builds.

Ship a change

Edit model.py or config.yaml, then deploy again:
Terminal
The CLI builds the updated image and creates a revision when the deployed settings change. There’s no model.version to bump. The environment keeps its weights unless you supply --weights again. To ship only updated weights:
Terminal
Revisions and rollback explains how to return to an earlier image and weights.

Stop the instance

When you’re finished testing, stop the environment’s instances:
Terminal
The project and its artifacts remain available. Run reactor scale production --desired 1 when you want to use it again.

Develop locally

Local testing is optional. reactor build and reactor run build and run the model through Docker on your machine. The starter needs no GPU; GPU models also need local hardware and reactor run --gpus all. Test Locally covers the build, run, and client test loop.

Next

Model Anatomy

Every member of a ReactorApp, read through one working model.

Generation Loop

The three hooks, refusing and failing, emitting, and the frame rate.

Load Your Weights

Resolve checkpoints the same way locally and in production.

reactor.yaml Reference

Every key in the model spec, with its default.