Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions .claude-plugin/marketplace.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"name": "idevbench",
"description": "iDevBench: use a real iPhone from Claude",
"owner": {
"name": "YK3D"
},
"plugins": [
{
"name": "idevbench",
"source": "./plugins/idevbench",
"description": "See and control an iPhone's screen and set its GPS location through the iDevBench app."
}
]
}
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,15 @@ Test builds from the `dev` branch are marked as pre-releases.

## Unreleased (dev)

### Experimental (see [docs/testing/multiple-iphones-and-wifi.md](docs/testing/multiple-iphones-and-wifi.md))
- Several iPhones at once: phones added under *Device › More iPhones* follow the main one (teleports, routes, GPX, joystick, Stop spoofing). Each gets positions from its own queue, so a slow or lost phone never holds up the others; a lost phone is marked until removed, and removing one sends it back to its real location. The Simulator has a second phone to try it.
- Wi-Fi connections: *Device tools › Connect over* (Automatic, USB cable only, Wi-Fi only) and *Allow Wi-Fi connection*, which turns on the phone's "Show this iPhone when on Wi-Fi" setting. The device list shows how each phone can be reached (USB, Wi-Fi, or both). In the browser version, a second iOS 17+ phone or an iOS 17+ phone over Wi-Fi needs the tunnel helper. Bluetooth isn't possible.

### New
- **Screen mirroring (iOS 27 and newer):** the iPhone's screen in its own *Mirroring* section (switch at the top of the side menu), over the USB cable. Click to tap, drag to swipe, scroll with the mouse wheel, Ctrl + wheel or a trackpad pinch to zoom, right-click for Home, and type from your keyboard (Ctrl works as ⌘). Buttons next to the screen press Home, Lock, Volume, Mute and Siri and do the app switcher, Control Centre, notifications and Back gestures. Over the screen the pointer is a small dot that dips when you click, and swipes leave a faint trail. The phone's name and iOS version are shown above it, and an iPhone home screen stands in until the picture arrives. The picture turns when the phone does (or with *Rotate*). The standalone app also plays the iPhone's sound. Save screenshots, or record the screen with its sound as a video, to Downloads or a folder chosen with *Browse* in *Settings › Mirroring*. *Stats* shows the stream's frame rate, data rate and delay, and the iPhone's CPU, memory, GPU, battery and temperature. A frozen picture restarts by itself after a few seconds, or at once with *Restart stream*.
- **Local API:** other programs on your computer can set the location, watch the screen, tap, swipe and type through the app while it is open (websites can't). See [docs/API.md](docs/API.md).
- **AI agents:** iDevBench is an MCP server, so Claude, Codex, Cursor and other AI apps can use the phone through it: see and control the screen, set the location, drive routes, play tracks and use the joystick. Setting it up is one prompt to paste into the agent (*Settings › AI agents*), or one button for Claude Desktop; there is also a Claude Code plugin. The agent gets a guide on how to use the phone, and only enters the passcode if you ask it to and give it the passcode. See [docs/API.md](docs/API.md#ai-agents-mcp).
- **iOS 27:** the standalone app now tries to mount the developer image itself instead of asking for Xcode first.
- **New name: iDevBench.** Location Spoofer is now called iDevBench, because it is growing into a toolkit for working with your iPhone from Windows, not only for its location. Nothing else changes: updating keeps your settings, favourites, routes and offline maps, and the download files keep their names so installed copies keep updating.
- **Website:** [idevbench.vercel.app](https://idevbench.vercel.app) shows what the app does, has the downloads, and lets you try a small version of it in your browser. The Terms of Use, Privacy Policy and licences now open there (setup guide and *Settings › About*).
- **Offline maps:** *Settings › Offline maps* saves the area on screen (up to 3,000 map tiles, about a city, per download; as many areas as you like), so the map works without internet. Saved areas can be shown on the map or deleted.
Expand Down
1 change: 1 addition & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ Set `SPOOFER_DATA_DIR` to an empty folder first if you don't want the experiment
| `standalone/` | Standalone app (Rust): local server, iPhone driver, routing, speed engine, native window |
| `browser/` | Browser edition (Python, FastAPI) |
| `ui/` | The interface both editions serve (HTML, CSS, JavaScript; no build step) |
| `plugins/idevbench/`, `.claude-plugin/marketplace.json` | The Claude Code plugin (MCP server at `http://127.0.0.1:8766/mcp` plus the guide as a skill). The MCP server itself is built into both editions (`/mcp`, `--mcp`); its tools are listed once in `ui/mcp-tools.json` as calls to the local API, and `ui/mcp-guide.md` is the guide (the plugin's `SKILL.md` must match it; a test checks). Check the plugin with `claude plugin validate ./plugins/idevbench --strict` |
| `assets/icon/` | Icon artwork; `make_icons.py` regenerates every icon file from `source.jpg` |
| `docs/screenshots/` | README screenshots; `capture.js` makes them, and `website/scripts/record-clips.cjs` makes the animation (`demo.webp`) with the website's clips |
| `website/` | The showcase website with an in-browser demo (Vite + React, hosted on Vercel); see `website/README.md` |
Expand Down
4 changes: 2 additions & 2 deletions PRIVACY.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ This policy covers both editions of iDevBench, formerly called Location Spoofer:
* Everything you create — favourites, saved routes, settings, an optional Google API key — is stored **only on your computer**.
* To show maps, find places and calculate routes, the app talks **directly from your computer to third-party online services** listed below. Those services receive the information needed to answer each request (for example map coordinates or a search term) and your IP address, under their own privacy policies.
* The app talks to your iPhone **only over the USB cable or your local network**; nothing about the phone is sent to the internet by the app.
* **Screen mirroring** (the picture, the sound and your clicks and key presses) travels only between the phone and your computer. The app does not upload it, analyse it or keep a copy. Only screenshots and recordings that you save are written to disk, where you choose.
* The **local API for other programs** works only while the app is open, only for programs on your computer (not websites or other computers). Programs that use it can receive the phone's screen and control the phone; what they do with it is covered by their own privacy policies.
* **Screen mirroring** (the picture, the sound and your clicks and key presses) travels only between the phone and your computer. The app does not upload it, analyse it or keep a copy. Only screenshots and recordings that you save are written to disk, in your Downloads folder or the folder you choose in *Settings › Mirroring*.
* The **local API for other programs** works only while the app is open, only for programs on your computer (not websites or other computers). Programs that use it can receive the phone's screen and control the phone; what they do with it is covered by their own privacy policies. This includes the **AI agent connector** that comes with the app: if you connect an AI assistant (for example Claude Code or Cursor) to it, the screenshots it takes, what is visible on them and what you tell it (including a passcode, if you give it one to unlock the phone) are sent to that AI service, under its own privacy policy. *Add to Claude Desktop* only adds iDevBench to Claude Desktop's settings file on this computer.

## What is stored on your computer

Expand Down
26 changes: 23 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<h1 align="center">iDevBench</h1>

<p align="center"><b>A free Windows toolkit for working with your iPhone over USB, with no jailbreak and no Mac.</b><br>
Set the iPhone's GPS location: teleport anywhere, drive routes that follow real roads at realistic speeds (with bends, roundabouts and braking), replay GPX files, or walk around live with the keyboard. No accounts, no telemetry.</p>
Set the iPhone's GPS location: teleport anywhere, drive routes that follow real roads at realistic speeds (with bends, roundabouts and braking), replay GPX files, or walk around live with the keyboard. Mirror the iPhone's screen and sound on your PC, control it with the mouse and keyboard, and record it. Other programs can do the same through a local API. No accounts, no telemetry.</p>

<p align="center"><sub>iDevBench was previously called <i>Location Spoofer</i>. Updating keeps your settings, favourites and routes.</sub></p>

Expand Down Expand Up @@ -38,8 +38,9 @@ Most people should use the **standalone app**. The browser edition exists for iP
| Size and start-up | Under 20 MB, starts instantly | About 80 MB, 10–20 s to start |
| iOS 17.4 and newer, iOS 16 and older | ✅ | ✅ |
| iOS 17.0–17.3 | ❌ | ✅ (needs administrator permission once per session) |
| Screen mirroring and control (iOS 27 and newer) | ✅ with sound | ✅, sound only on a Mac |

Both have the same look and features, and both update themselves. The download files keep their original names (`LocationSpooferStandalone.exe` and `LocationSpooferBrowser.exe`) so copies that are already installed keep updating.
Both have the same look and features (apart from the differences above), and both update themselves. The download files keep their original names (`LocationSpooferStandalone.exe` and `LocationSpooferBrowser.exe`) so copies that are already installed keep updating.

## Getting started

Expand All @@ -57,7 +58,7 @@ Both have the same look and features, and both update themselves. The download f
<summary><b>Requirements</b></summary>

* Windows 10 or 11 (64-bit) with the Microsoft Edge WebView2 Runtime, which is built into Windows 11 and installed on up-to-date Windows 10.
* An iPhone or iPad with Developer Mode.
* An iPhone or iPad with Developer Mode. Screen mirroring needs iOS 27 or newer.
* A USB cable.
* An internet connection for maps and road routing.

Expand All @@ -76,6 +77,11 @@ Both have the same look and features, and both update themselves. The download f
| "My real location" says Windows blocked it | Turn on *Settings › Privacy & security › Location* and "Let desktop apps access your location" (the message has a button for it) |
| Location stays wrong after you finish | Press **Stop spoofing**, or restart the iPhone |
| The app shows an older version number | An older copy is still running in the background. Close every iDevBench window, end any **location-spoofer** or **LocationSpooferStandalone** task in Task Manager, then open the new file |
| Mirroring: "won't share its screen while an app uses the camera or microphone" | Close Camera, Voice Memos or any app that is recording, then press Start mirroring again |
| Mirroring: "can't decode the iPhone's video (HEVC)" | Update the graphics driver, or install *HEVC Video Extensions* from the Microsoft Store |
| Mirroring: the picture stays black | Unlock the iPhone. Some apps hide their content from screen mirroring, for example video streaming apps |
| Mirroring: the picture freezes | It restarts by itself after a few seconds; press **Restart stream** next to the screen to do it at once |
| Mirroring: the picture is sideways | Press **Rotate** next to the screen |
| Something else | [Open an issue](https://github.com/YK3D/iPhone-location-spoofer/issues/new) and describe what happened, with the app's version (*Settings › About*) |

</details>
Expand Down Expand Up @@ -127,6 +133,20 @@ Both have the same look and features, and both update themselves. The download f

</details>

<details>
<summary><b>Screen mirroring and control (Mirroring section)</b></summary>

* **See the iPhone's screen** live in its own section of the app (switch between *Location* and *Mirroring* at the top), over the USB cable. Needs iOS 27 or newer. The picture turns with the phone.
* **Control it:** click to tap, drag to swipe, scroll with the mouse wheel, Ctrl + wheel (or a trackpad pinch) to pinch and zoom, right-click for Home. Buttons next to the screen for Home, Lock, Volume, Mute and Siri, and for the gestures: app switcher, Control Centre, notifications and Back. Over the screen the pointer is a small dot that dips when you click, and a swipe leaves a faint trail.
* **Type:** click the screen and type on your keyboard (Ctrl works as the iPhone's ⌘, so Ctrl+C and Ctrl+V copy and paste on the phone).
* **Sound:** hear what the iPhone plays (standalone app).
* **Screenshots and recordings:** save a picture, or record the screen with its sound as a video file, to your Downloads folder or a folder you choose in *Settings › Mirroring*.
* **Stats** shows the stream's frame rate, data rate and delay, and the iPhone's CPU, memory, GPU, battery and temperature; **Restart stream** restarts a frozen picture (the app also does this by itself).
* **For developers:** other programs on your computer can watch the screen, tap, type and set the location through the [local API](docs/API.md).
* **AI agents:** connect Claude, Codex, Cursor or another AI app to iDevBench and the agent can use the phone: see the screen, tap and type, set the location and drive routes. *Settings › AI agents* has one prompt to paste into the agent, and a button for Claude Desktop. There is also a [Claude Code plugin](docs/API.md#ai-agents-mcp).

</details>

<details>
<summary><b>Comfort and customisation</b></summary>

Expand Down
2 changes: 1 addition & 1 deletion ROADMAP.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ Ideas being considered for future versions. None of them is promised; suggestion
- Search history and recent places.
- More languages for the interface.
- Portable mode (settings stored next to the `.exe`).
- Control the app from scripts, and record and replay test sessions.
- Record and replay test sessions (scripts can already control the app through the [local API](docs/API.md)).
2 changes: 2 additions & 0 deletions TERMS.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ The app cannot hide that a location is simulated: apps can detect it, and other

While the app is open, programs on your computer can use its local API to do what the app can do: see the device's screen, control the device and change its location. Websites cannot use it, and it cannot be reached from other computers. Only run programs you trust, and close the app when you are not using it. Programs that use the API are not made by YK3D, and their own terms and privacy policies apply to them. See [docs/API.md](docs/API.md).

The app includes a connector that lets AI agents use the API. An agent connected to it sees the screen and acts on the device by itself, and it can make mistakes: watch what it does, don't leave it unattended where a mistake can't be undone (purchases, messages, deleting data), and you remain responsible for what it does on your device. What you and the agent send to an AI service is covered by that service's terms.

## 5. No warranty

THE APP IS PROVIDED "AS IS" AND "AS AVAILABLE", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING FITNESS FOR A PARTICULAR PURPOSE, ACCURACY AND NON-INFRINGEMENT. Routes, speeds, travel times and speed limits are estimates and may be wrong. Mirrored pictures and sound can lag, freeze or be incomplete. **Never use the app for navigation or safety-critical purposes.**
Expand Down
3 changes: 2 additions & 1 deletion THIRD_PARTY_NOTICES.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ The licences below belong to the third-party components and are not changed by t

| Component | Use | Licence |
|---|---|---|
| [idevice](https://github.com/jkcoxson/idevice), [jktcp](https://crates.io/crates/jktcp) | iPhone communication (usbmuxd, lockdown, CoreDevice tunnel, DVT) | MIT |
| [idevice](https://github.com/jkcoxson/idevice), [jktcp](https://crates.io/crates/jktcp) | iPhone communication (usbmuxd, lockdown, CoreDevice tunnel, DVT, screen streaming and touch input) | MIT |
| [Fraunhofer FDK AAC](https://github.com/mstorsjo/fdk-aac) through [fdk-aac-rs](https://github.com/haileys/fdk-aac-rs) | Plays the iPhone's sound while mirroring (AAC-ELD decoding) | FDK AAC licence, full text in [docs/licenses/fdk-aac.txt](docs/licenses/fdk-aac.txt) (the Rust bindings are MIT). Included unmodified; its complete source code is available free of charge from [crates.io](https://crates.io/crates/fdk-aac-sys/0.5.0) and [GitHub](https://github.com/mstorsjo/fdk-aac). The licence grants no patent rights |
| [wry](https://github.com/tauri-apps/wry), [tao](https://github.com/tauri-apps/tao) | Native window and Microsoft WebView2 | Apache-2.0 OR MIT |
| [axum](https://github.com/tokio-rs/axum), [tokio](https://tokio.rs/), [reqwest](https://github.com/seanmonstar/reqwest), [rustls](https://github.com/rustls/rustls), [ring](https://github.com/briansmith/ring) | Local server, networking, TLS | MIT / Apache-2.0 / ISC-style (ring) |
| [cssparser](https://github.com/servo/rust-cssparser), [selectors](https://github.com/servo/stylo), [dtoa-short](https://github.com/upsuper/dtoa-short), [option-ext](https://github.com/soc/option-ext) | Used by the window and settings-folder libraries | MPL-2.0. Included unmodified; their source code is available from [crates.io](https://crates.io/) at the versions listed in `standalone/Cargo.lock` |
Expand Down
2 changes: 1 addition & 1 deletion browser/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Device control. Written against 11.x; newer major versions may change the Python API
# (the "Guide commands" connection method keeps working as long as the CLI does).
pymobiledevice3>=11.49,<12
pymobiledevice3>=11.63,<12
# Offline sea-lane routing
searoute>=1.6,<2
fastapi>=0.115
Expand Down
7 changes: 7 additions & 0 deletions browser/spoofer/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,10 +110,17 @@ def main() -> None:
ap.add_argument("--version", action="store_true")
ap.add_argument("--self-test", action="store_true", help=argparse.SUPPRESS)
ap.add_argument("--wait-pid", type=int, help=argparse.SUPPRESS)
ap.add_argument("--mcp", action="store_true", help="connect an AI app (MCP over stdio) to the running app")
args = ap.parse_args()

from spoofer import __version__

if args.mcp:
from spoofer.mcp import bridge

bridge(args.port if "--port" in sys.argv else None)
return

if args.version:
print(__version__)
return
Expand Down
9 changes: 7 additions & 2 deletions browser/spoofer/device/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class DeviceInfo:
name: str = "iPhone"
ios_version: str = ""
product_type: str = ""
connection: str = "" # USB / Network / Simulated
connection: str = "" # USB / Wi-Fi / Simulated
transport: str = "" # how location commands reach it (DVT tunnel, lockdown, CLI, ...)
notes: list[str] = field(default_factory=list)

Expand All @@ -44,7 +44,8 @@ def connected(self) -> bool:
async def list_devices(self) -> list[dict]: ...

@abstractmethod
async def connect(self, udid: Optional[str] = None) -> DeviceInfo: ...
async def connect(self, udid: Optional[str] = None, connection: str = "auto") -> DeviceInfo:
"""`connection`: "auto" (USB when the phone is plugged in, else Wi-Fi), "usb" or "network"."""

@abstractmethod
async def disconnect(self) -> None: ...
Expand All @@ -61,6 +62,10 @@ async def reveal_developer_mode(self, udid: Optional[str] = None) -> str:
async def mount_developer_image(self) -> str:
raise DeviceError("Not supported by this connection method")

async def enable_wifi(self, udid: Optional[str] = None) -> str:
"""Let the phone be reached over Wi-Fi from now on (needs it plugged in once)."""
raise DeviceError("Not supported by this connection method")

# Only used by non-live drivers
async def play_gpx(self, path: str) -> None:
raise DeviceError("Not supported by this connection method")
Expand Down
2 changes: 1 addition & 1 deletion browser/spoofer/device/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ async def list_devices(self) -> list[dict]:
if isinstance(d, dict)
]

async def connect(self, udid: Optional[str] = None) -> DeviceInfo:
async def connect(self, udid: Optional[str] = None, connection: str = "auto") -> DeviceInfo:
devices = await self.list_devices()
if not devices:
raise DeviceError("No iPhone found. Plug it in, unlock it, tap Trust and keep the Apple Devices app open.")
Expand Down
Loading
Loading