A Playwright-like CLI for Android automation, built for AI agents.
pip install androidctl==0.3.0 Copy PIP instructions
AndroidCtl lets your agent operate apps on an Android phone or emulator. The agent reads the screen as compact XML, acts on its elements, waits for results and takes screenshots; it can also run shell scripts and transfer files.
Works with Claude Code, Codex, OpenCode and any other agent that can run shell commands.
pip install androidctl androidctl apk --out androidctl.apk Install androidctl.apk on the phone, for example with adb install androidctl.apk. It always matches the installed CLI; the two versions must be the same.
Export the skill into the directory your agent loads skills from:
mkdir -p ~/.claude/skills androidctl skill --out ~/.claude/skills/androidctl That is the location for Claude Code. For Codex, use ~/.agents/skills instead; OpenCode reads both. The export contains SKILL.md, the agent's workflow, and reference.md, the full command reference.
Start Shizuku, open AndroidCtl, tap Authorize Shizuku and turn on Gateway. When it shows Listening and Executor attached, tap Show new pairing code. Give your agent the address and code, or pair yourself:
androidctl pair 192.168.1.20:18843 000042 --name phone The first pairing trusts the certificate the phone presents, so pair on a network you trust. For an emulator or a phone without a network route, use an ADB route. After the phone restarts, start Shizuku and turn on Gateway again.
With the skill installed, ask for the result you want:
If your agent does not support skills, start with: "Use androidctl to control my phone. First run androidctl skill --out androidctl-skill and read its SKILL.md."
To run several agents, start each one with its own session and device:
ANDROIDCTL_DEVICE=phone ANDROIDCTL_SESSION=checkout claude A phone serves one session at a time, so agents on different phones run in parallel and agents sharing a phone take turns.
androidctl session open androidctl snapshot androidctl fill e3 "Groceries" --submit androidctl click e6 androidctl wait --contains "Saved" androidctl screenshot androidctl session close Run androidctl COMMAND --help for options, or read the skill for the complete workflow.
See Repository Guidelines for environment setup and quality checks, and Release Operations for signing, local candidates and manual publishing.
agent android adb automation cli accessibility
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
None of the files in this release were uploaded with provenance metadata.
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.




