
Cua driver
Lets an agent drive native macOS apps in the background via accessibility snapshots
Cua driver is an open-source agent skill for developer tools. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.
- Scripts
- None
- Platforms
- Claude Code, Codex, Cursor
- GitHub stars
- 1K
- Last commit
- License
- Apache-2.0
- Listing updated
Similar skills
About Cua driver
This skill teaches an AI coding agent to operate native macOS applications through the cua-driver command line tool or its MCP server. The agent takes an accessibility tree snapshot of a window, acts on elements by their index (clicking, typing, scrolling, pressing keys), and then re-snapshots the window to confirm the action landed. The core rule is that the user's frontmost app must not change, so the skill steers the agent away from commands like open, osascript activation and raw cursor moves.
The skill also covers the practical edges of this workflow: choosing between accessibility-based and pixel-based targeting, reading window screenshots with coordinate crosshairs, handling menu bars only when the target is already frontmost, and working with browsers and Electron apps through DOM reads. It includes a common error table and guidance on when to ask the user before destructive steps or app launches.
It expects macOS 14 or newer, the cua-driver binary with Accessibility and Screen Recording permissions granted to CuaDriver.app, and a running driver daemon. Optional reference files cover web apps and trajectory recording.
When your agent uses it
Drive a native macOS app via the cua-driver CLI (default) or MCP server — snapshot its AX tree, click/type/scroll by element_index, verify via re-snapshot. Use when the user asks you to operate, drive, automate, or perform a GUI task in a real macOS application on the host (e.g. "open a file in TextEdit", "navigate to /Applications in Finder", "click the Save button in Numbers").
From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.
What it can access
From a static check of its 5 files (85 KB) on GitHub on 2 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.
Check another skill before you install it.
Install
Copy the skill folder to ~/.claude/skills/cua-driver to use it in all your projects:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/melandlabs/openloomi.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/cua-driver &&
cp -R "$tmp/skills/cua-driver" ~/.claude/skills/cua-driver &&
rm -rf "$tmp"For one project only, put the folder in .claude/skills/cua-driver inside it instead.
Copy the skill folder to ~/.agents/skills/cua-driver to use it in every repository:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/melandlabs/openloomi.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/cua-driver &&
cp -R "$tmp/skills/cua-driver" ~/.agents/skills/cua-driver &&
rm -rf "$tmp"For one repository only, put the folder in .agents/skills/cua-driver inside it instead.
Copy the skill folder to ~/.cursor/skills/cua-driver to use it in every project:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/melandlabs/openloomi.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/cua-driver &&
cp -R "$tmp/skills/cua-driver" ~/.cursor/skills/cua-driver &&
rm -rf "$tmp"For one project only, put the folder in .cursor/skills/cua-driver inside it instead.
Run in a terminal (add --scope workspace to install it for the current workspace only):
gemini skills install https://github.com/melandlabs/openloomi.git --path skills/cua-driverOr copy the folder to ~/.gemini/skills/cua-driver yourself.
For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/cua-driver:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/melandlabs/openloomi.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/cua-driver &&
cp -R "$tmp/skills/cua-driver" ~/.copilot/skills/cua-driver &&
rm -rf "$tmp"For one project only, put the folder in .github/skills/cua-driver inside it instead.
Get the folder:
git clone --depth 1 https://github.com/melandlabs/openloomi.gitThen copy openloomi/skills/cua-driver into your agent's skills folder as cua-driver. Agents that support SKILL.md read one folder per skill.
What it does
- Accessibility tree snapshots
- Captures a window's element tree with indexed handles the agent can act on.
- Background-only control
- Dispatches clicks, typing and key events to a target app without raising its windows.
- Snapshot verification loop
- Requires a re-snapshot after each action to check the change actually happened.
- Pixel fallback for canvases
- Uses window-local screenshot coordinates for surfaces the accessibility tree cannot reach.
- Browser and Electron guidance
- Covers sparse trees, opening URLs in windows and reading page text through JavaScript.
- Safety rules for focus
- Lists commands that would steal focus and the alternatives to use instead.
Good for
- Open a file in TextEdit without switching away from my editor
- Navigate Finder to a specific folder in the background
- Click the Save button in Numbers and confirm the document saved
- Read text from a Chrome page while I keep working in another app
- Fill in a form field in a native macOS app
Cua driver FAQ
What does the skill need before Cua driver can run?
It needs macOS 14 or newer, the cua-driver CLI with CuaDriver.app, and Accessibility and Screen Recording permissions granted to that app. The driver daemon should be started before element-index workflows.
Will Cua driver bring apps to the front when it works?
The skill is designed not to. It uses launch_app for starting apps and per-process input events, and it tells the agent to avoid open, osascript activation and cursor-moving commands unless the user explicitly asks for a focus change.
Which tools does Cua driver use?
It uses cua-driver tools such as launch_app, get_window_state, click, type_text, scroll, press_key, hotkey and set_value, and can also be used through the cua-driver MCP server.
Does Cua driver work with Windows or Linux apps?
No. The skill targets native macOS applications through the macOS accessibility tree and macOS-specific event paths.
How do I install Cua driver in Claude Code?
Copy the skill folder from GitHub to ~/.claude/skills/cua-driver to use it in all your projects, or to .claude/skills/cua-driver in one project.
Does Cua driver run scripts?
No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.
Which AI agents can use Cua driver?
Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.
What are the best alternatives to Cua driver?
The closest alternatives to Cua driver are Semantouch, Accessibility skill, Desktopmanager operator, Agent CLI and Clone.
Where this comes from
- Description: from the skill's own SKILL.md.
More from melandlabs/openloomi

Guides an agent through loading, transforming and charting tabular data with Polars
- Open source
- 1K GitHub stars
- Analytics and data

Keeps a MENTAL_MODEL.md scratchpad in the workspace to carry lessons across turns
- Open source
- 1K GitHub stars
- Knowledge and memory

Guides an agent through designing and building a continual learning benchmark task
- Open source
- 1K GitHub stars
- AI models and LLM tooling

Installs and manages hooks that mirror Claude Code events onto the Loomi Pet
- Open source
- 1K GitHub stars
- Developer tools

Lets an agent search, connect and run actions across 1000+ external apps via Composio
- Open source
- 1K GitHub stars
- Developer tools

Guides installing, configuring and troubleshooting OpenLoomi Desktop from Codex
- Open source
- 1K GitHub stars
- Developer tools





