cua-driver

cua-driver is a skill for Claude Code, Codex from trycua/cua. It costs 98 tokens per session (14,659 once invoked), scanned A, original, MIT.

A tool for controlling native desktop apps on macOS, Windows, and Linux through their menus, windows, and visible controls.

In plain words
What is it for?
Automating desktop-app tasks such as opening menus, clicking controls, entering text, moving windows, and checking the app's current state.
Why use it?
It gives an agent a defined way to inspect an app before acting and check the result afterward, reducing mistakes caused by changing screens.

Skill for Claude CodeCodex

About the project

trycua/cua is a toolkit for building and testing AI agents that operate computers by seeing screens, clicking controls, and typing across operating systems and virtual machines. It serves agent developers, benchmark authors, and teams generating training data for computer-use models. Catalogue add-ons provide ways to operate Cua drivers and related agent workflows.

trycua/cua · 22,154 stars · on GitHub

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/trycua/cua/cua-driver
Any agent
npx skills add trycua/cua --skill cua-driver
Clone the repo
git clone --depth 1 https://github.com/trycua/cua

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for cua-driver

README.md
[![agentmods](https://agentmods.dev/badge/skills/trycua/cua/cua-driver.svg)](https://agentmods.dev/skills/trycua/cua/cua-driver)
Your own site
<a href="https://agentmods.dev/skills/trycua/cua/cua-driver"><img src="https://agentmods.dev/badge/skills/trycua/cua/cua-driver.svg" alt="Measured on agentmods" height="20"></a>
Per session 98 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 14,659 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00098 $0.14659
Opus 5 $0.00049 $0.07329
Sonnet 5 $0.00020 $0.02932
Haiku 4.5 $0.00010 $0.01466

Measured today against content hash 445a218ca5f4, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

cua-driver scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

libs/cua-driver/rust/Skills/cua-driver/SKILL.md · 1,124 lines

How it starts

The opening of the file, as written. The whole thing — 1,124 lines — stays where its author put it; the contents beside it link to each section on GitHub.

cua-driver

Orchestrates cross-platform app automation via cua-driver. Whenever a user asks to drive a native app, follow the loop in this skill rather than calling tools ad-hoc — the snapshot-before-action invariant is not optional and silently breaks if you skip it.

Consult recent Cua activity only for continuation

When both history_status and history_query are advertised and the user asks to continue, resume, or recall prior Cua work, call history_status first. If history is healthy and access is admitted, make one bounded initial history_query before broad application or window discovery. Treat returned metadata only as a lead and verify current state through the least intrusive appropriate source. Content, geometry, arguments, results, and user intent omitted from the metadata remain unknown.

Make another bounded query only when the initial slice exposes a relevant session or sequence boundary; never broaden a query to reconstruct excluded fields.

Continue without history when either tool is absent, access is denied, the query is empty, or history is unhealthy. Do not query history for unrelated tasks merely because the tools are advertised, and never mutate history lifecycle or settings.

Platform-specific reading — read this first

This file is the cross-platform core: snapshot invariant, CLI vs MCP choice, tool surface naming, behavior matrix, canonical loop, pixel-click contract, common failure modes. The platform-specific material (forbidden-list, accessibility tree implementation, launch semantics, click dispatch) lives in companion files in this same directory:

  • macOS — read MACOS.md (no-foreground contract, forbidden open/osascript/cliclick invocations, AXMenuBar navigation, SkyLight pixel-click dispatch).
  • Windows — read WINDOWS.md (UIA tree vs AX, UWP / ApplicationFrameHost hosting, layered UIA+PostMessage click chain, Session 0 isolation, Windows-specific focus-steal vectors).
  • Linux — read LINUX.md (X11 background input via AT-SPI + XSendEvent and compositor-specific Wayland capabilities).

Read the full file on GitHub · 1,124 lines

Files

What ships with it

7 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. today Changed 445a218ca5f4
  2. 5d ago First seen · 1,124 lines · 98 tokens per session scan A dee623960a0c

Subscribe to this mod's changes

cua-driver is a skill published in the GitHub repository trycua/cua (22,154 stars, last pushed yesterday), licensed MIT. It adds 98 tokens to every session and 14,659 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.