What is agent-desktop?
agent-desktop is a Rust CLI and C library from Vercel Labs. A snapshot returns JSON with a ref for every element the agent can act on. The agent acts on that ref and snapshots again. The README's point is that refs stay on the accessibility tree, so the loop does not guess from pixels.
The repository is vercel-labs/agent-desktop, Apache-2.0. GitHub reported 7,248 stars on November 2, 2026. On that date the npm package agent-desktop at version 1.0.2 listed the same repository. It lives in Open-Source AI Developer Stack, beside T3 Code, which drives agents, and OpenBot, which gives an agent its own browser.
Key Features
- Observe with
snapshot,find, andget, then act on a ref with commands such asclick - Headless by default: ref actions use the accessibility API and do not move the pointer or take focus
--headedis the explicit opt-in for physical input- A ref belongs to one snapshot; a stale UI returns
STALE_REForAMBIGUOUS_TARGETand you snapshot again - The binary ships its own docs:
agent-desktop skills get desktopandagent-desktop skills get platform
macOS needs Accessibility permission (agent-desktop permissions --guide). Windows needs no extra grant for apps at the terminal's integrity level. Linux needs the user's graphical session with at-spi2-core.
How to Access
Install with npm install -g agent-desktop, then run agent-desktop version. Bun, Yarn, and pnpm can install the same package. The README also says you can download a native archive from GitHub Releases and keep its helper beside the executable. Homebrew and Scoop packages were not in the default catalogs when the README was checked.
A typical loop is agent-desktop snapshot --app Finder -i, then agent-desktop click on a ref from that snapshot, then another snapshot to verify. Quote refs in PowerShell, because @ is the splatting operator. To load the skill into a coding agent, the README documents npx skills add https://github.com/vercel-labs/agent-desktop --skill agent-desktop.