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★ 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.04and 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
Установить cua в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
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), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic