Vercel Labs has released agent-desktop, an open-source command-line interface for use on AI agent desktops on macOS, Windows, and Linux. Agent-desktop reads each application through the operating system's availability tree, rather than through screenshots. The agent receives a JSON snapshot with a link to each element that it can act on. Version 1.0.2 released on October 30, 2026, running Apache-2.0. For developers, any shell-enabled coding agent can now manage native applications without a vision model.
TL;DR
- Library: Rust CLI and C library. 60 command names, 56 workers.
- Works on: macOS 13+, Windows 10 1809+ or Server 2019+, Ubuntu 24.04+, x64 and ARM64. Regular CPU, no GPU.
- Performance: Deterministic, retry-safe actions by reference. There is no independent test of computer use yet.
- Best Result: 78-96% fewer tokens in dense Electron applications by skeletal bypass (self-assessment).
What is an agent desktop?
Agent-desktop is a Rust CLI and C library from Vercel Labs for reading and working with desktop applications. This is a tool that agents call, not an agent. It does not have LLM and GUI. Each command prints one JSON envelope and exits. The cycle of observation, action and verification remains within your agent.
How does the desktop agent work?
Each command goes through a fixed chain. The CLI or C library calls agent-desktop-core, which reaches the OS only through the PlatformAdapter flag. One platform container then interacts with its own accessibility API:
- macOS: AX API
- Windows: UI Automation
- Linux: AT-SPI
Core never imports a platform crate. Each binary is compiled to run on only one OS.
Pictures and links
The snapshot is assigned qualified links such as @s8f3k2p9:e8. The snapshot ID inside the link makes it self-describing. An empty @e8 is a rejected by INVALID_ARGS. When changing the UI, the action returns STALE_REF or AMBIGUOUS_TARGET. The agent then takes a new photo.
Every error carries disposition. Agents should retry only when safe is specified. Resolving the link is strict and does not result in a closure rather than a guess.
Skeleton and detailing
Dense applications can provide thousands of availability nodes. The --skeleton image is only readable to 3 depth levels. Cut containers report children_count and receive a drill reference. snapshot --root then reads one region into the same snapshot.
The developer reported 78-96% token reduction compared to full tree dumps in Slack, VS Code, and Notion. On Apple Maps, he reported that 3811 tokens per view had dropped to 273. The simulated 52-step task was reduced from 198K to 31K tokens. These are self-reported figures and not an independent guide.
Default headless
Link actions are performed through the Accessibility API without moving the pointer or focusing . This is what allows agents to work while you continue to use the car. The global flag --headed allows physical input if necessary. Each link action also automatically waits up to 5000ms for a visible, enabled, and stable target.
How does this compare to using a pixel computer?
Model-side computer tools work based on screenshots and pixel coordinates. Anthropic's docs state that each screenshot costs approximately 1000 to 1800 input tokens. His toolkit definition adds about 4500 input tokens per request. The OpenAI tool similarly returns the click, enter, and scroll actions that your code performs.
Agent-desktop is model independent and returns a structure rather than images. UFO² from Microsoft also uses UI automation, but comes as a full Windows agent.
| Function | agent-desktop (Vercel Labs) | Claude uses a computer | Using the OpenAI computer | Microsoft UFO² |
|---|---|---|---|---|
| Type | CLI+C library tool | API Client Toolkit | API tool | Full agent structure |
| How he sees the user interface | OS Availability Tree | Screenshots | Screenshots or code (PyAutoGUI, Playwright) | UIA + visual hybrid |
| Model included | No, any agent | Claude models | OpenAI Models | Customizable LLM |
| Platforms | macOS, Windows, Linux | Any environment you host (ref: Linux Docker). | Browser or desktop you host | Windows (UFO²) |
| Moves the cursor | No, headless by default | Yes, pixel clicks | Yes, pixel clicks | GUI + API Actions |
| Token cost per image | 273 (Apple Maps skeleton, self-assessment) | ~ from 1000 to 1800 per screenshot | Not disclosed | Not disclosed |
| License | Apache-2.0 | Own API | Own API | Massachusetts Institute of Technology |
| Price | Free | Standard token price | Standard token price | Free (plus LLM costs) |
How do I install and use the desktop agent?
Set with npm install -g agent-desktop. Bun, Yarn and pnpm also work. The package includes native binaries for x64 and ARM64.
- macOS: grant access permission using
agent-desktop permissions --guide. - Windows: Applications at your terminal integrity level do not require a grant.
- Linux: requires a graphical session with
at-spi2-core.
Agents learn this tool from the accompanying documentation via agent-desktop skills get desktop. The skill is also listed in the kills.sh file. The C library allows Python, Swift, Go, Ruby and Node hosts to call it in-process. For web content, Electron launch --cdp opens the DevTools port to the browser agent.
Key Takeaways
- Agent-desktop allows any agent to use a computer through OS availability trees.
- It runs on macOS, Windows and Linux, x64 and ARM64 running Apache-2.0.
- Headless link actions never move the pointer or take away focus.
- Skeleton shots reduce token cost from 78% to 96% (self-assessment).
- Applications without an accessibility tree remain unavailable.
Check out the GitHub repository, docs and the npm package. Also follow us on Twitter and don't forget to join our 150k+ML SubReddit and subscribe in our newsletter. Wait! are you on telegram? now you can also join us on Telegram.
💬 Discussion 0
BBCode & Emoji supportedParticipate in discussions, ask authors questions, and share benchmarks by joining the ProArena engineering community.