Agent Desktop

Hands for agents to drive desktop apps through the accessibility tree

What it is

Agent Desktop is the desktop-control layer Vercel Labs published on October 31, giving agents a reliable way to read and operate local apps through a CLI and C library for macOS, Windows and Linux. It skips screenshot recognition and reads the operating system accessibility tree instead: one snapshot returns JSON with a ref for every actionable element, the agent acts on a ref and snapshots again to verify, and that observe-act-verify loop stays inside your own agent with no pixel matching. On macOS each snapshot reuses a private command host that retains native accessibility objects, so a removed row cannot silently resolve to a surviving row with the same identifier, and the host exits after 15 idle minutes. Headless calls prohibit foreground activation and synthesised input, so batch runs never steal focus or the cursor. The repo also ships an optional desktop skill template, which is separate from the native CLI and sends screen descriptions to a configured model provider.

Highlights

  • Cross-platform agent developers who need agents to drive native apps such as IDEs, Slack or file managers that expose no API; teams replacing desktop RPA; engineers studying the reliability of computer use.

How to use

Install globally with npm, then run agent-desktop permissions —guide to grant Accessibility on macOS; Windows needs no grant at the terminal’s integrity level and Linux needs a graphical session with at-spi2-core. List apps, snapshot a target to get refs, click or type against a ref and snapshot again to verify. You can also download the platform release archive and keep the helper beside the binary, or embed the CLI as a library in your own runtime.

License

Released under Apache-2.0. Read the terms before commercial use or redistribution, especially if you plan to offer it as a service.