I vibe code this repo so please if you had anything issue with AI then just skip it. (i vibed but still checking the function before sharing so it must be work fine)
A self-hosted web platform for running multiple virtual iPhones at once in the browser — user accounts + RBAC, per-user device assignment, live screen streaming (WebRTC with an MJPEG/WebSocket fallback), touch & hardware-key input, IPA/TIPA install, an in-browser root shell and a file browser, on top of the vphone-cli engine (Apple Virtualization.framework, PV=3 research VMs).
You need build the vphone-cli and create your own base VM locally, i did not included it here due to large files.
- macOS 15+ (Sequoia) on Apple Silicon — required for PV=3 virtualization.
- SIP + AMFI disabled (needed for the private Virtualization entitlements), see the vphone-cli README for the exact recovery-mode steps.
- Xcode + command-line tools, Homebrew, Python 3.11+.
- Enough fast disk. Strongly recommended: keep VM images on an internal SSD, not a slow external/USB disk — iOS first-boot does thousands of small writes and is impractically slow on slow storage.
git clone --recursive https://github.com/34306/vphone-web.git
cd vphone-webThis also creates vendor/vphone-cli/ with the full engine + toolchain.
cd vendor/vphone-cli
make setup_tools # brew deps, build toolchain, create its Python venv
make build # build + sign the vphone-cli binary
make bundle # app bundle (bundles the IPA signing cert) — recommended
cd ../..Each web VM is an instant copy-on-write clone of a base VM directory. Build one with vphone-cli's automated pipeline (downloads IPSW + cloudOS, restores, patches, installs CFW, first boot).
See vendor/vphone-cli/README.md for the full firmware matrix, supported iOS/cloudOS builds, variants (regular / dev / jb / exp), and how to resolve IPSW URLs. When it finishes, the base lives at vendor/vphone-cli/vm/ (contains Disk.img, nvram.bin, SEPStorage, config.plist, AVPBooter*.bin, .vphoned.signed).
Tip — one base per iOS version. Keep each version's base in its own folder (
vm/,vm-26.5/,vm-27/, …) and point the matchingVPHONE_BASE_VM*env var at it. The web only offers versions whoseDisk.imgactually exists.
Boot cleanly. Always Stop a VM from the web UI (or Ctrl-C the process) and let it finish shutting down before copying/promoting a base — a hard kill leaves the APFS volume dirty and the next boot does a slow fsck replay.
cp .env.example .env # then edit paths (see below)
make web_setup # create .venv, install web deps
make web_seed_admin USER=admin PASS='choose-a-strong-password'
make web_run # serves http://127.0.0.1:8080Open http://127.0.0.1:8080, sign in as the admin, then:
- Admin → Create VM — pick an iOS version; it clones the base instantly.
- Admin → assign the VM to one or more users.
- As a user: Start → Open → interact; drag on the screen for touch, use the home/power/volume buttons, or the SSH/Files tabs. Drop an
.ipa/.tipaon the install zone to install.
Admin-only logs dashboard live-tails every VM at /logs.
The server binds 127.0.0.1 only. To reach it from the internet without opening a port, use a Cloudflare Tunnel. You need a domain on Cloudflare.
brew install cloudflared
cloudflared tunnel login # authorize your domain (opens browser)
cloudflared tunnel create vphone # creates a tunnel + credentials json
cloudflared tunnel route dns vphone phone.example.com # your hostnameCreate ~/.cloudflared/config.yml (replace the id + hostname with yours):
tunnel: <YOUR-TUNNEL-ID>
credentials-file: /Users/<you>/.cloudflared/<YOUR-TUNNEL-ID>.json
ingress:
- hostname: phone.example.com
service: http://localhost:8080
- service: http_status:404Run it:
cloudflared tunnel run vphoneNotes:
- Live video uses WebRTC locally and automatically falls back to MJPEG-over-WebSocket through the tunnel (Cloudflare can't proxy WebRTC UDP).
- IPA upload uses chunked transfer to bypass proxy body-size limits.
- If you serve subdomains (e.g.
logs.phone.example.com), setVPHONE_COOKIE_DOMAIN=.example.comin.envso the session cookie is shared. - Never commit your
~/.cloudflared/*.jsoncredentials orcert.pem.
Run the web + tunnel automatically after a reboot/power-restore by creating two per-user LaunchAgents (~/Library/LaunchAgents/…) that RunAtLoad + KeepAlive: one execs make web_run (or uvicorn directly) from this repo, the other execs cloudflared tunnel run vphone. Web VMs need a GUI login session (WindowServer), so use a LaunchAgent (per-user), not a system LaunchDaemon; enable macOS Automatic Login for a fully unattended restore.
Built on vphone-cli by Lakr233. This repo adds the web platform layer on top.