Skip to content
AI & Agents
Skill

/cua-spaces

Work inside cua Spaces through the cua MCP server. A Space is a remote or local computer the user can watch; you can run commands in it, move files in and out, show its desktop or a single window on the user's screen, start coding agents inside it, teleport a signed-in app

From plugin
cua
33k6 skills1 MCP

Claude Code

$ npx -y skills add trycua/cua --skill cua-spaces --agent claude-code

SKILL.md

cua-spaces.SKILL.md
name: cua-spaces
description: Work inside cua Spaces through the cua MCP server. A Space is a remote or local computer the user can watch; you can run commands in it, move files in and out, show its desktop or a single window on the user's screen, start coding agents inside it, teleport a signed-in app session into it, and share the host's network with it. Use when the user mentions Spaces, asks you to do work "in a Space", or wants a task isolated but visible.

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.

  • `space_job {action: "start", command, name, notify: true}` returns a job id

at once. `cwd`, `env` and `timeout` (seconds) are optional.

  • `space_job {action: "logs", job, offset}` reads the log from a byte offset

and returns `next_offset`; `follow_ms` (at most 25000) waits for output. Without `offset` you get the end of the log. `status` is the state plus the last few KB. `list` shows the Space's jobs. `cancel` stops the whole process tree.

  • `state` is `running`, `exited` (with `exit_code`), `cancelled`, `timed_out`

or `lost` (the Space restarted and the job died with it).

  • To wait for something that is not your own command, use `until` instead of

`command`: `{file: path}`, `{port: 5432}`, `{command: "test -f x"}` or `{pr_checks: "owner/repo#123"}` (the pull request's required checks, through `gh` signed in inside the Space). The job ends when the condition holds, so `notify: true` wakes you at that moment.

Working with other agents

Working with other agents (a parent Space and its child Spaces, or any agents in one Space): 1. Before you start, thread_read and note what others have claimed. 2. Post `CLAIM <what> | files: <paths or branch> | until: <when>` for what you will change. Do not edit files or branches another agent's live CLAIM covers: @mention the owner and wait for the reply. 3. A claim is live until its `until` passes or its owner posts DONE or RELEASE; once it has expired you may take it, and you say so in the thread. 4. Report with one structured line: `DONE <what> | <result> | next: <step>` or `BLOCKED <what> | needs: <thing> | from @who`. 5. Keep messages short, one @mention per request, and never your own name.

Example, for any task: `CLAIM refactor the parser | files: src/parser/** on branch parser-refactor | until: 16:00` ... `DONE refactor the parser | merged into the branch, tests pass | next: docs`. A parent Space's agent that starts agents in child Spaces gives each one the parent thread's join link (see `thread_join_code_create`), so the whole group reads and posts in one place.

Show it to the user

| Tool | Use | |---|---| | `open_space_viewer` | Open the full desktop viewer. | | `show_space_pip` / `hide_space_pip` | Picture-in-picture on the user's screen. | | `list_space_windows` / `stream_space_window` | Show one window of a Space in your own Space's Stream section (`space=<child>`; `into` defaults to the Space that made it; `into=desktop` for the user's desktop). To drive a child you made, pass `space=<child>` to `space_bash` and `call_tool`. | | `stream_endpoint` | Get a ticketed media URL for the desktop or a window. |

Agents, apps and network

| Tool | Use | |---|---| | `agent_capabilities` | Which agent harnesses the Space supports. | | `agent_start` | Start an agent run (`space`, `agent`, `prompt`). | | `agent_status` / `agent_message` / `agent_stop` / `agent_list` | Follow, steer and stop runs. | | `teleport_manifest` | Preview what moving an app session would copy. | | `teleport_app` | Move a signed-in app session (tabs, profile) into the Space. | | `hotspot_start` / `hotspot_status` / `hotspot_stop` | Share the host's network with a Space. |

Set up a host ov

Read more
@trycua
Ships withcua

Scale computer-use 2.0 with open-source drivers, cross-OS sandboxes, and benchmarks for training, evaluation, and data generation.

33k6 skills1 MCP
Get the whole plugin

Stars on GitHub

Momentum

stars in total
32.8k
Star history of trycua/cua on GitHub, a chart by star-history.com

Other skills on cua.

cua-sandboxes

cua-sandboxes

Create, use and clean up cua sandboxes (disposable Linux or macOS computers) on this computer with the `cua` CLI or the cua SDK,…

@trycua@trycuaInstall Skill
cua-volume

cua-volume

Use Cua Volume, the one volume every Space and agent of this user shares. Inside a Space it is mounted as a folder (/volume on…

@trycua@trycuaInstall Skill
gui-automation

gui-automation

Use when you need to visually interact with a GUI: test buttons, fill forms, verify visual layouts, fuzz web pages, automate user…

@trycua@trycuaInstall Skill
supercomputer

supercomputer

The user's computers working as one supercomputer. Run training, fine-tuning, evals and any GPU or heavy work on the best of them…

@trycua@trycuaInstall Skill
jev-use

jev-use

Build or adapt a bounded computer-use loop where Cua Driver observes and acts, TypeSafe Jev selects only from application-owned…

@trycua@trycuaInstall Skill

More skills from other plugins.

1password

1password

Set up and use 1Password CLI for sign-in, desktop integration, and reading or injecting secrets.

openclaw3w393k
@openclaw@openclawInstall Skill

Questions about cua-spaces.

Which coding agents can use cua-spaces?
cua-spaces installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.