Cua is an open-source, MIT-licensed platform (github.com/trycua/cua) for Computer-Use 2.0 automation — letting AI agents operate computers by clicking, typing, reading screens, and running code. Unlike traditional RPA or browser automation tools, Cua treats the graphical interface as one tool surface in an agent loop, alongside code execution, shell commands, and structured API calls. The platform ships four main components: Cua Driver, Cua Sandbox, Lume, and Cua Bench.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/trycua/cua/llms.txt
Use this file to discover all available pages before exploring further.
The four components
Cua Driver
Drive native desktop apps in the background on macOS, Windows, and Linux. Agents click, type, and verify without stealing the cursor or keyboard focus. Connects to Claude Code, Cursor, Codex, and other harnesses via MCP over stdio.
Cua Sandbox
Create fully isolated, agent-ready computers — Linux containers, macOS VMs, Windows VMs, or Android — from a single Python API. One
async with block starts and tears down the sandbox automatically.Lume
Create and manage macOS and Linux VMs with near-native performance on Apple Silicon using Apple’s Virtualization.framework. Powers the local macOS sandbox backend inside Cua Sandbox.
Cua Bench
Evaluate computer-use agents on OSWorld, ScreenSpot, Windows Arena, and custom tasks. Export trajectories for training and reinforcement learning.
Computer-Use 2.0
The term computer use originally described agents that interpreted screenshots and controlled a GUI with mouse and keyboard events. Cua uses Computer-Use 2.0 to describe a broader model: an agent chooses among three complementary action surfaces during a single task.- Coding surface — the agent writes and runs code as the action itself.
- Tool-use surface — the agent makes typed calls to tools, APIs, and MCP servers.
- UI automation surface — the agent clicks, types, and scrolls through interfaces designed for humans.
Language support
Python SDK
pip install cua — supports Python 3.12 and 3.13. Includes the Sandbox SDK, Agent SDK, and CLI. The meta-package pulls in cua-sandbox, cua-agent, and cua-cli.TypeScript SDK
Generated UniFFI bindings for TypeScript applications. Import
@trycua/cua-driver to embed the Cua Driver native runtime directly in a Node.js or Electron app.Packages
| Package | Description |
|---|---|
cua | Unified SDK meta-package (Sandbox + Agent + CLI) |
cua-sandbox | SDK for creating and controlling sandboxes |
cua-agent | AI agent framework for computer-use tasks |
cua-driver | Background computer-use for macOS, Windows, Linux |
cua-bench | Benchmarks and RL environments for computer-use |
lume | macOS/Linux VM management on Apple Silicon |
Choose your path
Drive an existing app
Already have a machine with apps installed? Start with Cua Driver to give an agent access to it without disrupting your desktop.
Start a fresh sandbox
Need a clean, isolated Linux desktop? Spin one up with Docker in a single Python script — no VM setup required.
Create a macOS VM
Need a full macOS virtual machine on Apple Silicon? Lume downloads and configures one from an Apple restore image.
Benchmark an agent
Want to evaluate or train a computer-use model? Cua Bench provides verifiable tasks, reproducible environments, and trajectory export.