Scale computer-use 2.0 with open-source drivers, cross-OS sandboxes, and benchmarks for training, evaluation, and data generation.
Act on a Space with cua do
A user (or a script) points cua do at a Space once, then takes screenshots and clicks, types and runs commands in it one shot at a time.
Sub-features
do-switchselects the Space as thecua dotarget anddo-statusshows it.do-screenshotsaves a PNG of the Space's screen.do-clickclicks at screenshot coordinates, mapped onto the real display.do-typeanddo-keytype text and press named keys.do-shellruns a shell command in the Space.
How to get to it (user POV)
cua do switch <space id>,cua do status.cua do screenshot --save <file>,cua do click <x> <y>,cua do type <text>,cua do key <name>,cua do shell <command>.
Driving it with spaces-desk
Preconditions:
Baseline. Note the line count of
$EVIDENCE/pad.jsonlbefore the input steps.Select. Run
$H cua "$RUN" -- do switch "$SPACE_ID", then$H cua "$RUN" -- do status. Both exit 0; status printsCurrent target: sandbox/<SPACE_ID>.Screenshot. Run
$H cua "$RUN" -- do screenshot --save "$EVIDENCE/do-shot.png". Exit 0; the PNG (1200x750, scaled from 1280x800) shows the openbox titleverify-padand the four colour cells.Click. Run
$H cua "$RUN" -- do click 900 600(the white cell in screenshot coordinates). A newpad.jsonlline{"event":"button","button":1,"x":~960,"y":~621}(pad coordinates = screen minus the 19 px title bar).Type and key. Run
$H cua "$RUN" -- do type "hi"and$H cua "$RUN" -- do key enter. Newkeylines withcharh,i, then keysym65293(Return).Shell. Run
$H cua "$RUN" -- do shell "echo do-shell-ok > /tmp/cua-verify-do.txt; cat /tmp/cua-verify-do.txt". Stdout containsdo-shell-ok;cat /tmp/cua-verify-do.txton this host (the Space is this machine) shows the same. Remove the file.
Gotchas
cua do switch verify(the display name) fails withnot found: sandbox verifyon a Space onlycua spaces addregistered; use the id. See register-and-listsb-ls.- Screenshot coordinates are in the scaled image (1200x750 here), not display pixels;
cua domaps them. cua dorecords a trajectory per command under the cua home (--no-recordturns it off);downdeletes it withRUN.- The Space is this host:
do shellruns as you, on your filesystem. Keep writes under/tmp/cua-verify-*.