trycua/cua is a toolkit for building and testing AI agents that operate computers by seeing screens, clicking controls, and typing across operating systems and virtual machines. It serves agent developers, benchmark authors, and teams generating training data for computer-use models. Catalogue add-ons provide ways to operate Cua drivers and related agent workflows.
Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add trycua/cua --skill cua-spacesgit clone --depth 1 https://github.com/trycua/cuaWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/trycua/cua/cua-spaces)<a href="https://agentmods.dev/skills/trycua/cua/cua-spaces"><img src="https://agentmods.dev/badge/skills/trycua/cua/cua-spaces/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/trycua/cua/cua-spaces"><img src="https://agentmods.dev/badge/skills/trycua/cua/cua-spaces.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00102 | $0.02183 |
| Opus 5.5 | $0.00041 | $0.00873 |
| Sonnet 5.5 | $0.00020 | $0.00437 |
| Haiku 4.5 | $0.00010 | $0.00218 |
Grade C, and why
cua-spaces scanned grade C with 2 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 20d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Downloads and executes remote codehighSupply chain
curl | sh runs whatever the server returns today, which is not necessarily what it returned when this was reviewed.
`curl -fsSL https://cua.ai/install.sh | sh -s -- -y --select spaces,host --no-onboarding`. Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
`curl -fsSL https://cua.ai/install.sh | sh -s -- -y --select spaces,host --no-onboarding`. How it starts
The opening of the file, as written. The whole thing — 129 lines — stays where its author put it; the contents beside it link to each section on GitHub.
cua Spaces
Spaces are exposed as MCP tools by the cua MCP server (cua mcp). If the
tools below are missing, ask the user to run cua agents setup or
cua auth login.
Get a Space
| Tool | Use |
|---|---|
list_spaces |
See the Spaces you can use. Start here. |
create_space |
A new Space: on = local (free, the user's machine), aws, gcp or modal (the user's own cloud account, billed there), or host:<name> (one of the user's machines set up with cua host setup); reuse: true returns a reachable one first. |
add_space / remove_space |
Register an existing machine by URL and token, or forget one without deleting it. |
delete_space |
Delete a Space's sandbox and stop its cost. |
stop_space / start_space |
Turn a local Space (or one your machines provide) off and back on: suspended or stopped, as power in list_spaces says. |
Prefer an existing Space. A Space in the user's own cloud account costs money: delete the ones you created when the task ends.
Work in it
| Tool | Use |
|---|---|
space_bash |
Run a shell command (space, command, optional timeout). For anything under a minute. |
space_job |
Run a long command in the background (action: start, status, logs, cancel, list). See "Long work" below. |
space_write |
Write text to a file. |
upload / download |
Copy files or folders in and out. |
send_file |
Drop a host file into the Space's Downloads (sha256 verified). |
list_tools / call_tool |
Reach MCP services running inside the Space. |
Long work
Builds, test suites and waits on CI take minutes. Do not hold a space_bash
call open for them: a job started with space_job keeps running when you stop,
disconnect or the Space's daemon restarts, and it can wake you when it ends.
Long work (a build, a test suite, a wait on CI): never sit inside one call. Start it with space_job (action start, notify true, a name of a few words), post one line in the thread saying what you started, then end your turn. When it ends the thread gets JOB <id> <state> exit=<n> ... with the end of the log, and you receive it as your next task; read more with space_job logs (offset: the next_offset you were given). If you cannot be woken, poll with space_job logs and follow_ms instead of sleeping in space_bash.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 20d ago Changed 188ee60b874d
- 27d ago Changed · +34 lines e9ed560d7120
- 1mo ago Changed 142f8cb69e30
- 1mo ago Changed · +7 lines d321fdb4abca
- 1mo ago Changed f47412b8ce56
- 2mo ago First seen · 88 lines · 102 tokens per session scan C b5062c0eff3a
cua-spaces is a skill published in the GitHub repository trycua/cua (33,426 stars, last pushed today), licensed MIT. It adds 102 tokens to every session and 2,183 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it C with 2 findings (downloads and executes remote code, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-02.
cua-spaces compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| cua-spacestrycua/cua | Skill | 33k | today | MIT | C | 102 | Claude Code, Codex |
| vercel-sandboxvercel-labs/agent-browser | Skill | 55k | yesterday | Apache-2.0 | A | 126 | Claude Code, Codex |
| agentcorevercel-labs/agent-browser | Skill | 55k | yesterday | Apache-2.0 | A | 89 | Claude Code |
| interactive-loginyc-software/qm | Skill | 16k | today | MIT | A | 46 | Claude Code, Codex |
| peekabooopenclaw/Peekaboo | Skill | 5.6k | 10d ago | MIT | A | 37 | Claude Code, Codex |
| lovablex-cmd/x-cmd | Skill | 4.8k | 7d ago | Apache-2.0 | A | 30 | Claude Code, Codex |
| agent-browserx-cmd/x-cmd | Skill | 4.8k | 7d ago | Apache-2.0 | A | 39 | Claude Code, Codex |