Droid Agent

io.github.hyusband由 GitHub 帳號 hyusband 發布v0.2.0更新於 Nov 19, 2026

Give AI agents hands on a real Android device over stock adb — no on-device install

發布方自己的服務:droid.monster — specs

已驗證STDIO僅桌面瀏覽器自動化開發者工具

概覽

AI 產生的概覽

讓 AI 助理透過原生 adb 控制實體 Android 手機或模擬器,不必在裝置上安裝任何應用程式。

可以做什麼
  • 把畫面解析成簡短的編號可互動元素清單,再依編號點擊、長按、輸入、滑動或送出按鍵事件
  • 一次呼叫完成組合操作:依可見文字點擊、在欄位中輸入、等待或捲動直到元素出現、查詢 UI 樹
  • 擷取真實圖片截圖,讀取前景應用程式與螢幕狀態,取得 logcat
  • 管理應用程式與檔案:開啟、關閉、安裝、解除安裝、推送與拉取
  • 以原始 adb shell 指令作為備援,所有指令皆支援 JSON 輸出
適用情境
適合需要助理在實機、模擬器、Android TV 或 Android Auto 上端到端操作 Android 應用程式的情境,例如 UI 測試、重複性的應用程式內操作,或操作後確認螢幕內容。
執行需求
以本機 Python 套件執行(droid-agent,可用 uvx 或 pipx 啟動,MCP 伺服器需安裝額外相依套件)。需要 PATH 中有 Android platform-tools(adb),且裝置已開啟 USB 或無線偵錯;不需 root,也不需在裝置上安裝。未宣告帳號或 API 金鑰。
安裝前請注意
助理會實際操作裝置:點擊、輸入、安裝/解除安裝應用程式、推送/拉取檔案以及任意 adb shell 指令都會改變裝置狀態。畫面解析結果會寫入本機會話檔;標記為密碼欄位的元素會被遮蔽且不會寫入會話檔。無線配對會透過網路連線至裝置。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Droid Agent,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

🤖 droid-agent

Give any AI agent hands on a real Android device — zero install on the phone.

dump a screen → get numbered interactive elements → tap 3. That's it.

[CI] [PyPI] [Python] [License: MIT]

[demo]

Why

Every other Android-agent tool makes you install something on the phone first — an Appium server, a companion APK, an accessibility service. droid-agent needs nothing on the device. Just adb, which you already have:

  • 🔢 browser-use for Android — dump distills the uiautomator tree into a short numbered list of actionable refs, not a 500-line XML blob
  • 📦 zero dependencies — pure stdlib, installs in <1s, works offline
  • 🤖 agent-first — every command has --json; ships a built-in MCP server
  • 📱 anything with adb — real phones, emulators, Android TVs, Android Auto, WSA, even Android-x86 VMs

Install

bash
pipx install droid-agent          # recommended# or: pip install droid-agent
pipx install 'droid-agent[mcp]'   # + MCP server for Claude Code / Cursor / Devin

Prerequisite: platform-tools (adb) on your PATH, and a device with USB or wireless debugging enabled.

60-second tour

bash
droid-agent devices                 # what's attacheddroid-agent connect 192.168.1.42    # wireless adb (or just plug USB)droid-agent dump                    # see the screen the way an agent does

Real output, straight off a POCO F5:

text
[ 1] ()    Search settings                                  ( 540, 497)[ 2] |||   recyclerview                                     ( 540,1487)[ 3] ()    About phone                                      ( 540, 663)[ 4] ()    System apps updater                              ( 540, 817)[ 5] ()    Security status                                  ( 540, 971)[ 6] ()    Wi-Fi                                            ( 540,1159)[ 7] ()    Bluetooth                                        ( 540,1313)[ 8] ()    Mobile networks                                  ( 540,1467)[ 9] ()    Interconnectivity                                ( 540,1621)
15 elements · tap with `droid-agent tap <ref>`
bash
droid-agent tap 3                   # taps "About phone"droid-agent type "[email protected]"         # types into the focused fielddroid-agent swipe up                # scroll the listdroid-agent key back                # keyevents by namedroid-agent open com.whatsapp       # launch any appdroid-agent screenshot shot.png     # PNG capturedroid-agent state                   # foreground app, screen on/off, size

For agents, everything is one flag away from JSON: droid-agent --json dump.

Use it with your agent (MCP)

json
{  "mcpServers": {    "droid-agent": { "command": "droid-agent", "args": ["mcp"] }  }}

29 tools exposed — the primitives (tap, swipe, key, dump_ui, shell) plus compound workflows that save agent round-trips: tap_text ("tap the Allow button" in one call), type_into (tap field + type), wait_for / scroll_until (dynamic waits), find (query the UI tree), screenshot (real image content for vision), logcat, install/uninstall, and file push/pull. A built-in android_task prompt teaches any agent the dump → act → verify loop.

Also listed in the official MCP Registry as io.github.hyusband/droid-agent.

Commands

CommandWhat it does
deviceslist attached devices + state
connect / pair / disconnectwireless adb (Android 11+ pairing supported)
dumpnumbered interactive elements → ~/.droid-agent/session.json
tap <ref|x,y> / long-presstouch by ref from last dump, or raw coords
type <text>input text (spaces handled) into focused field
swipe up|down|left|right or x1 y1 x2 y2scroll / gestures
key back|home|enter|tab|del|power…keyevents by name
open / close / install / uninstallapp lifecycle
screenshot / statePNG capture · foreground app + screen info
shell <cmd>raw adb escape hatch
mcpstdio MCP server

How it compares

droid-agentdroidrun/mobilerunmobile-mcpAppium
On-device installnonePortal APK + accessibility svcAppium driverAppium server + settings app
Time to first tapsecondsminutesminutes~30 min
What it isprimitive layerfull agent frameworkMCP bridgetest framework
Deps0 (stdlib)LLM SDKs, uv, portalnode, appiumjava/node stack
LLM couplingnone — BYO agentbuilt-in providersnonenone

Different tool for a different job: they're agent frameworks; this is the curl of Android control — a primitive layer any agent (or human) can call.

Agent workflow pattern

text
dump → read refs → tap/type → wait → dump → verify → repeat

The dump warns when refs are >120s old (the UI may have moved). tap on a missing ref tells you to re-dump instead of tapping blind.

FAQ

Does it need root? No — just USB/wireless debugging enabled.

iOS? No. Use iphone-cli — this one is Android-only by design.

Passwords? Elements flagged password="true" are masked in dumps and never persisted to the session file.

CI? Point it at an emulator (emulator-5554) — same interface, --json for parsing.

Contributing

See CONTRIBUTING.md. Bug reports and false-positive element-detection reports especially welcome — attach droid-agent dump --json plus a screenshot.

License

MIT — see LICENSE.


If this saved you a setup afternoon — drop a ⭐

來源:README.md,提交 879717c

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v0.2.0最新Nov 19, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分

其他 Droid 整合