Scale computer-use 2.0 with open-source drivers, cross-OS sandboxes, and benchmarks for training, evaluation, and data generation.
Watch and control in the viewer
A user opens a Space's desktop in the browser from a link the CLI prints, sees the live screen with sound, and works it with the mouse and keyboard.
Sub-features
view-linkprints a ticketed viewer link (cua sb view <id> --no-open).view-streamstreams the desktop (H.264, PNG fallback) and the status leaves "Connecting".view-inputdelivers clicks at the right place and typed keys to the app under them.view-audioplays desktop audio when the Space has a sound server.view-no-audiostill streams video when the Space has no reachable sound server.view-indexlists the Space in thecua viewerindex page and opens it from there.
How to get to it (user POV)
cua sb view <id>opens the browser (--no-openprints the link,--view-onlywatches only).cua viewerserves an index of every sandbox on one loopback port; a row opens that Space.- The apps' Space viewer windows use the same stream (unverified here).
Driving it with spaces-desk
Preconditions:
Baseline, with
audio=pipewirein theREADYline forview-audio.Chromium is installed (
CHROMIUM=overrides the binary).Open, stream, click and type. Run
$H viewer "$RUN" desktop. It printsopen {"status":"streaming",...}, aframesline withframesDecoded>= 1 and the frame1280x800, andinput {"click":{"button":1,...,"x":>=640,"y":>=400},"keys":"ok"}, thenPASS.viewer-desktop.pngshows the grid under the toolbar;pad.jsonlhas the newbuttonand twokeylines.Audio track. In the same
viewer-desktop.json,stats.audio[0].decoded> 0 andaudioPackets> 0.No sound server. Stop audio with
killon thepipewire-pulse,wireplumberandpipewirepids from$EVIDENCE/pids.txt(only those), then run$H viewer "$RUN" no-audio. Expected:PASSwith video and input as above (no audio track).Audio off by the user. Run
$H viewer "$RUN" audio-off "audio=none".PASS;stats.audiois empty.Index page. Run
$H index "$RUN"(startscua viewer --no-open, follows its keyed URL with a cookie jar, stops it). Expected:PASS index lists <SPACE_ID>;viewer-index.htmlhas a row linking/s/<SPACE_ID url-encoded>/open.
Gotchas
- On current main, No sound server fails: the viewer shows "audio: audio: pa_simple_new(@DEFAULT_MONITOR@): Connection refused" with a Reconnect button and no picture.
OpenMediafails as a whole when the audio capture cannot start, although the capability report still claimsaudio.desktop. - PipeWire without a session manager (no WirePlumber) accepts the record stream but never links it:
OpenMediathen blocks and the viewer sits at "Connecting to the sandbox…".upstarts WirePlumber for that reason; a missing WirePlumber is a setup failure, not a product verdict. - The link carries a viewer ticket (a credential, 1 h by default).
drive-viewer.mjsredacts it in its JSON. - Input is leased to one viewer at a time for 5 s after its last input. A second viewer opened right after another one gets
RateLimited ... leased to Web viewer(incua-spacesd.log) and nothing reaches the pad;drive-viewer.mjswaits 6 s before acting for that reason. - The click lands in pad coordinates: 958,579 for the 75%/75% canvas point, because openbox's title bar takes the top 19 px.
view-indexshows nothing for a Space that onlycua spaces addregistered (see register-and-listsb-ls).