cua

Cua: sandboxes, computer actions, MCP, skills and the cua daemon.

cua [OPTIONS] <COMMAND>

Run cua <command> --help for the build you have.

Commands#

Spaces#

Your Spaces, and a cua-spacesd by URL. Reference.

CommandDescriptionSubcommands
cua spacesSpaces: registered ones and your computers on the relay.ls, add, create, prewarm, egress, children, budget, orphans, service, service add, service ls, service logs, service start, service stop, service restart, service rm, cancel, gpus, delete, stop, suspend, resize, start, rm, default, rename, set, share, unshare, shares, relay-register, relay-unregister
cua spacesdTalk to a cua-spacesd directly by URL.caps, exec, cp, shell, targets, call

Computers and teams#

Your computers, unattended access on this computer, teams and your remote use this month. Reference.

CommandDescriptionSubcommands
cua hostUnattended access to this computer (setup, status, stop, start, remove).setup, pair, config, cache, cache status, cache fill, cache clear, status, stop, start, share, unshare, migrate, remove
cua devicesThis device as a client of your cua.ai account on the relay: enroll (second factor), approve other devices, list, rename, revoke, and the audit log of who accessed what.status, enroll, approve, ls, rename, revoke, audit
cua teamTeams (organizations of your cua.ai account) share computers with every member and their agents.create, ls, show, invite, join, leave, remove-member, set-role, devices, approve, deny, request, add-machine, remove-machine, audit, delete
cua usageYour remote use this month: computers in use at once, remote hours, and your plan.

Sharing and Space networks#

Share a port, file or folder as a link or a public TCP address, set what a Space can reach and where its traffic leaves, the exit through this computer, and the paths between your computers. Reference.

CommandDescriptionSubcommands
cua shareShare a link to a port, a file or a folder that opens on your other signed-in devices (never localhost): cua share 3000, cua share ./report.html, cua share ls, cua share stop ID.ls, stop, check, approve, deny, settings
cua networkWhat a Space can reach on the network, and changing it: show, set, log.show, set, log
cua hotspotSend a Space's internet traffic out through this computer for a while: start, stop, status.start, stop, status
cua meshHow traffic reaches your other computers: status (and --prefer).status

Files, teleport and keys#

Cua Volume files and sharing, moving an app session into a sandbox, and the Cua Keyvault. Reference.

CommandDescriptionSubcommands
cua volumeCua Volume: the versioned volume every Space and agent shares (public/, agents/<agent>/, spaces/<space>/), its grants and audit.ls, cat, put, rm, history, restore, grant, revoke, grants, requests, approve, deny, audit, mount, unmount, status, config, config show, config set, config set-keys, named, named ls, named create, named rm
cua teleportMove a desktop app session (tabs, profile, sign-in) into a sandbox.providers, manifest, push, doctor
cua keyvaultThe Cua Keyvault the daemon hosts: status, init, unlock, lock, saved passwords and approvals.status, init, unlock, lock, import-passwords, import-session, requests, approve, deny

Sandboxes#

Create, reach and delete sandboxes; local runtimes, disk cleanup and the sandbox viewer. Reference.

CommandDescriptionSubcommands
cua sandboxSandboxes: local or an existing computer (direct).create, launch, connect, ls, info, suspend, resume, restart, checkpoint, fork, fork-many, publish, bake, pool, pool create, pool ls, pool rm, checkpoints, checkpoints rm, checkpoints pin, checkpoints unpin, checkpoints prune, rm, exec, run, runs, shell, cp, overlay, logs, port-forward, url, screenshot, mcp, mcp config, mcp info, mcp tools, mcp call, mcp resources, mcp templates, mcp read, mcp prompts, mcp prompt, mcp request, view
cua runtimeLocal runtimes (cua-vmm).doctor, setup
cua cacheDisk used by images, sandboxes, builds and logs, and its cleanup.ls, du, prune, config
cua viewerServe the HTML5 viewer for every sandbox on one loopback port.

CI runners#

Run GitHub Actions jobs in a fresh Space each on your own computers (an experiment: cua experiments enable ci-runners). Reference.

CommandDescriptionSubcommands
cua ciCua CI, GitHub Actions jobs on Cua Spaces: each job runs in a fresh Space (a macOS VM or a Linux container or VM) registered with a just-in-time runner, then deleted.connect, add, remove, status, overview, why, config, disconnect, serve, ls, logs, stop, start, cache, cache clear

Images and your cloud#

Pull, build, push and publish images, and the cloud account you link for machines. Reference.

CommandDescriptionSubcommands
cua imageImages: local OCI pull/build/push.pull, build, push
cua imagesThe sandbox image catalog (the images the docs list): which exist, their variants, and which ship cua-spacesd and a browser.ls, info, build, pack, publish, release, promote
cua buildBuild an image from a Dockerfile, in a Space, as pinned checkpoints that Spaces fork from in under a second.
cua cloudSpaces in your own cloud account (AWS, Google Cloud, Hetzner, Modal): connect, status, test, disconnect, sweep; and pool hosts there (cua cloud add aws).status, connect, approve, trust, test, disconnect, audit, cost, sweep, add, add aws, plan, hosts, hosts list, hosts add, hosts remove, budget, reconcile

Computer actions#

One-shot computer actions (screenshot, click, type, windows) against a selected target, and their recorded trajectories. Reference.

Agents, MCP and skills#

Agents in a Space, connecting your AI agents and the AI providers they use, the stdio MCP server, and recorded skills. Reference.

CommandDescriptionSubcommands
cua agentAgents in a Space: add, send, ls, rm, schedule; run, logs, stop.add, run, ls, logs, send, interrupt, stop, status, rm, ensure, schedule, schedule add, schedule ls, schedule rm, schedule enable, schedule disable, sessions, harnesses, keys, keys ls, keys set, keys check, keys rm, create, persistent, tell, save, pause, resume, forget, routine, routine add, routine ls, routine rm, routine enable, routine disable, allow-computer, revoke-computer, computer-access, notifications
cua threadA Space's thread, as the agent this computer joined with cua join: say who you are, read your inbox, post.join, inbox, post, read
cua joinJoin a Space as an agent on this computer, with the code from a "Join my Cua Space" link.
cua connectConnect the AI agents on this computer to Cua: install the cua skills and configure the cua MCP server.detect, setup, status, remove, update
cua connectionsThe AI providers connected once for every app that can use them: list, add (a key from stdin), test, remove.list, add, test, remove, github, github status, github rescan, github use, github on, github off
cua agentsDeprecated alias of connect.detect, setup, status, remove, update
cua mcpStdio MCP server exposing sandboxes, computer control and skills.
cua skillsRecorded demonstrations (skills) for agents.list, read, replay, delete, clean, record

Account and setup#

Sign in and out, user defaults, the cua daemon, health checks and usage telemetry. Reference.

CommandDescriptionSubcommands
cua authLog in to Cua and manage the signed-in session.login, logout, status, whoami, provider, provider ls, provider set, provider rm
cua configUser defaults (~/.cua/config.toml): where sandboxes run when --on is not given (default.on), the default kind and runtime.list, get, set, unset, path
cua daemonThe cua daemon.start, stop, reap, status, mcp
cua doctorCheck the host, an image and a sandbox's guest in one report (cua doctor [REF]), or eval parity between two variants (cua doctor parity A B).parity
cua telemetryAnonymous usage telemetry (status, on, off, show-last, reset-id, schema).status, on, off, show-last, reset-id, schema
cua experimentsFeatures that are still being built, one switch each: list, enable, disable.list, enable, disable

Your pool#

Run Python functions on your pool, each member in a Space (cua run, cua jobs). Computers join with cua host setup --share spaces (or --pair CODE from cua host pair) and cua cloud add aws; cua computers lists them. Reference.

CommandDescriptionSubcommands
cua computersThe computers in your pool, as its coordinator sees them now: state, OS/arch, load, jobs, accelerators and $/h, with the queue.
cua runRun a Python function on your pool: FILE::FN, decorated with @app.function(...) (the cua jobs shim).
cua jobsRuns on your pool: the list, one run's members and cost, its logs, cancel, and its result.logs, cancel, result
cua compatRun another provider's SDK unchanged on Cua Spaces: a local gateway that speaks its wire protocol (cua compat serve --provider e2b).serve, env

Benchmarks#

Spaces performance benchmarks: list them, run one in Spaces of its own (result.json and samples.csv in the bench-result v1 format), and check a run against a committed baseline. Reference.

CommandDescriptionSubcommands
cua benchSpaces performance benchmarks: list them, run one in Spaces of its own (writes result.json and samples.csv in the bench-result v1 format), and check a run against a committed baseline.list, run, check

Global options#

Accepted by every command, before or after the subcommand.

FlagTypeDefaultEnv varDescription
--embeddedbooleanfalseUse an embedded runtime even when a daemon runs.
--daemonstringCUA_DAEMONDaemon address (socket path or loopback URL).
--daemon-tokenstringCUA_DAEMON_TOKENDaemon token (loopback URLs).
--state-dirstringSandbox state directory (embedded; default ~/.cua/sandboxes).
--jsonbooleanfalsePrint JSON.

--help prints help for any command; --version prints the version.

Exit codes#

CodeMeaning
0Success.
1Failure, or cua do reported an error.
2Invalid argument, or an ambiguous sandbox name (qualify it: local:NAME).
3Not found: sandbox, window, skill or image (or an image not published yet).
4Not supported, or not configured (for example no provider credentials).
5No cua-spacesd answered, or a transport failure.
6Unauthenticated or permission denied (by Cua or your cloud account).
7Not enough free disk space (see cua cache).
8No room on the machine: its VMs are at their memory or CPU limit, or it is low on memory.
130Cancelled (Ctrl-C during a create): what it made was removed.