agent-desktop
WorkflowVercel Labs' computer-use CLI: an agent operates desktop apps through the accessibility tree, in the background.
Install
$ npx skills add https://github.com/vercel-labs/agent-desktop --skill agent-desktop
Works with Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot and any other agent that reads SKILL.md.
Update
$ npm install -g agent-desktop
Updates the CLI. Re-run the npx skills add command to refresh the skill.
When to use it
- The task needs a desktop app that has no CLI or API, such as a native editor, mail client or system settings.
- You want the agent to drive a GUI without screenshots or pixel matching.
- You want the agent to work in the background without moving your pointer or stealing focus.
Commands & flags
- npm install -g agent-desktop
- Install the CLI for macOS, Windows or Linux.
- agent-desktop permissions --guide
- On macOS, walk through the Accessibility permission grant.
- agent-desktop snapshot --app Finder -i
- Read an app's interactive elements as JSON, each with a ref.
- agent-desktop click @s8f3k2p9:e8
- Act on a ref from that snapshot, then snapshot again to verify.
- agent-desktop skills get desktop
- Print the loop, ref and retry rules that match the installed version.
- agent-desktop mcp
- Serve every command as an MCP tool over stdio.
How to use it
Install the CLI, install the skill, then ask the agent to operate an app. The agent reads the app's accessibility tree as JSON with a ref per element, acts on a ref, and reads again to verify. The loop lives in your agent; the tool has no model inside.
npm install -g agent-desktop
agent-desktop status
npx skills add https://github.com/vercel-labs/agent-desktop --skill agent-desktop
Refs belong to their snapshot: after a UI change, expect STALE_REF or AMBIGUOUS_TARGET and take a new snapshot. Actions are headless by default; the --headed flag allows physical input.
Snapshots, clipboard reads and screenshots can contain private desktop content, so keep them out of public logs. Do not use it for web pages, where a browser tool fits better.
Why it earns its place
Most agent computer-use tools work from screenshots, which are slow and fragile. Reading the OS accessibility tree gives exact element names and actions, and it works across macOS, Windows and Linux with one command set. It is Apache-2.0 and maintained under Vercel Labs.
Try it
> Use agent-desktop to open the Settings app and tell me which display scaling option is selected.