reactor CLI. Install it, scaffold a project, and run it. The CLI
builds a container with the runtime already inside, so there is nothing to install on your host but
the CLI itself and Docker.
Install the CLI
Scaffold a project
reactor.yaml describes the image. The scaffolded build: block is one line that pins the
runtime release:
reactor.yaml
build: block. Bump runtime_version to
upgrade the runtime; releases are immutable, so there is no latest to track.
The scaffolded model.py is a small working ReactorModel that generates frames on its own and
takes one command, so you can stream something before you write any code. Run it first, then replace
it with your own model.
Run it
Connect a client
The fastest option is the Reactor Sandbox: open it, pick Local (Direct), and click Connect. Frames start streaming immediately. To build your own frontend, point the JS SDK at your local model withlocal: true:
The iteration loop
reactor build and reactor run share one image tag, and run reuses whatever image is already
there. So the loop is always the same two commands:
1
Edit your model
Change
model.py, config.yaml, or anything else in the project.2
Rebuild
3
Run
reactor run on its own will not pick the
change up: it reuses the existing image. Chain them while you iterate:
What reactor run actually does
- Builds the image defined by the
build:block inreactor.yamlif it does not exist yet, and reuses it otherwise. - Starts the container, maps port 8080 to your host, and sets
PORTto match. - Inside the container, the runtime reads
reactor.yamland resolvesruntime.import(model:MyModelmeans the classMyModelinmodel.py). - It calls your model’s
load()once, passing the path toruntime.config. - It serves WebRTC signaling on that port and waits.
HOST and PORT name the address it
binds, so reactor run --port maps the host port and sets PORT in the container to match.
When a client connects, the runtime wakes your run() loop and streams whatever it emits.
Command reference
reactor run starts the model.
reactor build builds the image without running it.
Next
Model Anatomy
Replace the scaffold with your own model, line by line.
The Run Loop
Emitting frames, batches, and frame rates.
Load Your Weights
Resolve checkpoints the same way locally and in production.
Deploy to Reactor
Register, publish, and go live on Reactor’s GPUs.