█

AI/TLDR

मुझे पिलाएं कॉफ़ी
मुझे एक कॉफ़ी पिलाएँ

agent-desktop

computer-use CLI और C लाइब्रेरी, जो AI एजेंट्स को OS accessibility tree के ज़रिए डेस्कटॉप ऐप्स पढ़ने और चलाने देती है

Computer & Browser Useओपन सोर्स
ताज़ा
v1.1.0
अपडेट किया गया
3 नव॰ 2026
भाषा
Rust
लाइसेंस
Apache-2.0
कवरेज
1 story
$npm install -g agent-desktop

नया क्या है

v1.1.03 नव॰ 2026

Fixes the Windows overlay (crashes at exit, double scaling, a black flash at startup) and lets macOS reach the Dock, menu bar items and system panels. Adds `type --interval-ms` for steady typing and more reliable ref re-identification on all three platforms.

ताज़ा खबरें

संक्षेप में

agent-desktop क्या है?

agent-desktop computer-use CLI और C लाइब्रेरी, जो AI एजेंट्स को OS accessibility tree के ज़रिए डेस्कटॉप ऐप्स पढ़ने और चलाने देती है. यह Agents & Automation टूल्स की Computer & Browser Use श्रेणी में आता है; ओपन सोर्स है, Rust में लिखा गया है और Apache-2.0 लाइसेंस के तहत है।

अपडेट किया गया Markdown वर्शन ↗
Demo: an OpenCode agent uses agent-desktop to write a formatted note in TextEdit, save it and check the file in Finder
An agent drives TextEdit and Finder through agent-desktopagent-desktop repository ↗

सारांश

agent-desktop, Vercel Labs का एक ओपन सोर्स टूल है, जो AI एजेंट को डेस्कटॉप कंप्यूटर पर हाथ देता है। यह एक command-line प्रोग्राम और C लाइब्रेरी है, जो macOS, Windows और Linux पर नेटिव ऐप्स का यूज़र इंटरफ़ेस पढ़ती है और उस पर काम करती है: क्लिक करना, टाइप करना, स्क्रॉल करना, विंडो मैनेज करना, नोटिफ़िकेशन और क्लिपबोर्ड पढ़ना। यह एक ऐसा टूल है जिसे एजेंट कॉल करते हैं, खुद एजेंट नहीं है, और इसमें कोई मॉडल नहीं है। वेब पेजों के लिए, यही टीम आपको अपने सहयोगी प्रोजेक्ट agent-browser की ओर भेजती है।

इस टूल का मुख्य डिज़ाइन फ़ैसला accessibility tree है। screenshots में pixels मिलाने के बजाय, agent-desktop ऑपरेटिंग सिस्टम के अपने accessibility APIs से हर ऐप को पढ़ता है: macOS पर AX API, Windows पर UI Automation और Linux पर AT-SPI। एक snapshot JSON लौटाता है, जिसमें snapshot ID और हर उस element का ref होता है जिस पर एजेंट कार्रवाई कर सकता है, और actions उन्हीं refs को टारगेट करते हैं (जैसे `@s8f3k2p9:e8`)। इसकी सीमा साफ़ बताई गई है: जो ऐप accessibility tree प्रकाशित नहीं करता, वह इस टूल को दिखाई नहीं देता।

हर CLI कॉल अपने अलग process में चलती है, और reasoning loop एजेंट के पास ही रहता है: snapshot से observe करें, ref पर act करें, फिर सत्यापन के लिए दोबारा snapshot लें। `STALE_REF` और `AMBIGUOUS_TARGET` जैसी errors एजेंट को दोबारा देखने के लिए कहती हैं। Ref actions डिफ़ॉल्ट रूप से headless होते हैं, यानी वे पॉइंटर नहीं हिलाते और फ़ोकस नहीं छीनते; एक global `--headed` flag physical input पर स्विच करता है। बाइनरी अपने वर्ज़न से मेल खाने वाले skill docs भी साथ लाती है, जिन्हें एजेंट `agent-desktop skills get desktop` से लोड कर सकता है।

यह क्या करता है

  • macOS (AX API), Windows (UI Automation) और Linux (AT-SPI) पर OS accessibility tree के ज़रिए नेटिव डेस्कटॉप ऐप्स पढ़ता है — कोई pixel matching नहीं
  • snapshot ID और हर actionable element के लिए एक ref के साथ JSON snapshots; `@e8` जैसे bare refs रद्द कर दिए जाते हैं, ताकि पुराने targets पकड़े जा सकें
  • लगभग 60 commands, जिनके नाम हर प्लेटफ़ॉर्म पर एक जैसे हैं: observation, ref actions, keyboard और mouse, apps और windows, notifications, clipboard, waits और sessions
  • डिफ़ॉल्ट रूप से headless — ref actions पॉइंटर नहीं हिलाते या फ़ोकस नहीं लेते — physical input के लिए global `--headed` flag के साथ
  • बाइनरी में बने, वर्ज़न से मेल खाने वाले agent skill docs (`agent-desktop skills get desktop`)
  • किसी अन्य भाषा से कॉल करने के लिए एक in-process C लाइब्रेरी (`libagent_desktop_ffi`), Python `ctypes` उदाहरण के साथ
  • x64 और ARM64 के लिए नेटिव बाइनरी, जिन्हें npm, Bun, Yarn या pnpm से इंस्टॉल किया जा सकता है

शुरू करें

agent-desktop macOS 13 या उसके बाद के वर्ज़न, Windows 10 1809 / Windows Server 2019 या उसके बाद के वर्ज़न, और Ubuntu 24.04 या उसके बाद के वर्ज़न को सपोर्ट करता है। macOS पर इसे Accessibility permission चाहिए; Linux पर `at-spi2-core` के साथ एक graphical session चाहिए।

CLI इंस्टॉल करें

पैकेज को globally इंस्टॉल करें (Bun, Yarn और pnpm भी काम करते हैं), फिर वर्ज़न और आपका प्लेटफ़ॉर्म क्या सपोर्ट करता है, यह जाँचें।

bashbash
npm install -g agent-desktop
agent-desktop version
agent-desktop status

macOS पर permissions दें

macOS को उस terminal के लिए Accessibility permission चाहिए जिसमें agent-desktop चलता है। बिल्ट-इन गाइड आपको पूरी प्रक्रिया बताती है। Windows पर, terminal के integrity level वाले ऐप्स के लिए कोई अतिरिक्त grant नहीं चाहिए।

bashbash
agent-desktop permissions --guide

देखें, कार्रवाई करें, सत्यापित करें

किसी ऐप के interactive elements का snapshot लें, उस snapshot के एक ref पर कार्रवाई करें, फिर बदलाव की पुष्टि के लिए दोबारा snapshot लें। Refs उसी snapshot से जुड़े होते हैं जिससे वे आए हैं।

bashbash
agent-desktop snapshot --app Finder -i      # interactive elements, each with a ref
agent-desktop click @s8f3k2p9:e8            # act on a ref from that snapshot
agent-desktop snapshot --app Finder -i      # observe again to verify

अपने एजेंट को सौंपें

सबसे पहले अपने एजेंट में वर्ज़न से मेल खाने वाली skill guide लोड करें, चल रहे ऐप्स की सूची बनाएँ, और किसी region में गहराई से जाने से पहले compact skeleton से घने ऐप्स का नक्शा बनाएँ।

bashbash
agent-desktop skills get desktop
agent-desktop list-apps
agent-desktop snapshot --skeleton --app Slack -i --compact

कमांड और कोड प्रोजेक्ट के अपने दस्तावेज़ों से लिए गए हैं — हमेशा जांचें आधिकारिक repo ताज़ा जानकारी के लिए।

कब इस्तेमाल करें

  • OpenCode जैसे coding agent को एक नेटिव text editor में नोट लिखने, उसे सेव करने और Finder में फ़ाइल की पुष्टि करने देना
  • ऐसे डेस्कटॉप ऐप्स को ऑटोमेट करना जिनमें कोई API नहीं है, स्क्रीन coordinates के बजाय उनके accessibility elements पर कार्रवाई करके
  • एजेंट को Mac, Windows मशीन और Linux डेस्कटॉप पर एक ही command set देना
  • C लाइब्रेरी के ज़रिए Python या किसी अन्य प्रोग्राम से in-process desktop automation कॉल करना

How agent-desktop compares

agent-desktop alongside other open-source computer & browser use tools AI/TLDR tracks, ranked by GitHub stars.

टूलस्टारयह क्या करता है
Browser Use★ 123kAI agents को असली ब्राउज़र नियंत्रित करने दें, ताकि वे सादी भाषा के निर्देशों से वेब काम पूरे कर सकें
Open Interpreter★ 69kप्राकृतिक भाषा के अनुरोधों से आपके अपने कंप्यूटर पर कोड चलाने वाला टर्मिनल कोडिंग एजेंट
Chrome DevTools MCP★ 60.2kएक MCP सर्वर, जो कोडिंग एजेंट को लाइव ब्राउज़र पर Chrome DevTools की पूरी ताकत देता है
agent-browser★ 55.1kएक नेटिव Rust CLI जो AI एजेंट को एक ब्राउज़र देता है, जिसे वह एक समय में एक shell कमांड से चला सकता है
UI-TARS Desktop★ 39.6kएक ओपन सोर्स GUI agent स्टैक, जो vision-language models की मदद से आपका कंप्यूटर और ब्राउज़र कंट्रोल करता है
CloakBrowser★ 35.3kPlaywright और Puppeteer के कोड में बिना कोई बदलाव किए चलने वाला stealth Chromium
Cua★ 33.8kएजेंट के लिए तैयार sandboxes, जिनसे AI किसी भी OS पर पूरे डेस्कटॉप को कंट्रोल कर सके
agent-desktop★ 27.8kcomputer-use CLI और C लाइब्रेरी, जो AI एजेंट्स को OS accessibility tree के ज़रिए डेस्कटॉप ऐप्स पढ़ने और चलाने देती है