# agent-desktop

> Desktop automation CLI and library using OS accessibility trees for AI agents

agent-desktop is a Rust-based tool from Vercel Labs that gives AI agents cross-platform computer use capabilities across macOS, Windows, and Linux. Instead of relying on fragile pixel vision and screen coordinates, it inspects real OS accessibility trees and operates controls via stable reference IDs. Actions run headlessly in the background by default without stealing focus or moving the physical cursor.

Website: https://github.com/vercel-labs/agent-desktop

## What it is for

- Automate native desktop applications via an AI coding agent loop
- Interact with desktop UI elements headlessly without disrupting active user work
- Inspect accessibility trees to retrieve structured JSON snapshots of application state
- Integrate native OS automation into custom agents via CLI or C FFI bindings

## Features

- Uses native OS accessibility trees (macOS Accessibility, Windows UI Automation, Linux AT-SPI) instead of pixel matching
- Structured JSON envelope output with stable snapshot-scoped element reference IDs
- Runs headlessly by default without hijacking the user's cursor or keyboard focus
- Provides over 50 commands covering snapshots, element actions, app/window management, clipboard, and notifications
- Ships as both an npm-installable CLI binary and a C library (libagent\_desktop\_ffi) for in-process bindings
- Built-in agent documentation commands via 'agent-desktop skills'

## Pricing

Open source. Free and open source (Apache-2.0)

## Details

- Type: GitHub repo
- Category: [Development](https://xiry.app/topics/development.md)
- Open source: yes
- Platforms: macOS, Windows, Linux, Command line, Code library
- For: AI developers and software engineers building computer-use agents and desktop automation workflows
- Alternative to: Anthropic Computer Use, AutoGUI, Playwright
- Tags: agents, computer use, automation, accessibility, rust, cli, desktop

## Why it was saved

- [@ctatedev, 31 October 2026](https://x.com/ctatedev/status/2116323148706771302): A real, installable tool from Vercel Labs that gives any coding agent computer use across macOS, Windows and Linux, running in the background so agents can drive the desktop in parallel. The demo shows the whole workflow — snapshot an app's accessibility tree, click controls by stable ref, loop over checkboxes — which is what you would copy when wiring it into your own agent.

## Compare

- [Alternatives to Playwright](https://xiry.app/alternatives/playwright.md)
- [Alternatives to Anthropic Computer Use](https://xiry.app/alternatives/anthropic-computer-use.md)

## Related

- [Google Workspace CLI](https://xiry.app/resources/google-workspace-cli): Command-line tool and agent skills for managing Google Workspace services (Web app, Open source)
- [Pake](https://xiry.app/resources/pake): Turn any webpage into a lightweight desktop app with one command. (GitHub repo, Open source)
- [agent-browser](https://xiry.app/resources/agent-browser): Browser automation CLI and engine purpose-built for AI agents (GitHub repo, Open source)
- [Enabling FIRE-1 in the Firecrawl Scrape API](https://xiry.app/resources/enabling-fire-1-in-the-firecrawl-scrape-api): API configuration pattern for Firecrawl's agent-driven web navigation model (Tip, Freemium)
- [Gmail Creator Pro](https://xiry.app/resources/gmail-creator-pro): Python CLI automation script for bulk Gmail account creation using Selenium (GitHub repo, Free)
- [UI Skills](https://xiry.app/resources/ui-skills): Curated design-engineering skills and constraints for coding agents (Website, Free)

Updated 31 October 2026. Page: https://xiry.app/resources/agent-desktop

Make your own library: Xiry for Mac makes your saved Instagram reels and liked tweets searchable and pulls the useful stuff out, like this library. It's invite-only for now; request an invite at https://xiry.app/mac/download.
