# Repository Briefing: trycua/cua
> Source: https://repoforai.com/repo/trycua/cua (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/trycua/cua
- **Official Docs / Website**: https://cua.ai
- **Category**: Agents & Frameworks (智能体与框架)
- **Primary Language**: Rust
- **License**: MIT
- **Engineering Health**: A+ (95/100 · Maintenance 35/35 · Adoption 20/25 · Releases 20/20 · License 20/20)
- **Latest Release**: cua-spaces-v0.41.53 (2026-12-03) — https://github.com/trycua/cua/releases
- **Review Snapshot**: 2026-12-03
- **Deployment / Stack Signals**: Self-Hosted, MCP, CLI, API
- **Momentum**: 34,112 ★ total (+189 24h / +973 7d) · 2,566 forks
- **Topics**: `agent`, `ai-agent`, `apple`, `computer-use`, `computer-use-agent`, `containerization`, `cua`, `desktop-automation`, `hacktoberfest`, `lume`, `macos`, `manus`
- **When to Use**: Best for: Teams bringing their own agent harness that need isolated desktops, browser-to-native workflows, human handoff, or verifiable computer-use tasks. Skip if: 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.

## Overview
```text
### Architecture & 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.
```

## Key Capabilities
```text
- Runtime control: The Rust-backed `cua` SDK runs in-process or through a shared daemon, with Python, TypeScript, and Rust interfaces.
- Guest services: `cua-spacesd` exposes processes, files, screenshots, input, and video/audio streaming over gRPC on port 3211.
- Desktop automation: Cua Driver supports macOS, Windows, and Linux via CLI, MCP, or typed SDKs, with background input where the platform and app allow it.
- Human handoff: Spaces supports separate human and agent cursors; Teleport stores sessions encrypted on the Mac and transfers them only after approval.
- Local isolation: The CLI provisions Ubuntu in gVisor, while Lume runs macOS and Linux VMs on Apple Silicon via Virtualization.Framework.
- Evaluation and models: Cua Bench verifies tasks and exports trajectories; CUA-S1-FORMS scores bounded form decisions separately from action execution.
```

## Quick Start / Clone
```bash
curl -fsSL https://cua.ai/install.sh | sh
```
