PhoneHub
A self-hosted control hub for driving iOS simulators with natural-language tasks.
Creator · AI systems
The product
PhoneHub wraps the open-source PhoneCLI engine with a web UI, job orchestration, device and app-map management, encrypted secrets, and a CLI plus Python SDK. Jobs run in three modes — macro replay with no model calls, hybrid macro plus LLM fallback, and a pure vision loop — with logs, screenshots, and metrics streamed live over WebSocket.
PhoneHub answers one practical question: how much iOS app QA can be handed to a model without giving up determinism. The answer was to make the deterministic path the default — device probes, app-map builds, and macro replay all run with no API key and no model — and let a model step in only when a task leaves the map. It wraps PhoneCLI as a pinned upstream submodule instead of forking it, and it stays on a Mac because it drives real simulators through WebDriverAgent. The code is source-available under an attribution-required licence.
What is inside
- Device control: list, boot, shut down, and probe iOS simulators through simctl and WebDriverAgent
- Keyless app maps: crawl an app UI into a YAML macro map with no model involved
- Three run modes: macro, hybrid (macro plus LLM fallback), and VLM (pure vision loop)
- Live streaming of logs, screenshots, and metrics over WebSocket
- Local or hosted models: Ollama on your own machine, or OpenRouter
- Secrets encrypted at rest, redacted from logs, never passed on the command line
- A phonehub CLI and a Python SDK over the same API
Engineering decisions
- 01
Wrap PhoneCLI instead of forking it
The engine stays a pinned upstream submodule, so upstream fixes arrive without a merge and the vendored code remains auditable.
Trade-off Every capability is bounded by what PhoneCLI exposes; deep customisation would mean maintaining a fork of the engine.
- 02
Keyless paths first, models second
Device probes, app-map builds, and macro replay work with no API key and no model, so the tool stays free, private, and usable offline.
Trade-off Macro maps only cover what the crawler reaches, and the hybrid path costs latency when a task falls off the map.
- 03
Keep the engine local, expose only the interface
The engine and simulators must stay on the host Mac, so only the web UI and API are exposed, through an optional tunnel when remote access is needed.
Trade-off There is no multi-host deployment; availability is bound to one machine staying awake.
Stack
Work with Hasan
Available for senior Flutter and AI engineering work, including app rescues, architecture reviews, and 0-to-1 product builds.
Talk about a project