Skip to main content
Each device runs one task at a time, and tasks on different devices run at once. With one phone, every command and tool works on that phone and you never name it. In Mobster for Mac, you add, rename and forget each device on the Devices page.

List your devices

mobster devices lists every device Mobster can drive, with its state. It changes nothing.
mobster devices --json gives each device’s id, address and state in full. Every state but ready comes with a sentence that says what to do.

Choose the device a task runs on

--device takes a device’s id, its UDID or its name, in any case. For a name two devices share, give the id.
A device that isn’t set up, or isn’t there, exits with code 3 and says why. Over the API, a task names its device with device. Without one it runs on the device serve --device names, else the only device, else the one the last task ran on, else the first iPhone. A saved workflow runs on the phone saved with it, and never on whichever phone you used last, since a schedule runs while nobody watches. Scripts and the API lists the requests.

The composer’s phone

The composer in Mobster for Mac runs the next task on the phone you chose last in its phone chip, and keeps that choice across a relaunch and an update. While that phone is plugged in, the composer stays on it, even when it’s locked or busy, and says what to do. When it isn’t connected, the composer opens on another phone, ready ones first, until you plug yours in again. GET /api/devices answers chosenDevices, the phones the composer uses now, and chosenSaved, the saved choice. POST /api/devices/chosen with {"devices": ["<UDID>"]} saves a choice, and {"devices": []} forgets it. The choice doesn’t change where a task with no device runs, so an agent over MCP or a script still gets the default device.

Run one task on several phones

Check several devices in the composer’s device chip, or choose All ready devices, and type the task:
It is one task: one row in the sidebar (“3 devices”) and one card with a tab per device, each with its own steps, screen and result. When several drafts wait, Review all shows every draft, and Approve all answers exactly those. When every device is done, the card merges what they found, with each device’s own answer under it. A phone that can’t take the task (locked, busy, or an app it may not use) doesn’t start and says why. The others go ahead. Over the API, POST /api/runs with "phones": ["<id>", "<id>", …] instead of device starts it and answers 201 with {groupId, group, runs, refused}. GET /api/groups/{id} reads it, POST /api/groups/{id}/stop stops every phone, and POST /api/groups/{id}/approvals answers the approvals you showed.

Share a phone between tasks

A phone has one holder at a time. Mobster for Mac says who it is above the phone’s picture: “Claude Code is using this phone, started 4 min ago”. The holder is a task, an agent over MCP, Mobster Remote, a workflow, a schedule, or your own hands in the live view. A phone that mobster run or another mobster mcp holds shows as “another Mobster process”. A second request for a held phone waits in line. It is a task in your history that says “Number 2 in line for Work iPhone” and who it waits for. Nothing happens on the phone until its turn. Then it starts only if the phone passes the checks a new task does, and otherwise ends with the reason and does nothing. A request that needs your approval still asks you when it runs. These don’t wait, and Mobster refuses them at once: a schedule, a task on several phones, a request with "queue": false, and a phone another Mobster process holds. Take it back in Mobster for Mac ends the holder’s task so you can use the phone. Mobster stops the task after the step it is in, never in the middle of an action. An action whose outcome is unknown stays in the task’s steps as unknown, and Mobster never sends it again. The pane says “Stopping after this step” until the task ends. The line then waits two minutes so you can use the phone, and Resume queue lets it go on at once. An agent holding the phone can’t take it back from you. GET /api/devices and GET /api/devices/{id} carry holder and queue:
kind is task, agent, mcp, schedule, remote or manual. since is in epoch milliseconds. holder is null when nobody holds the phone. POST /api/devices/{id}/take-back and POST /api/devices/{id}/resume-queue take {} and answer {device}. take-back answers 409 not_held when nothing holds the phone, and both answer 403 app_only without the session of Mobster for Mac when it runs the server.

Drive a phone from your coding agent

mobster mcp has a list_devices tool, and every phone tool takes device. Called with device and no run_id, screen, tap, type_text, swipe, alert, open_url, launch_app and home drive that device directly. Mobster takes the device’s lock, and stop or 90 idle seconds release it. verify_start with a USB iPhone’s device checks an app already installed on it (bundle_id) and never clears its data. A check with "smart": true on an iPhone or a WebDriverAgent address declines every send, delete, post and purchase, because nobody is there to approve it. MCP server has the details.

Keep the helper app running

The helper app on an iPhone can stop answering while its process still runs, for example behind Control Center or Siri. Mobster checks it every 10 seconds, and every request to it has a time limit, from 3 seconds for a status read to 30 seconds for a new session. After three missed checks in a row and 90 seconds, Mobster restarts the helper and its USB link:
  • It never restarts under an action that was sent and hasn’t answered. With a task running, it restarts between actions.
  • It counts a check only once the helper it started has had 120 seconds to start, so a helper you stopped, or one still starting, is left alone.
  • While it restarts, no action leaves, and a task that starts then is refused with “The helper app on your iPhone is restarting. No action was taken. Try again in a moment.” (HTTP 503, device_unavailable).
  • If the helper has stopped for good, a running task ends with “The helper app on your iPhone stopped, so this task ended. No further action was taken.”
  • Restarts in a row wait 3 minutes, then 6, then 12, up to 30.
  • A restart that started nothing and left no helper running (another Mobster holds port 8100, the iPhone dropped off the cable mid-restart) isn’t counted. Mobster tries the start again every 5 seconds, Setup shows why it didn’t start, and the reason goes to the log once.
  • Plugging the iPhone back in skips the wait left by earlier restarts, so the helper starts then. A plug-in does that at most once in 3 minutes, so a loose cable can’t restart the helper at every contact.
  • Neither one starts a helper under an action that hasn’t answered.
GET /api/devices shows watchdog: state (ok, restarting or wedged), restarts and last_restart in milliseconds. The helper’s signature lasts 7 days on a free Apple Account. From day 5, Mobster rebuilds it while the phone is plugged in and unlocked, you aren’t using it and no task runs. A phone that is away shows renewal: due, with deadline and hours_left. Mobster also rebuilds the helper after an update that changes it, and the phone reads “It needs a quick refresh after Mobster updated” until then. Both rebuilds need the phone plugged in and unlocked, and you do nothing.

Handle a locked phone

Before a task’s first model call, Mobster checks the phone in code: The check runs again when a task suspects the phone locked or a system sheet came up: a Face ID prompt, an app locked with Require Face ID, or the App Store’s side-button confirmation. Each stops the task with a sentence that says what to do. A task you started yourself waits up to 2 minutes for a Face ID prompt to clear. Mobster never enters a passcode, never uses Face ID and never confirms a purchase. mobster devices lock-probe --device "Work iPhone" prints what that check sees: whether the phone is locked, the app in front, and the labels the lock screen shows. It taps and types nothing. When the helper doesn’t answer, it adds the lock state from devicectl device info lockState.

Watch battery and heat

mobster devices status reads a device’s battery and thermal state, and whether this Mac is on battery. It taps nothing.
A value the device doesn’t report is left out. Mobster for Mac shows the battery under the phone’s picture and the rest in the phone’s details. Over the API, GET /api/device/status or GET /api/devices/{id}/status answers {phone, mac, warnings, phoneBatteryPause}, and MCP’s device_status answers the same.

While tasks run

In Mobster for Mac and mobster serve:
  • The Mac stays awake while a task runs, or a scheduled task is due within 10 minutes (caffeinate -i). A Mac still sleeps when its lid closes on battery. MOBSTER_KEEP_AWAKE=0 turns this off.
  • A low Mac battery warns you. On battery at 20% or less, each running task gets a mac_battery_low event, and the phone’s details say “This Mac is on battery at 18%. Plug it in: a Mac that runs out of battery sleeps and stops its tasks.” MOBSTER_MAC_BATTERY_WARN sets the percent, and off turns it off.
  • A low phone battery pauses the task. A long or scheduled task pauses at its next step while its iPhone is at 10% or less and not charging, and goes on once the phone charges. Nothing runs while it waits, and the wait doesn’t count against the task’s time. After 30 minutes without charging, the task ends stopped. Continue goes on at once and doesn’t pause that task again. POST /api/settings with {"phoneBatteryPause": 15}, or MOBSTER_PHONE_BATTERY_PAUSE, sets the percent, and off turns it off.
  • Low Power Mode is read only with MOBSTER_QUEUE_PREFLIGHT=1. A scheduled task on a phone in Low Power Mode then gets one phone_low_power event, because the phone locks itself after 30 seconds.

Run many phones on one Mac

Each device has its own helper port, its own video port and its own device lock, so two devices never meet. On the phone itself the helper always listens on 8100 and 9100, and the USB relay maps this Mac’s pair to it: iproxy -s 127.0.0.1 -u <UDID> 8101:8100 9101:9100. Mobster builds the helper once per iPhone, because its signature includes that phone. Builds run one at a time, and a second iPhone’s build waits for the first and says so. The ports allow 100 USB iPhones per Mac. In practice the Mac, the cables and your model provider set the limit:
  • Each phone streams its screen while you watch it, and sends a screenshot for each step a task takes.
  • The Mac relays each stream, keeps a helper per phone and reads every screen.
  • A USB hub shares one link among the phones on it.
  • Your model provider’s rate limits apply to every task at once.
Mobster warns when a task on several phones would make more than 10 run at once. While the Mac’s CPU is above 85%, a new task on several phones waits, then starts phone by phone as the CPU drops. A phone still waiting after 5 minutes doesn’t start, and says so. A task on one phone never waits for the CPU.

Connect without the helper app

Mobster reaches an iPhone in one of three ways. The helper app is the full connection, and everything above uses it. The other two need no Xcode and are off until you turn them on. Both read text from pixels, so neither reads switch states, values or rows off screen, or knows which app is in front. mobster serve --manage-device, which Mobster for Mac runs, keeps the helper app.

iPhone Mirroring

Set MOBSTER_EXPERIMENTAL_MIRRORING=1 in your shell or your settings file. mobster run, the terminal UI and mobster serve then drive the iPhone this Mac mirrors.
Before the first task:
  1. Pair the phone in macOS’s iPhone Mirroring app. The phone stays locked and nearby.
  2. In iPhone Mirroring’s settings (cmd+,), set iPhone Mirroring Access to Authenticate Automatically. Mobster never types your Mac password.
  3. Give the app you run Mobster from Screen Recording and Accessibility in System Settings › Privacy & Security.
How a task runs:
  • Mobster captures the Mirroring window with ScreenCaptureKit and reads its text with Apple Vision. Each line of text is an element the agent can tap.
  • Claude Haiku 5.5 names each new icon drawn without words once, on your Claude key, and Mobster keeps the name in mirroring-icons.json. A named icon asks before it’s tapped, as on any connection. An icon without a name is a tap on a point, which asks you first.
  • Taps, swipes and typing go to the Mirroring window itself. Mobster doesn’t bring the window forward, move your cursor or type into the app you’re using. It refuses a gesture, and sends nothing, when the window shows “iPhone in Use”, a paused session or the login gate. MOBSTER_MIRRORING_INPUT=foreground brings the window forward for each gesture and moves your cursor instead.
  • Files go to the phone and come off it by drag and drop, on macOS 15.1 or later.
It drives one phone, the one this Mac mirrors, and the phone stays locked while it’s mirrored. Protected video shows black. When iPhone Mirroring isn’t ready, a task stops before its first model call and says what to do:

Cable + Bluetooth

Set MOBSTER_EXPERIMENTAL_CABLE_BT=1. mobster run, the terminal UI and mobster serve then drive a USB iPhone without the helper app. With several iPhones plugged in, MOBSTER_CABLE_BT_UDID names the one to drive, and you run one mobster serve per phone, each with its own UDID and --port. Before the first task on a phone:
  1. Plug the iPhone in, unlock it, and tap Trust if it asks.
  2. On the iPhone, open Settings › Accessibility › Touch › AssistiveTouch. Turn AssistiveTouch on and Always Show Menu off.
  3. Open Settings › Accessibility › Pointer Control and turn Automatically Hide Pointer off.
  4. While a task waits for it, tap Mobster Keyboard under Other Devices in the iPhone’s Settings › Bluetooth, then tap Pair.
  5. Give the app you run Mobster from Camera and Bluetooth in System Settings › Privacy & Security. The iPhone’s screen arrives as a camera.
How a task runs:
  • Mobster watches the screen over the cable at about 40 frames a second and reads its text with Apple Vision.
  • Taps and swipes go in as a Bluetooth mouse, which AssistiveTouch turns into touches. Mobster clicks only when it sees the pointer within 9 points of the target, and otherwise refuses the tap.
  • Text goes in as US keyboard characters, at most 80 at a time, and Mobster reads it back before it presses Return.
  • One Mac serves several phones, and each mouse report goes to one phone only.
While Mobster watches the screen, iOS shows a 9:41 status bar, so Mobster blacks it out and reads the battery in Settings instead. The cable video and the helper app can’t share a phone. The phone stays unlocked, and a task stops when the video shows the lock screen: