Skip to content
Back to skills

Conductor Device Setup

ASecurity

Boot, list, and manage devices and app installs for the conductor CLI — iOS simulators, Android emulators, tvOS simulators, watchOS simulators, physical iOS/tvOS devices, macOS apps on this Mac, Vega (Amazon Fire TV) virtual devices, Roku devices, and Playwright web browsers — plus sessions, the warm-driver daemon, and the parallel device pool. Use when starting or stopping a simulator/emulator/browser, attaching to a Vega VVD or a Roku device, driving a physical iPhone/iPad/Apple TV or a Mac...

  • 5 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 23, 2026
developmentgoswiftshellbashreactspringtestingdebuggingapisecurity

Works with

  • cli
  • api

Security analysis

A100/100

Scanned November 23, 2026

npx -y skills add DouweBos/conductor --skill conductor-device-setup --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Conductor Device Setup?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Conductor Device Setup
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/douwebos-conductor-device-setup/badge)](https://www.skillsdirectory.com/skills/douwebos-conductor-device-setup)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: conductor-device-setup
description: Boot, list, and manage devices and app installs for the conductor CLI — iOS simulators, Android emulators, tvOS simulators, watchOS simulators, physical iOS/tvOS devices, macOS apps on this Mac, Vega (Amazon Fire TV) virtual devices, Roku devices, and Playwright web browsers — plus sessions, the warm-driver daemon, and the parallel device pool. Use when starting or stopping a simulator/emulator/browser, attaching to a Vega VVD or a Roku device, driving a physical iPhone/iPad/Apple TV or a Mac app, installing or launching an app, setting up the web driver, attaching to an already-running browser over CDP (e.g. an Electron app / its webviews), keeping the driver warm, or coordinating multiple devices for parallel agents.
---

# Conductor — device & app setup

Get a device running and an app installed before you drive it. Start here when
nothing is booted yet.

## Orient first

```bash
conductor workspace info     # detected project type, bundle IDs, devices, Metro port — best first call
conductor list-devices       # booted + available devices
conductor foreground-app     # bundle id of the app currently in front
conductor list-apps          # installed app ids / package names (--json adds appNames on iOS/tvOS)
```

## Devices

| Command                                                               | Purpose                                                                    |
| --------------------------------------------------------------------- | -------------------------------------------------------------------------- |
| `conductor start-device --platform <ios\|android\|tvos\|watchos\|web\|vega\|roku\|macos>` | Boot a simulator/emulator, start the web driver, attach to a Vega VVD, check a Roku device, or start the driver for this Mac |
| `conductor start-device --os-version <n> --device-type <name>`        | Pick OS version + device type (creates if needed)                          |
| `conductor start-device --device-name <name>`                          | Boot the existing device with that name (Apple sim name, Android AVD, Vega serial, Roku host) |
| `conductor start-device --platform android --avd <name> --device-type <profile> --memory <mb>` | Create an Android AVD with a RAM floor (default 4096MB; only raises, creation-time only) |
| `conductor stop-device [<name-or-id>] [--all]`                        | Shut down device(s)                                                        |
| `conductor delete-device <name-or-id> [--all]`                        | Delete simulator(s)/AVD(s)/web session(s)                                  |
| `conductor set-location --lat <n> --lng <n>`                          | Set GPS coordinates                                                        |
| `conductor set-orientation <portrait\|landscape\|portraitUpsideDown\|landscapeLeft\|landscapeRight\|faceUp\|faceDown>` | Set orientation (the last five are iOS only)                               |
| `conductor get-orientation`                                           | Print the current orientation (iOS only)                                   |
| `conductor set-fold <closed\|book\|open\|0-180>`                     | Fold/unfold a foldable device, or set an exact hinge angle (iPhone Duo)    |
| `conductor get-fold`                                                  | Print the current hinge angle and pose                                     |
| `conductor set-viewport [<w> <h>] [--preset mobile\|tablet\|desktop]` | Resize web viewport; on macOS, resize the target app's window (points; web-only flags rejected) |
| `conductor install-web [--check] [browser]`                           | Install a Playwright browser (chromium/firefox/webkit); `--check` = status |

### Foldable devices (iPhone Duo)

`set-fold` drives the hinge the same way Device Hub's slider does, so the device
really folds: SpringBoard swaps between the cover and inner displays, and
`get-fold` reads the new angle back. `take-screenshot`
follows the fold automatically — it captures whichever panel is live, so an
unfolded device gives you the inner screen rather than the powered-off cover.
Pass `--display cover` or `--display inner` to pin it to one panel, or a display
id for anything else the device has attached (CarPlay, an external screen). An
unknown value lists that device's displays with their ids.

Cropping to an element (`take-screenshot <element>`) works on either panel. The
one thing it cannot do is crop against a panel that is powered off — the view
hierarchy always describes the live one — so combining a selector with a
`--display` that points at the dark panel is an error rather than a wrong crop.

Angles are in degrees, 0 (shut) to 180 (flat). `closed`/`book`/`open` map to
0/130/180. Named poses always swap the display; an arbitrary mid-way angle sets
the hinge but may leave the cover display active, because the system decides
when to swap on its own transition logic.

The first `set-fold` or `get-fold` after a device boots takes a few seconds: it injects a
controller into the simulator's locationd (restarting it), because Apple ships
no fold setter in `simctl` or `devicectl`. The current angle is restored
afterwards, so injecting doesn't change the pose (on Xcode 27.2+, which can't read the
hinge before injecting, a half-open `book` comes back as `open`). Subsequent calls
are instant. This is iOS-simulator only.

`set-orientation` works on foldables too, but by the same route: they accept
`devicectl`'s setter and ignore it, so the command verifies the result and
rotates through the injected controller when needed.

### Attach to an existing browser (CDP)

Instead of launching its own browser, the web driver can attach to one that's
already running and exposes CDP over a remote-debugging port — e.g. an Electron
app started with `--remote-debugging-port`, where each window / webview is a
separate page target you can drive independently.

| Command                                                                            | Purpose                                                                                                          |
| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- |
| `conductor web-targets --cdp-url <url>`                                            | List the controllable page targets the browser exposes (id, url, title) + a paste-ready bind command for each    |
| `conductor --device web:<browser>:<label> --cdp-url <url> --cdp-target <id> <cmd>` | Bind a session to one target; the attachment persists so later commands for that `--device` don't need the flags |

Use a distinct fully-qualified `--device web:chromium:<label>` per target (a bare
`web` gets an auto-generated sub-id instead). Each target is its own session, so
several webviews can be driven concurrently. Only `type=page` targets are
controllable. See [Web testing → Attaching to an existing browser](../../../docs/web.md).

`--cdp-url`/`--cdp-target` are rejected unless `--device` is a web device, and
flags glued into one argument (zsh doesn't word-split an unquoted `$FLAGS`) are an
error. Use a shell array (`"${FLAGS[@]}"`) or `${=FLAGS}` in zsh. Without
`--device`, several booted devices are an error in non-interactive shells; conductor
never falls back to the first one.

**Discovery:** endpoints on the conventional debugging ports (9222–9229 on
localhost) are found automatically — `list-devices` shows each webview as a
booted `web:cdp:<port>:<targetId>` device. That id is self-describing, so you can
drive it directly (`conductor --device web:cdp:9222:<targetId> <cmd>`) without
`--cdp-url`/`--cdp-target`. Use `web-targets --cdp-url <url>` for endpoints on a
non-default port, or to list targets before binding.

### Vega (Amazon Fire TV)

Vega is a React Native OS driven through Amazon's own `vega`/`kepler` CLI (not
adb/simctl) — install the Vega SDK and put the CLI on `PATH` (or set
`CONDUCTOR_VEGA_CLI`). `conductor start-device --platform vega` boots a Vega
Virtual Device (VVD) via `vega virtual-device start` (or attaches if one is
already running); pass `--name <vvd>` to pick a specific one. Devices show up in
`list-devices` as `vega:<serial>`. The VVD's
**developer mode** must be on for input, and the automation toolkit attaches at
app launch — so launch the app under test via conductor. Navigate with the D-pad
(`press-key "Remote Dpad …"` / `"Remote Dpad Center"`); coordinate `tap-on` also
works. Unsupported on Vega: deep links (`open-link`), `set-location`, gestures,
screen recording, clipboard, `clear-state`/`uninstall-app`.

### Roku

Roku is driven over the network with the **External Control Protocol** (ECP — an
HTTP REST API on device port 8060). There is no emulator and no driver process:
physical hardware only, and every command is a stateless ECP call.

Device setup, once per device:

1. Enable developer mode (Home ×3, Up ×2, Right, Left, Right, Left, Right) and
   set a dev password.
2. Set **Settings > System > Advanced system settings > Control by mobile apps >
   Network access** to **Permissive** — recent Roku OS versions answer `403` to
   every keypress otherwise, while still serving the view hierarchy.

Environment:

```bash
export CONDUCTOR_ROKU_HOST=192.168.1.100   # pin a device by IP (primary)
export CONDUCTOR_ROKU_PASSWORD=devpwd      # dev-mode password (screenshots only)
export CONDUCTOR_ROKU_DISCOVERY=true       # optional: SSDP LAN scan (~1s per listing)
```

Devices show up in `list-devices` as `roku:<host>`;
`conductor start-device --platform roku [--name <host>]` checks reachability
rather than booting anything. The view hierarchy comes from `/query/app-ui`,
which **only reports sideloaded dev-mode channels** — a store channel inspects as
empty. A sideloaded channel's app id is `dev`. Screenshots need
`CONDUCTOR_ROKU_PASSWORD`.

Unsupported on Roku: `install-app`/`uninstall-app` (sideload via the device's dev
web server at `http://<device-ip>`), `list-apps`, `clear-state`, gestures,
screen recording, clipboard, `set-location`, memory/CPU profiling, and device logs.

### macOS apps (this Mac)

The Mac itself is a device with the fixed id `macos`. There is nothing to boot:
`conductor start-device --platform macos` checks the automation setup and warms
up the driver, then target it with `--device macos`. It is listed as
`available` in `list-devices`, and as `running` while its daemon is up.

```bash
conductor start-device --platform macos
conductor --device macos launch-app com.example.MyMacApp
conductor --device macos capture-ui
```

By default it runs **in the background**: the ConductorAX helper works on the
app through Accessibility, so it doesn't move your pointer, type into other
apps, or need the app in front — its window can even be covered or on another
display. One-time setup: allow **ConductorAX** in System Settings ▸ Privacy &
Security ▸ **Accessibility** and ▸ **Screen & System Audio Recording**, then
restart the driver (`conductor --device macos daemon-stop`; the next command
starts it). Both grants carry over to later conductor versions.

The background driver clicks by pressing an element's accessibility action, so
custom-drawn views with no action, long press, modifier clicks, hover and drag
fail with a message. Hover (SwiftUI `.onHover`, tooltips) is impossible in the
background: tracking areas only follow the real pointer. Key presses go to the
app while it stays inactive, so none of its windows is key — they land on the
main window rather than an open panel, and handlers gated on `isKeyWindow`
ignore them. For those, `CONDUCTOR_MACOS_FOREGROUND=1` switches to the
XCUITest driver, which **drives your real mouse and keyboard** and needs
Automation Mode (`automationmodetool enable-automationmode-without-authentication`,
ask the user) plus Accessibility for `conductor-driver-macosUITests-Runner`.
Tell the user before using it.

The "screen" is the **target app's main window** (the app from `launch-app`, else the frontmost one): `take-screenshot`,
`inspect`/`capture-ui` frames, and `tap-on --at` coordinates are all relative to
its top-left corner. Child panels, popovers and hover cards over it are part of
the hierarchy and composited into screenshots (`window list` marks them
`(overlay)`); menus outside the window stay in the hierarchy.
For apps with several windows, `window list` shows them and `window focus
"<title>"` raises one and makes it the window conductor drives (title match is
case-insensitive, exact first, then substring); `window focus --clear` follows
the front window again. `set-viewport <w> <h>` resizes the driven window.
All three need the background driver.

App lifecycle: `launch-app <bundleId>` (launches or activates; `--argument`
relaunches with launch arguments), `stop-app`, `list-apps` (apps in the
Applications folders), `install-app <path.app>` (copies it into
`~/Applications`), `open-link <url>`, and `clipboard` (your real clipboard).
`logs` streams the app's unified log once an app id is known; `crashes` reads
`~/Library/Logs/DiagnosticReports`.

Unsupported on macOS (explicit error): `set-location`, `set-orientation`,
`set-permissions` (grant in System Settings instead), `add-media`,
`clear-state`, `uninstall-app`, `clear-keychain`, `download-app`, gestures,
and `launch-app --inject` / `native-*`. `record-video` and the live stream
(`stream-server`) capture the target app's window and need the background
driver.

### watchOS simulators

`start-device --platform watchos` boots an Apple Watch simulator (or creates one
with `--device-type "Apple Watch Series 10 (46mm)"`); watchOS needs its runtime
installed via Xcode → Settings → Components. The watch is driven standalone —
no paired iPhone simulator is needed. Physical Apple Watches are unsupported: a
watch reaches the Mac only through its paired iPhone. The first command takes a
while as the XCTest runner starts on the watch.

### Physical iOS / tvOS devices

Real iPhones, iPads, and Apple TVs work alongside simulators. They're discovered
through `devicectl`, show up in `list-devices` with status `connected`, and are
addressed by their CoreDevice identifier (`--device <uuid>`).

Requirements:

- The device is **paired** with this Mac and on the **same network** — conductor
  reaches the driver over the LAN, not the host's loopback.
- **Developer Mode** is enabled on the device.
- A signing team: conductor builds and signs the XCTest driver locally on first
  use (a few minutes; cached per team in `~/.conductor/<platform>-driver-device/`).
  Set `CONDUCTOR_TEAM_ID=<team>` when the Mac has more than one development team
  — conductor refuses to guess rather than sign with the wrong one.

Everything driven through the XCTest driver behaves the same as on a simulator:
`inspect`, `capture-ui`, `tap-on`, `press-key`, `swipe`, `launch-app`,
`terminate-app`, `install-app`, `uninstall-app`, flows.

Simulator-only — these fail with an explicit message on a physical device:
`set-location`, `open-link`, clipboard read/write, `clear-keychain`, `add-media`,
screen recording and the live video stream, and OS log collection (`conductor
logs` still gets **Metro** logs, which is the useful source for React Native).
`clear-state` uninstalls on device without reinstalling — reinstall with
`install-app` afterwards.

## App lifecycle

| Command                                               | Purpose                                                                |
| ----------------------------------------------------- | ---------------------------------------------------------------------- |
| `conductor install-app <path>`                        | Install .app / .ipa / .apk (macOS: copies the .app into ~/Applications) |
| `conductor launch-app <appId>`                        | Launch app (saved to session); `--no-stop-app`, `--argument key=value`, `--inject` (enables the `native-*` in-process instrument — see `conductor-native`) |
| `conductor stop-app [<appId>]`                        | Stop app                                                               |
| `conductor uninstall-app <appId>`                     | Uninstall app                                                          |
| `conductor copy-app <bundleId> --from <id> --to <id>` | Copy an installed app between iOS simulators                           |
| `conductor download-app <appId> --output <path>`      | Download installed app binary                                          |

### ⚠️ Destructive flags — ask the user first

`conductor clear-state [<appId>]`, `launch-app --clear-state`, and
`launch-app --clear-keychain` **wipe app data and sign the user out**, and can't
be undone without their credentials. Never use them to "reset focus" or clear
navigation — relaunch without the flag, or navigate out with `back` / Menu. If
you genuinely need one, ask the human first.

## Sessions, daemon & device pool

A **session** remembers the last device + app so you don't re-specify them.
Parallel agents each get their own `--session <name>` so they don't collide.

| Command                                | Purpose                                                                                              |
| -------------------------------------- | ---------------------------------------------------------------------------------------------------- |
| `conductor session [--clear] [--list]` | Show, clear, or list sessions                                                                        |
| `conductor daemon-start`               | Start the per-session background daemon (keeps the driver warm — do this for any multi-step session) |
| `conductor daemon-status`              | Show daemon status                                                                                   |
| `conductor daemon-stop [--all]`        | Stop this session's daemon (`--all` = every session)                                                 |
| `conductor device-pool --list`         | List devices + pool status                                                                           |
| `conductor device-pool --acquire`      | Claim a free device (prints id); `--device <id>` claims that one, `--owner <pid>` holds the claim     |
| `conductor device-pool --release <id>` | Release a device back to the pool                                                                    |

Don't leave a daemon running when you're done — `daemon-stop` it.

### Reserving a device

Claim a device before driving it when other agents share the machine, so nobody
taps through your test half-way. A claim belongs to a **process**: conductor
frees any claim whose owner has exited, and the CLI exits immediately, so
`--acquire` on its own reserves nothing. Pass the PID that should hold it:

```bash
conductor device-pool --acquire --device <id> --owner $$ --json   # claim it
conductor device-pool --list --json                               # who holds what
conductor device-pool --release <id>                              # give it back
```

Acquiring a device someone else holds fails rather than stealing it. Always
release when you're done — a crash releases it for you, an abandoned shell
doesn't.

## Tips

- `--device <id>` / `--device-name <name>` targets a device; `--platform` scopes by platform.
  On `start-device` the device isn't booted yet, so `--device-name` selects which one to boot.
- Add `--json` for machine-readable output.
- `conductor <command> --help` for exact flags.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.