Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

cua

БесплатноБез исполняемых скриптовНе проверен

Cua gives AI agents a computer of their own: disposable Linux, Windows or macOS sandboxes on your machine that an agent can run commands in, take screenshots…

TerminalSkillsот TerminalSkills★ 221 звезда на GitHub

Об этом скилле

Cua — disposable computers for AI agents

Overview

Cua (trycua/cua) is a toolkit for giving an agent a real desktop to work on without touching your own machine. This skill covers the part that is open and runs locally: the cua command (a Rust CLI) and the Python SDK cua-sandbox.

  • A sandbox is a Linux container or a VM (Linux, Windows Server 2022, macOS on Apple silicon) created from an image. Images published by Cua (ghcr.io/trycua/linux:24.04 and others) ship a small in-guest daemon, cua-spacesd, which adds screenshots, mouse, keyboard, files and processes. Any other registry image also works: for a container the CLI puts a static cua-spacesd in it (unless --no-spacesd), so exec, files and ports work, but there is no desktop, so screenshots, mouse and keyboard only make sense on a desktop image.
  • The SDK has no agent inside. You bring your own model and loop (Claude, GPT, a local model) and let it call the sandbox methods below. The repo's README names the deprecated packages (cua-agent, cua-computer, cuabot): do not install those.
  • Cua Cloud has ended. Sandboxes run on your own machine (or on a machine you own that runs cua-spacesd); on="cloud" raises an error. This skill does not cover Cua Spaces accounts, the relay or teams.

Instructions

Installation

python3 -m venv .venv
.venv/bin/pip install "cua[sandbox]"
.venv/bin/cua --version

pip install cua brings the cua command through its cua-cli dependency; the sandbox extra adds cua-sandbox (Sandbox, Image). The repo also documents an installer script at cua.ai; the pip route avoids running a downloaded script.

Check which local runtimes this host can use, and let Cua install what is missing:

cua runtime doctor
cua runtime setup

The doctor prints one line per backend: container (needs Docker, Podman or Colima; gVisor runsc is used when installed, otherwise runc), qemu (VMs), lume (macOS guests, Apple silicon only) and firecracker. Read what cua runtime setup says it will do before accepting; some steps install software or edit the Docker daemon config.

Cua sends anonymous usage telemetry. Turn it off with cua telemetry off (or CUA_TELEMETRY=0, DO_NOT_TRACK=1) and inspect it with cua telemetry show-last.

Sandboxes from the command line

cua sandbox has the alias cua sb.

cua sb create linux --name research          # Cua's Ubuntu 24.04 desktop container
cua sb ls
cua sb exec research uname -a                # runs as `sh -c`, exits with the command's status
cua sb exec research --timeout 60 'ls /tmp | wc -l'
cua sb screenshot research -o desktop.png    # default file name is screenshot.png
cua sb view research                         # open the desktop in your browser
cua sb cp ./invoice.pdf research:/tmp/invoice.pdf
cua sb rm research -f

Aliases for create: linux, ubuntu, windows, macos[:tahoe|sequoia], omarchy, or any registry reference. Useful flags: --kind auto|container|vm, --runtime gvisor|runc|qemu|lume, --cpu, --memory 8GB, --tier slim|full, --service NAME=PORT, --json. The first create of an image pulls it, which can take minutes and several GB for VM images. A CLI sandbox stays until you remove it with cua sb rm; cua cache du shows the disk it uses.

For a plain container running your own service:

cua sb create python:3.12-slim --name api --service web=8000 -- python -m http.server 8000
cua sb url api web                           # loopback URL for the named service

One-shot computer actions with cua do

cua do sends single actions to a selected target, which is what a shell-driven agent needs.

cua do switch research                       # choose the target sandbox
cua do screenshot                            # saved under ~/.cua/screenshots (newest 20 kept)
cua do click 640 360
cua do type "quarterly-report.csv"
cua do key enter
cua do hotkey ctrl+shift+s
cua do scroll --help                         # direction and amount options
cua do shell 'xdg-open https://example.org'  # commands run inside the target

Coordinates are in screenshot pixels, so always take a screenshot before clicking. Actions are recorded as trajectories (cua trajectory); add --no-record to disable that. cua do snapshot adds an AI summary of the screen and needs ANTHROPIC_API_KEY in the environment.

Python SDK

All calls are async. Sandbox.ephemeral deletes the sandbox when the block ends; Sandbox.create keeps it.

import asyncio
from cua_sandbox import Image, Sandbox

async def main():
    async with Sandbox.ephemeral(Image.linux(), local=True) as sb:
        result = await sb.shell.run("uname -a", timeout=30)
        print(result.stdout)
        png = await sb.screen.screenshot()          # bytes
        open("desktop.png", "wb").write(png)
        width, height = await sb.screen.size()
        await sb.mouse.click(width // 2, height // 2)
        await sb.k
Полный SKILL.md на GitHub

Установить cua в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

_scores.json

FAQ

Что делает скилл cua?

Cua gives AI agents a computer of their own: disposable Linux, Windows or macOS sandboxes on your machine that an agent can run commands in, take screenshots of, and drive with mouse and keyboard, from a `cua` command line or a Python SDK. Use when someone asks to "give my agent a sandboxed desktop", "run a command in an isolated container or VM", "take a screenshot of the sandbox", "automate a GUI app safely", or "script a computer-use agent environment". Local sandboxes only; no account needed.

Как установить скилл cua?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл cua запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить cua с