Droidline
Android automation from code. Test your apps on real phones, script the tasks you repeat, run a shelf of phones, or let an AI agent use one, from Python, Node.js, the CLI, HTTP or Appium clients. No ADB, no USB cable, no root.
Install / Use
claude mcp add KnifeLemon -- npx -y github:KnifeLemon/DroidlineIf the server publishes to npm under a different name, use that package instead — check the repo README.
MCP Server
Model Context Protocol server
Quality Score
Category
AutomationSupported Platforms
Our assessment of Droidline
Droidline scores 76/100 on our quality scale, 2596th of 2,890 Automation skills we index.
Its MCP Server is 16 KB long, well organised into 14 sections with 7 code examples: a thorough specification that gives an agent plenty to work with.
It has 10 GitHub stars, so there is little community track record yet; judge it on its content.
Maintenance, license and trust
- The repository was last updated today, so Droidline is actively maintained.
- It is released under the MIT license, a permissive license that allows use, modification and commercial use with attribution.
- Its trust signals score 97/100, with no cautions. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.
Droidline compared with similar skills
All 4 of these similar skills score higher than Droidline; compare them before choosing.
| Skill | Score | Stars | Updated | Format |
|---|---|---|---|---|
| Droidline (this skill)by KnifeLemon | 76 | 10 | today | MCP Server |
| Agent-Reachby Panniantong | 100 | 95.3k | 2d ago | CLAUDE.md |
| headroomby headroomlabs-ai | 100 | 74.9k | today | CLAUDE.md |
| CowAgentby zhayujie | 100 | 47.3k | today | CLAUDE.md |
| Scraplingby D4Vinci | 100 | 86.7k | today | MCP Server |
Frequently asked questions
- How do I install Droidline?
- Run
claude mcp add KnifeLemon -- npx -y github:KnifeLemon/Droidline. The install tabs above show the steps for each supported agent. - Which AI agents does Droidline work with?
- It is written for Claude Code and Claude Desktop, as a MCP Server file. Other agents that read the same format can often use it too.
- Is Droidline safe to use?
- It is MIT-licensed and scores 97/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
- Is Droidline still maintained?
- The repository was last updated today, so Droidline is actively maintained.
Skill content
View source on GitHubWhat people use it for
- Testing your own app on real phones, including flows that cross into other apps, such as a login with a code from a text message.
- A shelf of phones running the same routine every day, each through its own network or proxy.
- Giving an AI agent hands: through MCP, Claude, ChatGPT, Cursor and other agents can look at a phone screen and act on it.
- Small personal automations, such as turning Wi-Fi off at night or collecting a value from an app every hour.
Droidline uses only permissions an ordinary app can get, so a few things are out of reach: see What it cannot do.
See it in action
<p align="center"> <a href="https://droidline.dev"><img src="docs/media/demo-en.webp" alt="A script sends six lines to a phone: launch the demo app, close the ad, type an email, tick Keep me signed in, tap Log in, and wait for the main screen. Each line gets a reply with how the tap was delivered, and the phone screen changes to match." width="720"></a><br> <sub>Try the same demo in your browser, and pick elements on a simulated screen, on <a href="https://droidline.dev">droidline.dev</a></sub> </p>Quick start
You need a PC (Windows, macOS or Linux) and an Android phone with Android 9 or later, on the same Wi-Fi for a first try. The installation guide walks through each step with screenshots.
-
Run the server on your PC. Download the
droidlinearchive for your system from Releases, putdroidlineon yourPATH, and start it. Leave it running.droidline serve -
Install the app on the phone. Download
droidline-agent.apkfrom the same release page and open it. On the app's Setup tab, turn on the accessibility service, the Droidline keyboard, notifications and unrestricted battery use. On Android 13 and later, allow restricted settings for the app first; the app shows where. -
Pair them. Run this on the PC and scan the QR code with the app's Pair tab:
droidline pairNo camera? Tap Pair on this Wi-Fi in the app and type the 6-digit code it shows:
droidline pair 482913. -
Send a command.
droidline launch com.android.settings droidline touch text "Network & internet"
No phone at hand? droidline-fakephone, included in every release, simulates one with a small demo app. The first-script tutorial builds a complete login script against it.
Use it from your language
Every interface talks to droidline serve on localhost:8780 and uses the same command names.
Python (pip install droidline, Python 3.9+)
from droidline import connect
d = connect() # the phone paired with this PC
d.launch("dev.droidline.demo")
if d.exists("text", "Close ad"): # conditions never wait and never fail
d.touch("text", "Close ad")
d.input("id", "email", "knife") # waits up to 10 s for the element
d.touch("text", "Log in")
print(d.get_text("id", "greeting"))
Node.js and TypeScript (npm install droidline, Node.js 18+)
import { connect } from "droidline";
const d = await connect();
await d.launch("dev.droidline.demo");
await d.input("id", "email", "knife");
await d.touch("text", "Log in", { timeout: 15 });
console.log(await d.getText("id", "greeting"));
C# and .NET (dotnet add package Droidline, .NET 8+ or .NET Framework 4.6.2+)
using Droidline;
await using var d = await DroidlineClient.ConnectAsync();
await d.LaunchAsync("dev.droidline.demo");
await d.InputAsync("id", "email", "knife");
await d.TouchAsync("text", "Log in", timeout: 15);
Console.WriteLine(await d.GetTextAsync("id", "greeting"));
Command line (comes with the server)
droidline touch text "Log in"
droidline which text="Log in" id=main_tab --timeout 15
droidline screenshot shot.png
HTTP (any language, any tool)
curl -s -X POST localhost:8780/devices/_/touch \
-H 'content-type: application/json' -d '{"by":"text","value":"Log in"}'
AI agents over MCP (Claude, Cursor, VS Code and others)
{ "mcpServers": { "droidline": { "command": "droidline", "args": ["mcp"] } } }
With Claude Code: claude mcp add droidline -- droidline mcp. In Claude Desktop you can instead open droidline.mcpb from Releases, which carries its own droidline; it is also listed in the MCP Registry as io.github.KnifeLemon/droidline. To give an agent fewer tools, add --tools dump,screenshot,touch or --read-only to the args; see Limit what an agent can use. Other languages can open a TCP socket and send one JSON line per command; see Other languages for Go, Java and PHP.
Features
- Pick the element, not the pixel.
dump()returns the screen as a tree withtext,idanddescfor every element. Commands take the field and the value:touch("id", "login"). When an element refuses a click, Droidline taps its parent or the center of its bounds by itself. - Waiting is built in.
touch,inputandwaitwait for their element, 10 seconds by default. Conditions such asexists,checkedandwhichanswer at once and never throw for a missing element. - Clear errors. Every failure has a code, a message in English, Korean or Chinese, and a flag that says whether retrying helps:
NOT_FOUND: Could not find text 'Log in' within 10s. Current screen: com.example / .MainActivity. - A shelf of phones. One PC drives many phones. Commands to one phone run in order, different phones run in parallel, and each phone has a name you choose.
- Per-app proxy. Send chosen apps through a socks5 or http upstream with a local VPN, one upstream per phone, without root.
- Notifications on the PC. Wait for one, react to every one, reply, open or dismiss it, or forward it to a signed webhook.
- New mobile IPs. A
batchsent withcuts_networkkeeps running on the phone while it is offline, so airplane mode on, wait, off works as one call.intentopens the Settings page first; the recipes show it step by step. - Nothing runs twice. A phone that drops off mobile data resumes where it left off; a command that was in flight is answered from the phone's cache, not run again.
- Selectors that hold up. Combine conditions or name an element by its neighbors:
touch({"class": "android.widget.Switch", "row": {"text": "Wi-Fi"}}).findhands back elements you can click and search inside, andwait_idlewaits until the screen stops changing. - Optional tools, off until you start them.
droidline inspectshows the screen and its elements, suggests selectors with code, and records a script while you use the phone.droidline webdriverlets Appium clients and scripts drive your phones. There is also a pytest plugin, leases for sharing phones between scripts, and picture and text matching for screens without elements. - English, 한국어, 简体中文 in the app, the error messages and the docs.
Screenshots
<table> <tr> <td width="33%"><img src="docs/media/app-setup.png" alt="Setup tab with every permission switched on"></td> <td width="33%"><img src="docs/media/app-pair.png" alt="Pair tab after pairing with a PC"></td> <td width="33%"><img src="docs/media/app-status.png" alt="Status tab of a connected phone with its route and permissions"></td> </tr> <tr> <td align="center"><sub>Setup: each permission with a button to its settings screen</sub></td> <td align="center"><sub>Pair: scan the QR code or use a 6-digit code</sub></td> <td align="center"><sub>Status: connection, route and permissions</sub></td> </tr> </table>Reach phones anywhere
The phone always opens the connection, so it needs no open port. Pick the route that fits your network; the phone tries them in order and returns to Wi-Fi when it can.
| Route | You need | How it works | |---|---|---| | Same Wi-Fi | Nothing | The phone finds the PC with a UDP broadcast and connects directly. | | Port forward | One forwarded port | The phone connects to your public address over TLS, pinned to the PC's certificate. | | Tunnel | cloudflared, ngrok or similar | Your PC keeps a tunnel open; the phone reaches it through the tunnel's address. | | Your relay | Cloudflare Workers or a VPS | PC and phone both connect out to a relay you deploy. It forwards lines it cannot read. |
Past the two-line handshake every line is encrypted with keys only your PC and phone hold (P-256 and AES-256-GCM), so a tunnel or relay only carries ciphertext. The remote connection guides cover each route step by step.
What it cannot do
Droidline only uses permissions an ordinary app can get, so some things are out of reach. Better to know before you start:
- It cannot open another app's screens that the app does not export.
launchopens the start screen instead. - It cannot unlock a PIN, pattern or password lock screen.
- There is no single command to force stop an app, clear its data or switch the network. Settings differs by phone maker, Android version and language, so the recipes press its buttons, and you may need to adjust the labels for your phone. In th
Truncated for display — read the full file on GitHub.
Related Skills
Agent-Reach
95.3kGive your AI agent eyes to see the entire internet. Read & search Twitter, Reddit, YouTube, GitHub, Bilibili, XiaoHongShu — one CLI, zero API fees.
headroom
74.9kCompress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agents, 60-95% fewer tokens for JSON, same answers. Library, proxy, MCP server.
CowAgent
47.3kOpen-source personal AI assistant & Agent Harness. Plans tasks, runs tools and skills, self-evolves with memory and knowledge. Multi-agent, multi-model, multi-channel. Lightweight, extensible, one-line install.
Scrapling
86.7k🕷️ An adaptive Web Scraping framework that handles everything from a single request to a full-scale crawl! Don't be shy, join here: https://discord.gg/EMgGbDceNQ and follow here for daily tips and tricks: https://x.com/Scrapling_dev
Languages
Trust signals
From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.
