terminal-phone

An interactive iPhone in your terminal, shared with your AI agents.
terminal-phone puts an iOS simulator, or your own paired iPhone, inline in your terminal: sharp images in Ghostty, kitty, Rex, iTerm2, WezTerm, Warp and VS Code, text graphics everywhere else, and a native split beside your shell. You click, type, drag and scroll on it like a real phone. Your coding agent drives the same phone through a JSON CLI or an MCP server, with element references, postcondition checks and safe recovery, so it can build your app, install it, tap through it and verify the result.
- Sharp and fast: a 30 fps stream sized to your pane's real pixels, drawn through terminal shared memory instead of base64 over the pty.
- Feels like a phone: an iPhone frame in twelve finishes (Silver, Space Black, Cosmic Orange, Deep Blue, Red and more), a device switcher, zoom, and Home, Lock, Screenshot, Record and Dark mode controls.
- Built for agents:
observe, act, wait and an MCP server. Agents get accessibility elements in display points, references that reject stale screens, and receipts that never replay uncertain input.
- Real iPhones too: through WebDriverAgent over USB or Wi-Fi. They stay view-only until you, the owner, allow control.
Install
Requirements: an Apple silicon Mac with macOS 15 or later, and Xcode 26 or later installed from Apple and opened once.
curl -fsSL https://raw.githubusercontent.com/govijr/terminal-phone/main/install.sh | bash
Then open a new terminal and run terminal-phone. The install script downloads the latest release, checks its SHA-256 checksum and runs terminal-phone self install, which installs to ~/.local and adds it to your PATH. Pin a version with TERMINAL_PHONE_VERSION=0.4.0, or pass install options with bash -s -- --prefix /absolute/path --no-path.
Manual download: from Releases, with curl so macOS doesn't quarantine it:
base=https://github.com/govijr/terminal-phone/releases/download/v0.4.0
curl -fsSLO "$base/terminal-phone-0.4.0-macos-arm64.tar.gz" -O "$base/terminal-phone-0.4.0-macos-arm64.tar.gz.sha256"
shasum -a 256 -c terminal-phone-0.4.0-macos-arm64.tar.gz.sha256
tar -xzf terminal-phone-0.4.0-macos-arm64.tar.gz
./terminal-phone/terminal-phone self install
Release binaries are built from this repository by GitHub Actions and aren't Developer ID signed. If you downloaded with a browser instead, run xattr -dr com.apple.quarantine terminal-phone before installing, or build from source.
From source:
git clone https://github.com/govijr/terminal-phone.git && cd terminal-phone
bash scripts/build-phone.sh
./dist/terminal-phone self install
Use it
terminal-phone
The first run finds Xcode, downloads a missing iOS simulator runtime, sets up a private, checksum-verified control runtime (no Homebrew Python or system changes), boots a dedicated simulator and opens it in your terminal.
Click to tap, type normally, drag to swipe, and use the wheel to scroll. Ctrl+P switches phones, Ctrl+S takes a screenshot, Ctrl+B goes Home, Ctrl+F opens the frame picker, Ctrl+T opens the simulator tools (status bar, dark mode, text size, location, notifications, permissions), Ctrl+O shows the app's logs in a panel beside the phone, Ctrl+G toggles focus mode (just the phone, no header or toolbar; start in it with --focus), and Ctrl+] exits while the phone keeps running.
In the frame picker (Ctrl+F or the Frame button), the arrow keys or a click try each colour live on the phone, Return keeps it and Esc goes back. You can also set it from the command line with --frame, for example terminal-phone view --frame orange. The choice is remembered for each phone. The finishes are graphite (the default), black, silver, white, gold, orange, red, pink, yellow, green, blue and purple.
Terminals and splits
The viewer works in every major macOS terminal and picks the sharpest graphics each one supports. --split right|left|down|up opens it in a new pane beside your shell (or your agent) and returns at once, so you can keep working next to the phone:
terminal-phone up --split right
terminal-phone view work --split down