Two infer daemon containers stand in for your laptop and a remote Linux desktop. laptop serves the
web terminal you open in your browser. desktop runs a headless desktop (Xvfb with
Chromium on it) with Computer Use enabled, registered on the laptop as a kind: daemon
workspace (see daemons on other machines). A tab's session
teleports to the desktop, the agent drives that screen, and the tab's Screen view shows it live, relayed
peer to peer through the laptop daemon.
your browser ── https://localhost:52789/terminal/ ── laptop daemon ── relay ── desktop daemon ── session worker
Screen: GET /screen/?id=<session> │ (agui, TLS) │ Computer tool
read_frame ─────────────────► latest frame ◄── Xvfb :99 + Chromium
The model is a tokenless mock scripted in
desktop/scenarios.yaml, so everything runs offline with no API key. You need Docker
Compose. The live Screen view shipped in v0.244.0 and take over in v0.245.0, and docker-compose.yml defaults
INFER_IMAGE to ghcr.io/inference-gateway/cli:latest, so the published image works. To run a local build
instead, build it from this checkout and point the example at it:
task container:build
export INFER_IMAGE=ghcr.io/inference-gateway/cli:localdocker compose up --buildThe desktop daemon generates a self-signed certificate the laptop pins, and the laptop seeds a small git project to
teleport. Open https://localhost:52789/terminal/?token=computer-use-demo, accept the laptop's self-signed
certificate, click + for a tab, then:
/teleport desktop. The status bar flips to⇄ desktoponce the session lands there.- Click Screen. The view shows Chromium on the desktop container, refreshed every two seconds.
browse to example.com. The mock model takes a screenshot, clicks into the browser, pressesctrl+l, types the URL and pressesenter, each aComputercall on the desktop, and the Screen view follows along.- When the model gets stuck on something only a person can do, click Take over on the view and drive the
desktop yourself - click, wheel and type right in the image,
Done(orEsctwice) hands the screen back and the agent continues from what you left on it.
Close the tab whenever you like, the session keeps running on the desktop. infer chat --daemon --session-id <id>
from a shell in the laptop container (docker compose exec laptop sh) reattaches to it.
docker-compose.real.yml swaps the mock for an Inference Gateway container and runs
ollama_cloud/glm-5.3-flash on both daemons, in auto-with-judge mode: the agent acts on its own and the
ollama_cloud/clef:27b decision model approves or rejects each click and keystroke through the gateway's
/v1/decisions endpoint, instead of you (Judge Mode).
Chromium is not the mock's script any more, the agent picks its steps from its own screenshots
(Vision annotates them for text-only models).
cp .env.example .env # then fill in OLLAMA_CLOUD_API_KEY
docker compose -f docker-compose.yml -f docker-compose.real.yml up --buildThe same tab flow applies, and any prompt works, not only browse to example.com. The gateway holds the key, the
daemons only know its URL, and .env stays out of git. Change the model or the mode in the override file, or pick another provider by giving
the gateway that provider's key instead.
Mouse and keyboard actions ask for approval in the tab that runs the turn, as computer_use.approval configures
(Configuration Reference). For a session
that runs unattended, start it in auto mode from the tab (shift+tab), inside this sandbox only.
docker compose down -vA desktop of its own in a Kubernetes pod is the session-teleport example.