[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-108393":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":9,"language":10,"languages":9,"totalLinesOfCode":9,"stars":11,"forks":12,"watchers":13,"openIssues":14,"contributorsCount":15,"subscribersCount":15,"size":15,"stars1d":13,"stars7d":16,"stars30d":17,"stars90d":15,"forks30d":15,"starsTrendScore":18,"compositeScore":19,"rankGlobal":9,"rankLanguage":9,"license":20,"archived":21,"fork":21,"defaultBranch":22,"hasWiki":23,"hasPages":21,"topics":24,"createdAt":9,"pushedAt":25,"updatedAt":26,"readmeContent":27,"aiSummary":28,"trendingCount":15,"starSnapshotCount":15,"syncStatus":14,"lastSyncTime":29,"discoverSource":30},108393,"terminal-phone","govijr\u002Fterminal-phone","govijr","Your Real iPhone or iOS Simulator in your Terminal.",null,"Swift",368,27,1,2,0,85,236,29,76.34,"MIT License",false,"main",true,[],"2026-11-09 15:27:32","2026-11-22 16:30:47","# terminal-phone\n\n\n[![](https:\u002F\u002Fimg.shields.io\u002Fstatic\u002Fv1?label=Sponsor&message=%E2%9D%A4&logo=GitHub&color=%23fe8e86)](https:\u002F\u002Fgithub.com\u002Fsponsors\u002Fgovijr)\n\u003Ca href=\"https:\u002F\u002Fbuymeacoffee.com\u002Fgovijr\" target=\"_blank\">\u003Cimg src=\"https:\u002F\u002Fwww.buymeacoffee.com\u002Fassets\u002Fimg\u002Fcustom_images\u002Forange_img.png\" alt=\"Buy Me A Coffee\" style=\"height: 21px !important;width: 108px !important;box-shadow: 0px 3px 2px 0px rgba(190, 190, 190, 0.5) !important;-webkit-box-shadow: 0px 3px 2px 0px rgba(190, 190, 190, 0.5) !important;\" >\u003C\u002Fa>\n\n\n**An interactive iPhone in your terminal, shared with your AI agents.**\n\nterminal-phone puts an iOS simulator, or your own paired iPhone, inline in your terminal: sharp images in Ghostty, kitty, 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.\n\n\u003C!-- Add a demo GIF here: docs\u002Fassets\u002Fdemo.gif -->\n\n- **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.\n- **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.\n- **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.\n- **Real iPhones too:** through [WebDriverAgent](https:\u002F\u002Fgithub.com\u002Fappium\u002FWebDriverAgent) over USB or Wi-Fi. They stay view-only until you, the owner, allow control.\n\n## Install\n\nRequirements: an Apple silicon Mac with macOS 15 or later, and Xcode 26 or later installed from Apple and opened once.\n\n```sh\ncurl -fsSL https:\u002F\u002Fraw.githubusercontent.com\u002Fgovijr\u002Fterminal-phone\u002Fmain\u002Finstall.sh | bash\n```\n\nThen open a new terminal and run `terminal-phone`. The [install script](install.sh) downloads the latest release, checks its SHA-256 checksum and runs `terminal-phone self install`, which installs to `~\u002F.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 \u002Fabsolute\u002Fpath --no-path`.\n\n**Manual download:** from [Releases](https:\u002F\u002Fgithub.com\u002Fgovijr\u002Fterminal-phone\u002Freleases), with `curl` so macOS doesn't quarantine it:\n\n```sh\nbase=https:\u002F\u002Fgithub.com\u002Fgovijr\u002Fterminal-phone\u002Freleases\u002Fdownload\u002Fv0.4.0\ncurl -fsSLO \"$base\u002Fterminal-phone-0.4.0-macos-arm64.tar.gz\" -O \"$base\u002Fterminal-phone-0.4.0-macos-arm64.tar.gz.sha256\"\nshasum -a 256 -c terminal-phone-0.4.0-macos-arm64.tar.gz.sha256\ntar -xzf terminal-phone-0.4.0-macos-arm64.tar.gz\n.\u002Fterminal-phone\u002Fterminal-phone self install\n```\n\nRelease 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.\n\n**From source:**\n\n```sh\ngit clone https:\u002F\u002Fgithub.com\u002Fgovijr\u002Fterminal-phone.git && cd terminal-phone\nbash scripts\u002Fbuild-phone.sh\n.\u002Fdist\u002Fterminal-phone self install\n```\n\n## Use it\n\n```sh\nterminal-phone\n```\n\nThe 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.\n\nClick 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, and Ctrl+] exits while the phone keeps running.\n\nIn 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.\n\n### Terminals and splits\n\nThe 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:\n\n```sh\nterminal-phone up --split right\nterminal-phone view work --split down\n```\n\n| Terminal | Phone graphics | `--split` |\n|---|---|---|\n| Ghostty | Sharp (kitty graphics, shared memory) | Native split, Ghostty 1.3+ |\n| kitty | Sharp (kitty graphics, shared memory) | Native split, right or down; needs `allow_remote_control yes` |\n| iTerm2 | Sharp (inline images) | Native split, right or down |\n| WezTerm | Sharp (inline images) | Native split, any direction |\n| Warp | Sharp (inline images) | Not scriptable; run the printed command in a split |\n| VS Code, Cursor | Sharp with `terminal.integrated.enableImages`, otherwise text | Not scriptable; run the printed command in a split |\n| tmux 3.3+ | Inherits the outer terminal's graphics | `split-window` beside the current pane |\n| Terminal.app, Alacritty | Text graphics (half blocks) | Opens a new window |\n\nThe palette follows your terminal's light or dark background, uses 256 colours where truecolor isn't available, and respects `NO_COLOR`. Force a protocol with `--protocol kitty|iterm|blocks`.\n\n### Build, test and record\n\n```sh\nterminal-phone run --watch --split right          # build this folder's Xcode app, launch it, rebuild on save\nterminal-phone logs --split down                   # the app's logs beside the phone\nterminal-phone record --output demo.gif           # video plus a replayable flow of every tap and keystroke\nterminal-phone appstore screenshot --frame --caption 'Track every habit'   # App Store Connect-ready sizes\nterminal-phone appstore record --duration 20      # an app preview: 886x1920, 30 fps, audio track included\nterminal-phone test flows\u002F --junit report.xml     # run flow files, for example in CI\n```\n\nA flow is a short YAML list of steps:\n\n```yaml\n- launch: com.example.app\n- tap: \"Sign in\"\n- fill: {id: email, text: \"me@example.com\"}\n- expect: \"Welcome\"\n```\n\n`terminal-phone sim` sets the status bar to 9:41, the location, permissions, text size and appearance, and sends push notifications; `clipboard push|pull` shares the clipboard; `action screenshot --framed` draws the device frame around a screenshot; `appstore screenshot|record|export` makes screenshots and app previews at the exact sizes App Store Connect accepts, with an optional device frame, background and caption; `log` lists every input you or an agent sent. See the [user guide](docs\u002FTERMINAL-PHONE.md#build-test-and-record).\n\n### With your AI agent (MCP)\n\n**Claude Code plugin** (the MCP tools plus a skill that teaches Claude to observe, act and verify). Run these inside Claude Code:\n\n```\n\u002Fplugin marketplace add govijr\u002Fterminal-phone\n\u002Fplugin install terminal-phone@terminal-phone\n```\n\n**Any agent app:** register the MCP server with Claude Code, Cursor or Codex. With no flags, it uses the apps it finds:\n\n```sh\nterminal-phone mcp install            # or --claude \u002F --cursor \u002F --codex; --print shows the entries\nterminal-phone mcp uninstall\n```\n\nIt changes only the `terminal-phone` entry and backs up any file it edits. Restart the app afterwards. Other MCP clients can run `terminal-phone mcp` as a stdio server. The download also includes `agent\u002FAGENT.md` and `agent\u002Fskills\u002Fterminal-phone\u002FSKILL.md` for agents that read guides or skills. In Claude Code, use either the plugin or `mcp install --claude`, not both.\n\nAgents get `phone_devices`, `phone_boot`, `phone_session`, `phone_capabilities`, `phone_observe`, `phone_act` and `phone_wait`. Without MCP, the same operations are JSON CLI commands:\n\n```sh\nterminal-phone up work --no-view\nterminal-phone install work \u002Fpath\u002Fto\u002FMyApp.app\nterminal-phone launch work com.example.MyApp\nterminal-phone observe work\nterminal-phone act work tap --id signIn --wait-text 'Welcome' --timeout 10\n```\n\nSee the [agent guide](docs\u002FTERMINAL-PHONE-AGENT.md) for references, verification and recovery.\n\n### Real iPhone\n\n```sh\nterminal-phone connect\n```\n\nThe wizard picks a paired iPhone, checks Developer Mode, builds and signs WebDriverAgent with your Apple Developer team, and asks you whether agents may control the phone.\n\n> **Real-device control acts on your real accounts and data.** Phones are view-only unless you approve input, and `terminal-phone device revoke NAME` takes it back. Agents and MCP tools can't grant it themselves, and nothing gets past your passcode. The on-phone WebDriverAgent helper has no password of its own, so run `terminal-phone stop NAME` when you're done; see [SECURITY.md](SECURITY.md).\n\n## Documentation\n\n- [User guide](docs\u002FTERMINAL-PHONE.md)\n- [Agent guide](docs\u002FTERMINAL-PHONE-AGENT.md)\n- [Architecture](docs\u002FTERMINAL-PHONE-ARCHITECTURE.md)\n- [Validation](docs\u002FTERMINAL-PHONE-VALIDATION.md)\n\n## Contributing and security\n\nContributions are welcome; see [CONTRIBUTING.md](CONTRIBUTING.md). Please report vulnerabilities privately as described in [SECURITY.md](SECURITY.md).\n\n## License\n\n[MIT](LICENSE). terminal-phone downloads third-party components at setup time under their own licenses; see [THIRD_PARTY_NOTICES.md](THIRD_PARTY_NOTICES.md).\n\n\n## Sponsor\n\nterminal-phone is free and maintained in my own time. [Sponsoring](https:\u002F\u002Fgithub.com\u002Fsponsors\u002Fgovijr) keeps it that way.\n","terminal-phone 是一款在终端中实时嵌入并交互式操作 iPhone（模拟器或真机）的工具。它支持高帧率（30fps）屏幕流、原生 iPhone 界面渲染、设备控制（点击\u002F拖拽\u002F截图\u002F录屏等），并专为 AI 编程代理设计，提供基于 JSON 的 CLI 和 MCP 服务接口，支持元素定位、状态断言与安全恢复。依赖 macOS 15+ 和 Apple Silicon，通过 WebDriverAgent 支持 USB\u002FWi-Fi 连接的真实 iPhone。适用于移动应用开发调试、自动化测试、AI 驱动的 UI 操作验证等场景。","2026-11-24 04:34:04","CREATED_QUERY"]