Cua Driver lets an AI agent operate native desktop applications in the background — without stealing focus, moving your cursor, or raising windows. By the end of this tutorial, your agent will open Calculator, compute 6 × 7, and report 42, all while your desktop stays undisturbed. You will install the driver, connect Claude Code (or another harness), and run the same prompt on macOS, Windows, or Linux.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.
New to agents that operate applications? Read What is computer use? first, then return here.
Steps
Install Cua Driver
Use the one-line installer for your platform. It picks the right path automatically and requires no administrator access.
- macOS
- Windows
- Linux
Requires macOS 14 (Sonoma) or later.Start the daemon through the app bundle so macOS attributes permission prompts to Then prompt for Accessibility and Screen Recording permissions:Check what was actually granted:If either permission is missing, run the grant pair again:
CuaDriver.app. This is what makes TCC grants stick to the driver:Full install steps, PATH setup, and permission details live in the Install Cua Driver guide. The daemon starts in
standard authorization mode, which is the right default for this tutorial.Verify it is working
Before handing control to an agent, confirm the driver can see your desktop:List the running GUI applications the driver can reach:If you see your running apps listed, the plumbing works. That is the only CLI you run by hand; from here the agent does the driving.
Connect your agent
Register Cua Driver with your agent harness once. The
mcp-config command prints the exact registration command for your client.- Claude Code
- Codex
- Prime Agent
- Hermes
Install the Claude Code skill — the turnkey path that teaches Claude Code how to drive apps through Cua Driver:Or register the MCP server directly:That command prints a registration command specific to your install path:For the vision/computer-use compatibility mode (window-scoped screenshots):
Using Cursor, OpenCode, OpenClaw, or another harness? See Connect your agent for more options.
Ask your agent
Now prompt your agent in plain English. It will translate the request into Cua Driver tool calls automatically.Everything runs in the background. The agent picks the right calculator for your OS (Calculator on macOS and Windows, the system calculator on Linux), so the same prompt works on all three platforms.
- Claude Code
- Codex
- Prime Agent
Confirm what happened
The agent reports 42. Cua Driver kept the calculator in the background the entire time — it never stole your keyboard focus and never moved your cursor. This is best-effort background: the agent drives the app while you keep working.To verify the driver’s background behavior, check the driver logs or run:
What you built
You installed Cua Driver, verified it could see your desktop, registered it with an agent harness via MCP, and prompted in plain English for a result computed inside a real desktop app. The agent did the driving through Cua Driver, in the background, on your platform.Next steps
Connect your agent
Register Cua Driver with Cursor, Antigravity, OpenCode, OpenClaw, Pi, and more.
Use the SDK in-process
Embed the typed SDK directly in a Python or TypeScript application.
Permission modes
Decide whether your workload needs
standard, bounded, or unrestricted mode.How Cua Driver works
Understand MCP over stdio, the Rust native runtime, UniFFI bindings, and the daemon architecture.