ai-agent

adbutils

pure python adb library for google adb service.
1,083 stars232 forksPythonUpdated 10/13/2026100% free · open source
What it does

adbutils lets you control Android devices (install apps, run shell commands, transfer files) directly from Python without writing ADB command-line strings.

When to use it
  • •You need to automate testing or data collection on phones from a Python script.
  • •Your startup builds a mobile‑backend service that must push updates or pull logs from many devices.
  • •You want to embed Android device control in a web service or AI agent without spawning subprocesses.
Ready-to-paste prompt
python - <<'PY'
from adbutils import adb
# Connect to a device over Wi‑Fi
adb.connect('192.168.1.42:5555')
dev = adb.device()
# Install an APK, launch it, and pull the logcat output
dev.install('app-release.apk')
dev.shell('am start -n com.example/.MainActivity')
log = dev.shell('logcat -d')
open('logcat.txt', 'w').write(log)
print('Installed, launched, and saved logcat')
PY
Heads up: adbutils only talks to the ADB daemon; you must have the Android platform‑tools installed and the ADB server running, and on Linux you may need proper udev rules (or `sudo adb`) for USB devices.
Saves to your device
Use with Claude
New

Skip the builder — one click puts this in Claude, Cursor, Antigravity and more.

✅ Light setup

Installs with a command or two; your AI agent can do it for you.

Try it instantly — no install
Claude Code
mkdir -p ~/.claude/skills/adbutils && curl -fsSL https://workflowstacks.com/api/skills/adbutils/claude-skill -o ~/.claude/skills/adbutils/SKILL.md
Open in another AI app

Opens the app with this repo with the prompt ready to go — no copy-paste needed.

Connect the whole catalog (MCP)
claude mcp add --transport http workflowstacks https://workflowstacks.com/api/mcp

Adds a WorkflowStacks connector to Claude Code: search and load any skill here by chatting.

How adbutils works
Codeflow
Free to inspect

Adbutils is a medium Python project (~4.1k lines across 31 code files, plus 6 test files). Setup is light: installs like a normal app. Reading the code is optional. Last commit this month, MIT license, has a test suite.

Size
Medium codebase
~4.1k lines · 31 code files · 34 min skim
Setup
One-command install
Installs like a normal app. Reading the code is optional.
Runs on
Python
No API keys detected
Python 100%
Where to start reading
  1. 1
    README.md
    Start here — what it does and how to install it
  2. 2
    adbutils/__main__.py
    Where the program starts running
  3. 3
    requirements.txt
    Dependencies and the commands it exposes
  4. 4
    adbutils/__init__.py
    Inside adbutils/ — the main logic begins here
  5. 5
    examples/reset-offline.py
    A worked example — copy this to get going
What's in each folder
adbutils/Core code — the actual logic19 files
docs/Documentation1 files
examples/Examples you can copy1 files
e2etests/Folder10 files
tests/Tests — proof it works6 files
.github/CI / automation (GitHub Actions)4 files
assets/Images & static assets1 files
READMEHas testsDocumentedCI checksExamples includedMIT licenseUpdated this month
Quick Actions
Details
Creator
openatx
Language
Python
Category
ai-agent
Published
3/19/2019

Are you the creator of this tool? and earn 85% of every sale.

Show it off in your README:

Featured on WorkflowStacks
[![Featured on WorkflowStacks](https://workflowstacks.com/api/badge/adbutils.svg)](https://workflowstacks.com/skills/adbutils?utm_source=github&utm_medium=badge)
🔥 Hot this week, in your inbox
Skills like this, every Monday.

The five fastest-growing open-source AI skills, ranked by GitHub star growth. One email a week, unsubscribe anytime.