iPhone Control Skill
A Claude Code skill that drives a real iPhone over a USB cable. The agent can look at the screen, tap, swipe, type, open any app, take screenshots and record video.
How it works
Claude Code / Codex
│ ops.py / phone.py
▼
Appium server (on the Mac)
│ USB cable
▼
WebDriverAgent (on the iPhone)
│ accessibility tree, taps, screenshots
▼
Any app on the phone
It needs no Wi-Fi, no iPhone Mirroring and no unlocked Mac. The agent reads each app by its real buttons and labels, not by pixels.
What you need
- A Mac with Xcode and the iOS platform
- An Apple Developer team. A free personal team works, but you must rebuild every 7 days.
- An iPhone with Developer Mode on, connected with a data USB cable
- Node,
uv, Appium and its XCUITest driver
Quick start
unzip iphone-control.zip -d ~/.claude/skills/
npm i -g appium && appium driver install xcuitest
S=~/.claude/skills/iphone-control/scripts
export IPHONE_CONTROL_DEVICE='test phone'
$S/server.sh start
$S/phone.py setup
# add "wdaBundleId": "com.yourname.wda.runner" to
# ~/.iphone-control/devices/test phone/config.json
$S/phone.py ensure --wait 15 # repeat until ready=true
Set your own bundle id first. The default WebDriverAgent bundle id belongs to the author's Apple team. Apple lets each bundle id exist in one team only, so the first build fails until you set
wdaBundleId.The full guide covers phone preparation, signing, the first check and common errors. It is SETUP.md inside the zip.
What is inside
SKILL.md: the instructions Claude Code loadsSETUP.md: setup from zero, step by stepinstall.md: quick reference and known errorslean/ops.py: the fast daily driver (standard library only)scripts/: setup, session start, the Appium server, screen recording, live preview
Limits
- With the passcode on, you must unlock the phone yourself. The tool cannot see or type on the passcode screen.
- Sign-in, payment and password sheets stay with the person who owns the phone.
- Video apps such as TikTok can block the accessibility tree. The skill has a screenshot-only mode for them.