cua-spaces

cua-spaces is a skill for Claude Code, Codex from trycua/cua. It costs 102 tokens per session (2,183 once invoked), scanned C, original, MIT.

Tools for working inside local or remote computers called Spaces that a user can watch and control. They can run shell commands, move files, show a desktop or window, and start coding agents.

In plain words
What is it for?
Use it to run commands, transfer files, operate a graphical application, share a signed-in app session, or launch coding agents on a chosen computer.
Why use it?
They provide a computer environment separate from the chat where commands, applications, and visible desktop actions can be performed. Existing Spaces can be reused, and temporary cloud Spaces can be stopped or deleted.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to run commands, transfer files, operate a graphical application, share a signed-in app session, or launch coding agents on a chosen computer.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/trycua/cua/cua-spaces
About the project

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.

trycua/cua · 33,426 stars · on GitHub · cua.ai

Install

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.

Any agent
npx skills add trycua/cua --skill cua-spaces
Clone the repo
git clone --depth 1 https://github.com/trycua/cua

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for cua-spaces

README.md
[![agentmods](https://agentmods.dev/badge/skills/trycua/cua/cua-spaces/github.svg)](https://agentmods.dev/skills/trycua/cua/cua-spaces)
Your own site
<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.

agentmods 80×15 button for cua-spaces

Your own site · 80×15
<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>
Per session 102 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,183 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 2 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 20d ago against content hash 188ee60b874d, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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`.
libs/cua/skills/cua-spaces/SKILL.md · 129 lines

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.

Read the full file on GitHub · 129 lines

Changes

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.

  1. 20d ago Changed 188ee60b874d
  2. 27d ago Changed · +34 lines e9ed560d7120
  3. 1mo ago Changed 142f8cb69e30
  4. 1mo ago Changed · +7 lines d321fdb4abca
  5. 1mo ago Changed f47412b8ce56
  6. 2mo ago First seen · 88 lines · 102 tokens per session scan C b5062c0eff3a

Subscribe to this mod's changes

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.

Related

cua-spaces compared with skills from other repositories

cua-spaces next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
cua-spacestrycua/cuaSkill33ktodayMITC102Claude Code, Codex
vercel-sandboxvercel-labs/agent-browserSkill55kyesterdayApache-2.0A126Claude Code, Codex
agentcorevercel-labs/agent-browserSkill55kyesterdayApache-2.0A89Claude Code
interactive-loginyc-software/qmSkill16ktodayMITA46Claude Code, Codex
peekabooopenclaw/PeekabooSkill5.6k10d agoMITA37Claude Code, Codex
lovablex-cmd/x-cmdSkill4.8k7d agoApache-2.0A30Claude Code, Codex
agent-browserx-cmd/x-cmdSkill4.8k7d agoApache-2.0A39Claude Code, Codex