Show HN: Drive any macOS app in the background without stealing the cursor

  • Uh oh!

    There was an error while loading. Please reload this page.

  • Notifications You must be signed in to change notification settings
  • Fork 932
  • Star 14.9k
  • Code
  • Issues 94
  • Pull requests 132
  • Actions
  • Projects
  • Security and quality 0
  • Insights
Additional navigation options  mainBranchesTagsGo to fileCodeOpen more actions menu

Folders and files

NameNameLast commit messageLast commit date

Latest commit

History

3,199 Commits3,199 Commits
.github.github  
.vscode.vscode  
blogblog  
changelogchangelog  
demodemo  
docsdocs  
examplesexamples  
imgimg  
libslibs  
notebooksnotebooks  
scriptsscripts  
skills/gui-automationskills/gui-automation  
teststests  
.cursorignore.cursorignore  
.dockerignore.dockerignore  
.editorconfig.editorconfig  
.gitattributes.gitattributes  
.gitignore.gitignore  
.lycheeignore.lycheeignore  
.pre-commit-config.yaml.pre-commit-config.yaml  
.prettierignore.prettierignore  
.prettierrc.yaml.prettierrc.yaml  
CONTRIBUTING.mdCONTRIBUTING.md  
Development.mdDevelopment.md  
DockerfileDockerfile  
LICENSE.mdLICENSE.md  
MakefileMakefile  
Package.swiftPackage.swift  
README.mdREADME.md  
TESTING.mdTESTING.md  
package-lock.jsonpackage-lock.json  
package.jsonpackage.json  
pnpm-lock.yamlpnpm-lock.yaml  
pyproject.tomlpyproject.toml  
pyrightconfig.jsonpyrightconfig.json  
uv.lockuv.lock  
View all files

Repository files navigation

  • README
  • Contributing
  • MIT license
Cua logo

Build, benchmark, and deploy agents that use computers

cua.ai Discord Twitter Documentation
trycua%2Fcua | Trendshift

Cua Driver — The background computer-use agent
Cua & Cua Sandbox Cua Bench Lume

Drive any native macOS app in the background — agents click, type, and verify without stealing the cursor, focus, or Space, even on non-AX surfaces like Chromium web content and canvas-based tools (Blender, Figma, DAWs, game engines). Use with the CLI or MCP server for Claude Code, Cursor, and custom clients. Every session records as a replayable trajectory.

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/trycua/cua/main/libs/cua-driver/scripts/install.sh)"

Full tool reference, architecture notes, and the Claude Code skill ship with the package: libs/cua-driver/README.md.

Build agents that see screens, click buttons, and complete tasks autonomously. One API for any VM or container image — cloud or local.

pip install cua
# Requires Python 3.11 or later
from cua import Sandbox, Image

# Same API regardless of OS or runtime
async with Sandbox.ephemeral(Image.linux()) as sb:   # or .macos() .windows() .android()
    result = await sb.shell.run("echo hello")
    screenshot = await sb.screenshot()
    await sb.mouse.click(100, 200)
    await sb.keyboard.type("Hello from Cua!")
    await sb.mobile.gesture((100, 500), (100, 200))  # multi-touch gestures
Linux container Linux VM macOS Windows Android BYOI (.qcow2, .iso)
Cloud (cua.ai) 🔜 soon
Local (QEMU)

Get Started | Examples | API Reference

cuabot screenshot

cuabot gives any coding agent a seamless sandbox for computer-use. Individual windows appear natively on your desktop with H.265, shared clipboard, and audio.

npx cuabot                 # Setup onboarding
# Run any agent in a sandbox
cuabot claude              # Claude Code
cuabot openclaw            # OpenClaw in the sandbox

# Run any GUI workflow in a sandbox
cuabot chromium
cuabot --screenshot
cuabot --type "hello"
cuabot --click <x> <y> [button]

Built-in support for agent-browser and agent-device (iOS, Android) out of the box.

Get Started | Installation | First spotted at ClawCon

cuaXclawdbot_nbg

Evaluate computer-use agents on OSWorld, ScreenSpot, Windows Arena, and custom tasks. Export trajectories for training.

# Install and create base image
cd cua-bench
uv tool install -e . && cb image create linux-docker

# Run benchmark with agent
cb run dataset datasets/cua-bench-basic --agent cua-agent --max-parallel 4

Get Started | Partner With Us | Registry | CLI Reference

Create and manage macOS/Linux VMs with near-native performance on Apple Silicon using Apple's Virtualization.Framework.

# Install Lume
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/trycua/cua/main/libs/lume/scripts/install.sh)"

# Pull & start a macOS VM
lume run macos-sequoia-vanilla:latest

Get Started | FAQ | CLI Reference

Package Description
cuabot Multi-agent computer-use sandbox CLI
cua-agent AI agent framework for computer-use tasks
cua-sandbox SDK for creating and controlling sandboxes
cua-computer-server Driver for UI interactions and code execution in sandboxes
cua-bench Benchmarks and RL environments for computer-use
lume macOS/Linux VM management on Apple Silicon
lumier Docker-compatible interface for Lume VMs
  • Documentation — Guides, examples, and API reference
  • Blog — Tutorials, updates, and research
  • Discord — Community support and discussions
  • GitHub Issues — Bug reports and feature requests

We welcome contributions! See our Contributing Guidelines for details.

MIT License — see LICENSE for details.

Third-party components have their own licenses:

  • Kasm (MIT)
  • OmniParser (CC-BY-4.0)
  • Optional cua-agent[omni] includes ultralytics (AGPL-3.0)

Apple, macOS, Ubuntu, Canonical, and Microsoft are trademarks of their respective owners. This project is not affiliated with or endorsed by these companies.

Stargazers over time

Thank you to all our GitHub Sponsors!

coderabbit-cli

About

Open-source infrastructure for Computer-Use Agents. Sandboxes, SDKs, and benchmarks to train and evaluate AI agents that can control full desktops (macOS, Linux, Windows).

cua.ai

Topics

windows macos swift agent apple virtualization operator desktop-automation hacktoberfest containerization cua manus lume windows-sandbox virtualization-framework ai-agent computer-use computer-use-agent

Resources

Readme

License

MIT license

Contributing

Contributing

Uh oh!

There was an error while loading. Please reload this page.

Activity Custom properties

Stars

14.9k stars

Watchers

53 watching

Forks

932 forks Report repository

Releases 471

cua-driver-v0.0.13 Latest Apr 27, 2026 + 470 releases

Sponsor this project

  Sponsor

Uh oh!

There was an error while loading. Please reload this page.

Learn more about GitHub Sponsors

Uh oh!

There was an error while loading. Please reload this page.

Contributors

Uh oh!

There was an error while loading. Please reload this page.

Languages

  • HTML 67.4%
  • Python 20.2%
  • Swift 6.7%
  • TypeScript 2.9%
  • Shell 1.7%
  • JavaScript 0.4%
  • Other 0.7%