Development · GitHub repo
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.
What it's 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
- Topic
- Agent Automation
- 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: 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
Related
Command-line tool and agent skills for managing Google Workspace services
Turn any webpage into a lightweight desktop app with one command.
Browser automation CLI and engine purpose-built for AI agents
API configuration pattern for Firecrawl's agent-driven web navigation model
Python CLI automation script for bulk Gmail account creation using Selenium
Curated design-engineering skills and constraints for coding agents
Updated