
DroidClaw: Turning an Old Phone into an AI Agent That Taps Apps on Android
Vũ Khôi
Tác giả tại Wotech Electronics Blog

In early February 2026, a developer spent a few hours reverse-engineering Android's accessibility tree, just because he wanted to turn an old phone into an AI agent that taps apps by itself. The result is DroidClaw — an open-source project created on GitHub on 6 February 2026, now with around 1,600 stars (according to the post from late November 2026). The idea is simple: type a goal in plain language, and the machine reads the screen and taps on any app, without needing that app's API.
Quick answer
- DroidClaw is an AI agent that controls an Android phone: you type a goal in plain language, the agent reads the screen, thinks, and taps, types and swipes via adb, repeating until the job is done.
- The mechanism is a perceive → reason → act loop: dump the accessibility tree via adb, parse the XML into tappable elements, send state + goal + history to an LLM, the LLM returns {think, plan, action}, and the action runs via adb.
- Anti-stuck handling is what makes the difference: if the screen does not change for 3 steps, a hint is inserted; tapping the same coordinate 3 or more times triggers a change of approach; when the accessibility tree is empty (webviews, Flutter apps, games), it switches to sending a screenshot for the model to look at.
- There are 3 modes: type a goal directly, a JSON workflow chaining multiple apps (using the LLM), or a YAML flow as a fixed macro with no LLM — with 35 sample workflows included.
- The phone only needs USB debugging enabled: add Tailscale and adb connects over the network — the phone sits charging on the desk while commands come from a laptop, a VPS or a cron job running every morning.
- For Android developers, the accessibility tree is no longer just for visually impaired users: a well-labeled app is easy for the agent to read button by button, while an app that does not expose the tree leaves the agent guessing from screenshots.
What is DroidClaw?
DroidClaw is an AI agent that controls an Android phone, developed as open source on GitHub (account unitedbyai). The project's homepage says it exactly: "give it a goal in plain english. it reads the screen, thinks about what to do, taps and types via adb, and repeats until the job is done."
The idea came from a very ordinary wish: the author wanted to turn old Android devices into AI agents. After a few hours reverse-engineering accessibility trees and experimenting with Tailscale, it worked. A few years ago, we automated Android with predefined flows. Now imagine that automation layer has an LLM brain: it can read any screen, understand what is happening, decide what to do, and execute. You do not need APIs. You do not need to build integrations. Just install your favourite apps and tell the agent what you want done.
The project still carries an "experimental" label on its homepage, but it already ships a one-command installer, a dashboard, a Discord channel and a companion Android app (APK v0.5.3 according to the README at the time of verification).
How it works: the perceive → reason → act loop
DroidClaw's core is a perception → reasoning → action loop that repeats until the goal is done or it runs out of steps:
- Perceive: dump the accessibility tree via adb (
uiautomator dump), parse the XML into interactive UI elements with coordinates and state. At the same time, compare with the previous screen to detect changes. A screenshot can also be captured for visual processing. - Reason: send the screen state, the goal and the conversation history to an LLM. The model returns a structured output containing
think,planandaction— it explains its reasoning before acting. - Act: the action chosen by the LLM (tap, type, swipe, launch, press back…) is executed via adb. The project has 22 actions (according to its introduction page; the README lists 28 atomic actions) and 6 multi-step skills.
The example in the project's demo screenshot: the goal "open youtube and search for 'lofi hip hop'" — step 1/30, the agent thinks "i'm on the home screen. launching youtube", action: launch; step 2/30, "youtube is open. tapping search icon", action: tap. And so on until the job is done.

What happens when the agent gets stuck?
LLMs controlling UIs sounds fragile — and it is, if you do not handle the failure modes. This is the part where DroidClaw differs from a "tap by script":
- Anti-stuck: if the screen does not change for 3 steps, the system inserts a hint; tapping the same coordinate 3 or more times triggers a change of approach.
- Vision fallback: when the accessibility tree is empty — the README cites webviews, Flutter apps and games — it switches to sending a screenshot to the model, with coordinate-based tap suggestions.
- Step limit: the loop stops when the job is done or when the allowed number of steps runs out (configurable via
MAX_STEPS), so the agent does not run forever.
It is this anti-stuck mechanism that turns an "LLM taps a phone" demo into a tool that can actually be used — even if it is still experimental, and users need to accept that the agent will sometimes go in the wrong direction.
Three modes of use
DroidClaw has three ways to operate, depending on how much you want the LLM involved:
- Interactive — type a goal directly: run
bun run src/kernel.ts, type a goal in plain language, and the agent handles it. - JSON workflow — chaining multiple apps (using the LLM): a workflow is a chain of goals across apps, for example in the morning opening the weather app, reading the news and sending a summary to Slack. There are 35 sample workflows in the project.
- YAML flow — a fixed macro, no LLM: predetermined steps that run exactly as scripted, with no LLM calls — suitable for tasks that are completely stable and repeatable.
For LLMs, users can choose several providers: Groq (with a free tier), OpenAI, Ollama running locally, Bedrock or OpenRouter. One interesting capability: the agent can delegate tasks to the ChatGPT or Gemini app on the device without needing their API keys — it uses those apps like a normal human would, and brings the result back. In other words, the agent uses the apps on the phone as tools, with no API key needed for each service.
An old phone charging on the desk, commands sent remotely
The phone only needs USB debugging enabled. Add Tailscale and adb connects over the network: the phone sits charging on the desk while commands come from a laptop, a VPS or a cron job running every morning. According to the project documentation, you only need adb connect <phone-tailscale-ip>:5555 and then run a workflow like bun run src/kernel.ts --workflow morning.json — the Android in the drawer can now send standups to Slack, check flight prices, digest Telegram channels, and forward the weather forecast to WhatsApp. It runs apps that don't have APIs.
This is also an interesting connection to the Tailscale article published earlier on Wotech: the same overlay network technology, here turning an old phone into an always-on agent controllable from anywhere.
| Automation approach | How it works | When to use it |
|---|---|---|
| Predefined flows (macros, scripts) | Runs exactly the programmed steps | Fully stable, repeatable tasks that need no reasoning |
| DroidClaw (LLM + accessibility tree) | Reads the screen, reasons, taps via adb | Apps with no API, changing interfaces, decisions that need context |
| Official API integration | Calls the service's API | When the service has a stable API — always the most reliable choice |
The accessibility tree — from an assistive tool for blind users to the "eyes" of an AI agent
For Android developers, the accessibility tree may no longer serve only visually impaired users — it also opens a door for AI agents. A well-labeled app is easy for the agent to read button by button, while an app that does not expose the tree leaves the agent guessing from screenshots.
This is a thought-provoking consequence for mobile developers: the quality of an app's accessibility labeling now affects not only blind users, but also whether an AI agent can "see" your app at all. An app with complete content descriptions, a sensible focus order and clearly named interactive elements will be the app the agent controls most smoothly — and also the friendliest app for real users.
Conversely, screens using webviews, Flutter or games — where the accessibility tree is often empty — are where the agent stumbles most. The original post's author also asked mobile developers: have you ever tried running the app you are building through an auto-tapping tool like this, and which screen did it stumble on? That is a very practical way to test accessibility: if the agent cannot tap it, a visually impaired user may well be struggling at exactly the same place.
Apply it now
- Try it on an old phone first: enable USB debugging, install with the project's one-command installer (
curl -fsSL https://droidclaw.ai/install.sh | sh), and try a simple goal like opening YouTube and searching for a video. - Start with Interactive mode: type a goal directly and watch how the agent reasons and taps before writing complex workflows.
- Use the Groq free tier or local Ollama for experimenting: avoid API costs while learning; local Ollama also keeps screen data on your own machine.
- Write a JSON workflow for your morning tasks: multi-app chains (weather → news → Slack) are where DroidClaw shines most; refer to the 35 sample workflows included.
- Use YAML flows for stable tasks: steps that never change should not cost LLM calls — a fixed macro is both faster and cheaper.
- Control remotely via Tailscale: install Tailscale on the phone and laptop, connect adb over the Tailnet, and run workflows from a morning cron job without plugging in a cable.
- Test your own app with the agent: let the agent run through the app you are developing and record which screens it stumbles on — those are often screens with accessibility problems too.
- Be careful with USB debugging: only enable it on a device you trust, turn it off when not in use, and only connect adb over the network on a trusted private network (such as a Tailnet) — because adb opens near-total control of the device.
Frequently asked questions
What is DroidClaw?
DroidClaw is an open-source AI agent that controls an Android phone. You type a goal in plain language, the agent reads the screen (via the accessibility tree or screenshots), thinks, and taps, types and swipes via adb — without needing the app's API. The project was created on GitHub on 6 February 2026 and now has around 1,600 stars.
How does DroidClaw work?
Through a perceive → reason → act loop: dump the accessibility tree via adb, parse the XML into tappable elements, send state + goal + history to an LLM, the LLM returns {think, plan, action}, and the action runs via adb (tap, type, swipe…). When the accessibility tree is empty (webviews, Flutter, games), it switches to sending a screenshot for the model to look at.
Can DroidClaw replace Appium or other automated testing tools?
Not completely. DroidClaw is strong where apps have no API and interfaces change, thanks to the LLM reasoning in context. But it is still an experimental project, it sometimes goes in the wrong direction, it costs LLM calls, and it is hard to assert results precisely the way a dedicated testing framework can. The two tools complement each other more than they replace each other.
Can I use DroidClaw without an OpenAI API key?
Yes. DroidClaw supports Groq (with a free tier), locally run Ollama, Bedrock and OpenRouter. The agent can also delegate tasks to the ChatGPT or Gemini app on the device without needing their API keys — it uses those apps like a normal human would.
Is enabling USB debugging to run DroidClaw safe?
USB debugging allows near-total control of the device via adb, so only enable it on a device you trust and turn it off when not in use. For remote control, only connect adb over a trusted private network (for example via Tailscale) instead of exposing the adb port to the Internet.
Source: Post by Dương Khánh Băng in the Facebook group Mobile Dev Vietnam on 29/11/2026; original content source: Thanh Hoang. DroidClaw project: github.com/unitedbyai/droidclaw, introduction page droidclaw.ai. The cover is the project's introduction page; the mid-body image is the demo result of the agent playing a reaction game. Star count (~1,600) and sample workflow count (35) follow the post and the project documentation as of late November 2026.
Bài viết liên quan

1 tháng 12, 2026 · 13 phut doc
Anthropic 'Cracks' ML-KEM: the Truth Behind the Hot News — and Why Today's Data Is Still Safe
According to The Guardian, Anthropic was about to announce it had found a way to break ML-KEM — the encryption standard designed to withstand the power of quantum computers. The news spread at lightn…

1 tháng 12, 2026 · 12 phut doc
Shopify CEO: $2,000 in Tokens, One Weekend to Rewrite a System — and the Lesson on Verifying AI Code
Tobi Lütke — who wrote Shopify's first lines of code himself more than 20 years ago — recently made some remarkable remarks on David Senra's Founders podcast. He revealed that almost all engineering …

1 tháng 12, 2026 · 22 phut doc
Cloudflare Tunnel: A Server Can Serve the Internet Without Opening an Inbound Port on the Firewall
For many years, we almost took it for granted that publishing a service to the Internet requires a point where the Internet can connect in: request a public IP, configure DNS, NAT a port on the firew…