trycua/cua
Rust-backed sandboxes and cross-OS desktop controls for computer-use agents
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
Cua is a monorepo with separate layers for environment lifecycle, desktop control, and human collaboration. The Rust core in libs/cua backs the CLI and Python, TypeScript, and Rust SDKs, which can run in-process or through a shared cua daemon. Runtime state and optional port probes determine sandbox readiness without requiring an in-guest agent. Images with cua-spacesd add a gRPC service on port 3211 for processes, files, screenshots, input via Cua Driver, and video/audio streaming.
Cua Driver also works independently on an existing desktop via CLI, MCP, or typed SDKs. Spaces adds a native macOS app and a shared core with a Tauri app for Linux and Windows. The SDK does not embed an agent loop: your harness supplies planning and model calls. The root Python workspace targets Python 3.12 or 3.13 and lists openai>=2.20.0,<3.0.0 and anthropic>=0.67.0; these workspace dependencies are not prerequisites for the standalone Rust CLI.
Key Capabilities & Differentiators
The main capability is combining shell or API work with GUI actions in one workflow. Cua Driver can inspect and operate native apps and browsers on macOS, Windows, and Linux, and can deliver input without moving the foreground pointer or taking focus where supported. The CLI can provision local environments such as an Ubuntu gVisor container, while Lume uses Apple's Virtualization.Framework to run macOS and Linux VMs on Apple Silicon. Spaces can use owned machines or run in your own AWS, Google Cloud, or Modal account. It supports separate human and agent cursors and approval-gated transfer of signed-in app sessions through the encrypted Keyvault on the Mac.
Cua Bench covers task authoring, evaluation, and trajectory export. Its simulated browser quickstart can verify a reference solution without a VM, Docker, or a model API key. CUA-S1-FORMS is a separate research model that scores candidate decisions from structured UI elements and document values rather than generating responses token by token. Application code orders the actions, Driver can optionally execute them, and model weights are distributed separately on Hugging Face.
Trade-offs & Limitations
For browser-only workflows where DOM selectors and assertions suffice, Playwright is a more direct choice. Cua earns its additional setup when a task must cross into native applications, run on a managed desktop, or allow a person to take over mid-run. Validate background input against the exact app and platform before relying on it. A functioning sandbox does not guarantee guest-level screenshots or input: those controls depend on the image and its services. Remote hosts also add network and permission considerations, especially when streaming desktops or transferring signed-in sessions.
Licensing follows component boundaries, not the repository-level MIT label. The SDK, CLI, Driver, and Lume are MIT; Spaces, including cua-spacesd, and current Cua Driver Bench releases are source-available under FSL-1.1-MIT. FSL permits self-hosting but restricts competing hosted services, and each covered release converts to MIT two years after shipment. Cua Bench and Cua Driver Bench are distinct components. Budget compute around actual guest count, apps, and streams, and account for relay or model API dependencies separately from local execution.
Hardware & Deployment Guide
Start with the smallest component that proves your workflow: use the Driver quickstart for an existing desktop, cua sb create ubuntu --name dev for the documented local gVisor path, or Cua Bench's simulated browser task for evaluation. The Cua Bench browser quickstart uses Python 3.12 or 3.13, uv, and Playwright Chromium. The macOS Spaces app requires macOS 26 or later, and Lume requires Apple Silicon. Review the installer before executing it: it always installs the cua CLI, offers optional components including Driver, and then starts cua auth login. The cua host setup path uses the cua.ai relay without port forwarding; it is not an offline path.
Measure guest boot time, peak memory, and desktop streaming under your expected concurrency; size local model inference separately if you use it. Pin versions for repeatable evaluation: Spaces 0.41.53 bundled Driver 0.73.0, and Spaces 0.41.52 bundled cua 0.31.13. Driver 0.73.1 was also published as an opt-in nightly, not a replacement for the stable channel. For migrations, remove cuabot rather than reusing it: it is deprecated and has known security issues.
cua SDK runs in-process or through a shared daemon, with Python, TypeScript, and Rust interfaces.cua-spacesd exposes processes, files, screenshots, input, and video/audio streaming over gRPC on port 3211.Teams bringing their own agent harness that need isolated desktops, browser-to-native workflows, human handoff, or verifiable computer-use tasks.
Browser-only testing already meets your needs, you want an SDK with a built-in general-purpose agent, or your hosted offering requires unrestricted MIT rights to current Spaces components.
Quick Start & Installation
curl -fsSL https://cua.ai/install.sh | sh
Comparison vs. Top Agents & Frameworks Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| cua ★ | 34.1k | +973 | Rust | MIT | Rust-backed sandboxes and cross-OS desktop controls for computer-use agents |
| multica | 59.1k | +891 | Go | — | A shared task board that dispatches coding agents to machines you control. |
| OpenHands | 94.8k | +374 | TypeScript | MIT | Self-hosted control plane for coding agents across local, remote, and cloud back |
| windmill | 19k | +236 | Rust | — | PostgreSQL-backed orchestration for code-first workflows, apps, and AI agents |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/trycua/cua.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about cua
How do I connect an existing agent, and do I need to install it in every guest?
cua SDK to provision and manage environments from your own harness. A basic sandbox does not need an in-guest agent; an image with cua-spacesd exposes additional controls over gRPC on port 3211.How should I size the host, and do I need a GPU?
Can I self-host Cua or offer it as a managed service?
cua-spacesd, and current Cua Driver Bench releases are FSL-1.1-MIT. That license permits self-hosting but restricts competing hosted services; each covered release converts to MIT two years after shipment. Review legal/LICENSING.md and legal/COMMERCIAL.md before offering a hosted or managed product.When should I choose Cua over a browser automation stack like Playwright?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy