Maxteabag/turbotap
À propos
Fast, headless CLI & multi-step flow runner for physical iPhones over Wi-Fi
IA et apprentissage automatiqueProgression mesurée des étoiles
- in 24h
- +1
- in 7 days
- Historique en cours
- in 15 days
- Historique en cours
- in 1 month
- Historique en cours
Variations nettes sur des périodes qui se chevauchent, pas des totaux quotidiens. Les mesures absentes restent vides. Les étoiles indiquent l’intérêt, pas la qualité.
README.md
Original
turbotap
Fast CLI for driving a real iPhone over Wi-Fi from your terminal or an AI agent (Claude Code, Codex, OpenClaw).
Click to watch the 39-second demo on a real iPhone over Wi-Fi (Settings, Spotify, Weather, and the App Store).
Driving an iPhone one screenshot per LLM turn is slow: grab a frame, wait for the model to pick coordinates, send one action, and repeat. turbotap runs an entire sequence of UI steps in one local Rust command against a patched WebDriverAgent on the phone and returns JSON with the text and interactive controls on screen.
What it does
All numbers below were measured on 28 Nov 2026 on a real iPhone 17 (iOS 26.6.2) over home Wi-Fi using released v1.6.7; full methodology, ranges, and reproduction scripts are in docs/benchmarks.md.
- One-command multi-step flows: batches taps, scrolls, text entry, and reads in one local Rust process instead of taking a screenshot per LLM turn. On the Settings → General → About → read iOS version task (v1.6.7), a single flow ran in 5.4 s median (4.8–10.4 s; 13/16 succeeded), while a screenshot-per-step Claude Sonnet loop took 22.0 s median wall clock (16.1–26.8 s, 6/6 succeeded; an agent using
turbotapstill spends one model turn writing the flow). - Patched WebDriverAgent (
wda-turbo): on v1.6.7 (n=6), cold app launch (launch:APP) measured 175 ms median (141–461 ms), raw tap (tapxy:) 449 ms (400–543 ms), exact element tap (tapel:) 793 ms (723–898 ms), and typing 28 characters (type:) 902 ms (876–1,001 ms). Reaction-verified label taps (tap:LABEL, including iOS transition wait) measured 1,286 ms (1,084–3,922 ms, n=16 on v1.6.7, which included an upfront/alert/textcheck since removed for normal in-app taps onmain). Automatically falls back to stock WDA when unpatched. - Dual screen reading (OCR + UI tree): on v1.6.7 (n=6), combined
read(OCR + interactive controls) measured 180 ms median (153–607 ms), accessibility tree (ui) 142 ms (113–266 ms), 200 pt band OCR (read:Y0-Y1) 66 ms (55–168 ms), full-screenread:ocr492 ms (297–591 ms), and on-device Apple Vision OCR (read:vision) 372 ms (338–412 ms). - Single standalone binary for agents and scripts: no Python runtime, bundled agent skills (
turbotap install-skill), step-level timing receipts (turbotap timings --receipt), and an optional warm daemon (--daemon, cutting separateturbotap ocrcalls from 237 ms (177–401 ms) to 148 ms median (122–295 ms), v1.6.7, n=10 each).
Examples
# Open the App Store, search "Angry Birds", tap Get, and wait until Open appears
turbotap flow --timeout 90 open:com.apple.AppStore tap:Search 'search:Angry Birds' 'tap:Angry Birds 2' tap:Get waitcontrol:Open
# Open Spotify -> Your Library -> Liked Songs, read the list, and swipe back
turbotap flow open:Spotify 'tap:Your Library' 'tap:Liked Songs@y>150' wait:songs read:ocr back
# Open Weather and read the forecast
turbotap flow open:Weather read
# Open Settings -> General -> About and read the iOS version
turbotap flow launch:com.apple.Preferences scrollto:General tap:General tap:About 'wait:iOS Version' read
# Draft a Messenger reply to Alice while blocking Send and Call buttons
turbotap flow --deny-also 'Send|Call' open:Messenger 'tap:Alice@y>300' 'fill:Message=On my way' read
# Read a 2FA code directly from Authenticator's accessibility tree
turbotap flow open:Authenticator readel:GitHub
Run turbotap flow --help or see docs/REFERENCE.md for every step (alerts, forms, toggles, sliders, pickers, Vision OCR, region filters, and regexes).
Requirements
- An iPhone (iOS 17+) on your local Wi-Fi with Developer Mode and UI Automation enabled.
- A Mac with Xcode to sign and launch WebDriverAgent on the phone (Apple requires Xcode; a free Apple ID works, or a paid Developer account for longer provisioning). Once WDA is running,
turbotaptalks straight to the phone over Wi-Fi from that Mac or any Linux machine on the same network. - Tesseract (optional) for local OCR.
turbotaploadslibtesseractat runtime; without it,uiand on-deviceread:visionstill work.
Install & Quick Start
1. Install turbotap
Install a checksum-verified prebuilt binary for Apple Silicon macOS or Linux x86-64 (glibc 2.39+) from GitHub Releases, or build from source with Cargo:
# Prebuilt binary (downloads latest release, verifies SHA-256, installs to ~/.local/bin/turbotap)
curl -fsSL https://raw.githubusercontent.com/Maxteabag/turbotap/main/scripts/install.sh | sh
# Or build from source (Rust toolchain required)
cargo install --git https://github.com/Maxteabag/turbotap.git
# Install bundled skills for Claude Code, Codex, OpenClaw, etc.
turbotap install-skill
Optional local OCR (Tesseract):
brew install tesseract # macOS
sudo apt install libtesseract5 tesseract-ocr-eng # Ubuntu / Debian
sudo pacman -S tesseract tesseract-data-eng # Arch Linux
2. Configure your iPhone
On the iPhone, turn on Developer Mode (Settings -> Privacy & Security -> Developer Mode) and UI Automation (Settings -> Developer -> Enable UI Automation). Note its Wi-Fi IP (Settings -> Wi-Fi -> (i)) and UDID (xcrun devicectl list devices on the Mac).
Create ~/.config/turbotap/config.json:
{
"default_device": "iphone",
"mac_host": "mac",
"team_id": "YOUR_APPLE_TEAM_ID",
"bundle_id": "com.yourname.wda",
"passcode_cmd": "your-secret-manager get iphone-passcode",
"stop_file": "~/turbotap.stop",
"devices": {
"iphone": {
"url": "http://192.168.1.50:8100",
"udid": "000081XX-XXXXXXXXXXXXXXXX",
"allowed_apps": ["com.apple.weather", "com.apple.Preferences"]
}
}
}
3. Deploy WDA and run a flow
turbotap deploy # clones, patches, builds, and starts WDA on mac_host (--no-build restarts)
turbotap preflight # checks lock state, foreground app, and capture health
turbotap unlock
turbotap flow open:Weather read
Full walkthrough (finding your Team ID, trusting the dev cert, SSH signing keychains, multiple phones, troubleshooting) is in docs/SETUP.md.
4. If Xcode cannot see the iPhone (pymobiledevice3 bootstrap)
When xcodebuild/devicectl cannot reach the phone, bootstrap can still get WDA running. It uses
pymobiledevice3 over SSH on mac_host (or pmd.ssh_host, or --ssh-host local) to unlock the phone over
HID, launch the WDA runner over DVT, and type the XCTest "Enable UI Automation" passcode once. The passcode
comes from passcode_cmd and is passed over stdin, never argv.
turbotap bootstrap # unlock + launch WDA + approve the XCTest sheet + preflight
turbotap recover # relaunch WDA over DVT when it is down, then preflight
turbotap bootstrap --dry-run # print the plan and exact pymobiledevice3 commands, touch nothing
Optional pmd config (all fields have defaults):
"pmd": {
"python": "python3",
"ssh_host": "mac",
"runner_bundle": "com.yourname.wda.xctrunner",
"launch_timeout_ms": 60000
}
--input wda|auto|hid selects the input transport. wda is the default and auto currently means wda;
hid is the Phase 2 action backend and is refused for normal commands until that lands. Use
bootstrap/recover for the HID bootstrap path.
Safety
- Kill switch (
stop_file): creating your configuredstop_file(orTURBOTAP_STOP_FILE) stops every mutating command immediately with exit 6 — including mid-flow before the next input. Delete the file to resume. - App guard (
allowed_apps): restricts input to an allowlist of bundle IDs, checked live via/wda/activeAppInfobefore every input request (fails closed on errors or unknown apps; refusesurl:unless explicitly scoped). - Deny filter (
--deny,--deny-also,deny_also): blocks taps, toggles, sliders, and keyboard Return/newlines matching regexes you supply (for example"deny_also": ["Send|Post|Pay|Buy|Delete"]inconfig.json). - Never presses Send/Post without permission: the bundled agent skill instructs agents to stop at drafts and require explicit approval before sending, posting, paying, or deleting; pair it with
deny_alsoto enforce that boundary in code. - Credentials stay redacted: passcodes (
passcode_cmd), PINs (pintap:env:/cmd:), and passwords (fill:FIELD=env:/cleartype:env:) are fetched locally, written directly to the verified target field, and scrubbed from output, errors, and timing logs — including across separate CLI calls when a redaction scope (TURBOTAP_REDACTION_DIR+TURBOTAP_REDACTION_KEY) is enabled.
See docs/SAFETY.md for the full security model, device-pinning rules, and cross-invocation redaction details.
Documentation
- docs/SETUP.md — Mac/Xcode signing, SSH keychain, multiple phones, troubleshooting
- docs/REFERENCE.md — Complete CLI subcommands, flow steps, timing receipts, warm daemon, environment variables
- docs/SAFETY.md — Stop file, app guard, deny patterns, credential handling, cross-invocation redaction
- docs/benchmarks.md — Fresh iPhone 17 benchmarks (medians, ranges, version comparisons, reproduction scripts)
- docs/HOW_IT_WORKS.md — Architecture,
wda-turbo.patchendpoints, strip-parallel OCR, zero-momentum scrolling - skills/turbotap/SKILL.md & skills/turbotap-retro/SKILL.md — Bundled skills for Claude Code, Codex, and OpenClaw
License
MIT. See LICENSE.
Explorer des projets similaires
Chargement…