Turbotap
github.com/maxteabag/turbotap- Category
- Developer Tools
- Rank
- No. 1349Tools index
- Pricing
- Open Source
- Type
- TOOL
- GitHub
- 86 stars
- Latest release
- v1.6.7
- Date
About
A Rust command-line tool that lets a terminal user or an AI agent drive a physical iPhone over Wi-Fi through a patched WebDriverAgent. It runs a whole sequence of taps, scrolls, text entry and screen reads in one local command and returns JSON with the on-screen text and controls. This avoids taking one screenshot per model turn, which is slow. Setup needs Xcode on a Mac to sign and install WebDriverAgent over USB.
What it does
Turbotap is a single compiled program that hands an agent remote control of a real iPhone on the same network. The agent writes a whole script of steps at once, such as open an app, tap a label, type, scroll until some text appears, then read. The tool plays the script locally against a modified Apple test runner installed on the phone, and answers with structured text listing what is on screen and which controls can be pressed. The model stays out of the loop between steps, so a five step task costs one model turn instead of five.
Why it's ranked here
It attacks the real bottleneck in phone automation for agents: the model round trip per action. The author's own measurements put a four screen Settings task at about seven seconds median against twenty two for a screenshot per step loop, with timing ranges and sample sizes published next to each number. It is MIT licensed, written in Rust with a short dependency list, and its safety layer is enforced in code rather than in a prompt. The verdict is strong for its niche, with the caveat that every benchmark comes from one phone and one author.
What's good
The speed comes from specific, documented changes: taps that skip the runner's wait for the app to go idle, screenshots cropped and shrunk on the phone before crossing Wi-Fi, a compact on-device control list that the author measured at thirteen times faster than the stock dump, and scrolls that stop dead instead of coasting. The guardrails are concrete too. A stop file halts any input mid script, an app allowlist is checked live before every touch and refuses when the check fails, deny patterns block buttons like Send or Pay, and secrets are pulled from a password manager and scrubbed from output.
Tradeoffs
Setup is heavy. You need a Mac with Xcode to sign and install the test runner over USB, Developer Mode and UI Automation enabled on the phone, and a free Apple ID means shorter provisioning than a paid account. Prebuilt binaries cover only Apple Silicon Macs and recent glibc Linux. Reliability is not settled: in the author's own Settings benchmark the batched script succeeded on five of eight runs, against six of six for the slower screenshot loop. Text reading leans on optical character recognition, and the safety docs admit that redaction can miss values split across lines or misread characters.
How to use it well
It suits someone who owns an iPhone and wants an agent to run repeatable tasks in real apps: reading a forecast, checking a setting, drafting a reply for a human to send. Configure the app allowlist and a deny pattern for irreversible verbs before handing it to an agent, and keep the stop file path handy. Pull passwords and PINs from a secret manager rather than typing them into steps. It does not cover Android, simulators, or test suites that need strict pass rates, and anyone without a Mac for the initial signing cannot get started.
Technical notes+
Cargo.toml declares edition 2021, version 1.6.7, a binary at src/main.rs that only calls turbotap::cli::main_entry and exits with its code, plus a library crate; Tesseract is loaded at runtime through libloading rather than linked, and the release profile uses fat LTO with one codegen unit. docs/HOW_IT_WORKS.md describes the patched WebDriverAgent endpoints (/wda/fastTap, /wda/fastScreenshot, /wda/fastUI, /wda/fastDrag), a single keep-alive TCP connection with TCP_NODELAY, strip-parallel OCR with BLAKE2b strip hashing, and a fallback to a trimmed /source query on stock WDA. src/guard.rs classifies every non-GET request: a short allowlist of read-only routes, app launch routes checked against the target bundle, /url always refused, and everything else treated as input, so new endpoints are guarded by default. A foreground check counts only an unambiguous success envelope, and the first refusal is sticky for the invocation. One inconsistency: the module doc says /url is always refused, while docs/SAFETY.md describes an opt-in for an app's own custom scheme; the truncated file did not show whether that path lives elsewhere.
Observed
- License
- MIT
- Language
- Rust (edition 2021), single native binary plus a library crate
- Install surface
- Checksum-verified prebuilt binaries for Apple Silicon macOS and Linux x86-64 (glibc 2.39+), or cargo install from the Git repository
- Interface
- CLI with a multi-step flow runner, optional warm daemon, and bundled agent skills installed by a subcommand
- Device support
- Physical iPhone on iOS 17+ with Developer Mode and UI Automation enabled
- Setup requirement
- A Mac with Xcode to sign and launch WebDriverAgent; afterwards a Mac or Linux host on the same network drives the phone
- OCR dependency
- Tesseract optional, loaded at runtime; accessibility tree and on-device Vision OCR work without it
- Safety controls
- Stop file kill switch, live foreground app allowlist that fails closed, regex deny filter, credential redaction (docs/SAFETY.md)
- Request guard
- Unknown non-GET requests are classified as input and guarded by default (src/guard.rs)
Read from README.md, Cargo.toml, docs/HOW_IT_WORKS.md, docs/SAFETY.md, src/main.rs, src/guard.rs, LICENSE.
Similar tools
Tags
Tech Stack
Editorially curated, with community endorsements as a secondary signal. Corrections welcome.