ChengRang

agent-desktop

AI Coding Open Source

An Apache-2.0 CLI and C library from Vercel Labs that lets coding agents read and operate native desktop apps through the OS accessibility tree. Snapshots return a stable ref for every actionable element, actions are verified by a second snapshot, and execution is headless by default. It runs on macOS, Windows and Linux and installs from npm.

Computer UseAccessibility TreeOpen SourceCLIVercel
Visit agent-desktop

Disclaimer: Review content represents our editorial team's views and experience, not commercial recommendation or investment advice. Product info and pricing may change; refer to official sources.

Overview

agent-desktop is an open-source desktop control layer from Vercel Labs, version 1.0.2 under Apache-2.0. It does one specific thing: it lets a coding agent with shell access read and operate native applications through the operating system accessibility tree, instead of taking screenshots and asking a vision model to guess coordinates.

One command does one step. A snapshot returns a tree in which every actionable element carries a ref. The agent acts on that ref with commands such as click or type, then snapshots again to confirm the result. The loop stays in the agent's own code; the tool only observes and executes. A ref belongs to a particular snapshot, so when the interface changes it returns STALE_REF or AMBIGUOUS_TARGET and the agent looks again rather than clicking a row that has moved.

It ships as a Rust CLI plus a C library, installs from npm, and has native binaries for macOS, Windows and Linux. Execution is headless by default, without moving the pointer or stealing focus; physical input requires the --headed flag.

Key Features

Use Cases

Pros

Pricing

Free and open source under Apache-2.0. Install with npm install -g agent-desktop, or use the native archives for macOS, Windows and Linux; official Homebrew and Scoop packages are still being submitted. There is no hosted service and no usage metering.

Summary

Vision-based automation is brittle by nature. A new theme, a dialog, a different resolution, and the coordinates drift. agent-desktop takes the duller and steadier route, reading the accessibility tree the operating system already maintains, where elements have roles, names and stable refs. The cost is that it can only drive applications willing to expose accessibility information; the benefit is that every action can be verified. For anyone putting desktop work into CI or a background agent, headless execution and explicit failure codes matter more than multimodal recognition.

Version History

Category
AI Coding
Pricing
Open Source
Tags
Computer Use · Accessibility Tree · Open Source
Website

Related Tools