Scale computer-use 2.0 with open-source drivers, cross-OS sandboxes, and benchmarks for training, evaluation, and data generation.
Files and commands
A user talks to a Space's cua-spacesd directly by URL: reads what it can do, runs a command, copies files both ways, lists what can be streamed, and calls any RPC.
Sub-features
capsprints the version, OS, protocol and each feature with its limitation.execruns an argv (no shell) and returns its output and exit code.cp-upandcp-downcopy a file into and out of the Space, sha256-checked.targetslists displays and, with--windows, windows.callcalls anycua.env.v1RPC with a proto3-JSON body.
How to get to it (user POV)
cua spacesd caps|exec|cp|shell|targets|call <url> ... --token <token>(orCUA_ENV_TOKEN).
Driving it with spaces-desk
Preconditions:
Baseline.
T="$(cat "$RUN/token")".Capabilities. Run
$H cua "$RUN" -- spacesd caps "$URL" --token "$T". Exit 0; first linecua-spacesd <version> (linux ... protocol 1.13);+ desktop_streamand+ audio.desktoppresent.Exec. Run
$H cua "$RUN" -- spacesd exec "$URL" --token "$T" sh -c 'echo exec-ok; exit 3'. Stdoutexec-ok, exit code3.Upload.
echo hello-spaces > "$RUN/up.txt", then$H cua "$RUN" -- spacesd cp "$URL" "$RUN/up.txt" :/tmp/cua-verify-up.txt --token "$T". Prints13 bytes, sha256 eb19...ed94f.Download. Run
$H cua "$RUN" -- spacesd cp "$URL" :/tmp/cua-verify-up.txt "$RUN/down.txt" --token "$T". Same size and sha256;cmp "$RUN/up.txt" "$RUN/down.txt"exits 0. Remove/tmp/cua-verify-up.txt.Targets. Run
$H cua "$RUN" -- spacesd targets "$URL" --windows --token "$T". Listsdisplay 0 primary 1280x800and awindow ... "verify-pad"line.Call. Run
$H cua "$RUN" -- spacesd call "$URL" SystemService/Health --token "$T". JSON withHEALTH_STATUS_SERVINGforprocess,filesystemanddesktop.
Gotchas
- Without
--token(orCUA_ENV_TOKEN) every verb but/healthis refused withUNAUTHENTICATED; the wrapper unsetsCUA_ENV_TOKENon purpose. exectakes an argv: usesh -c '...'for pipes and redirects.- Guest paths start with
:; a path without it is local.