Connect a spare Android phone to Allternit Desktop, with no cable, and your bot can look at its screen, tap, type, swipe, open apps and do plain-English tasks on it. With your approval each time, it can also send a text or place a call from the phone’s own SIM. Other sensitive actions, such as paying or deleting, wait for you too: see Approvals for sensitive phone actions. Connecting a phone is Desktop only: adb runs in the Desktop app. On ai.allternit.com and the m.allternit.com phone app, Settings → Computers → Phones says to connect a phone from Allternit Desktop, and the paired phone is usable from every device. For an iPhone, see An iPhone for your bot (Allternit USB Agent). For a bot’s own number and live AI calls, see Messaging channels and Calls and texts in threads.

What you need

  • A spare Android phone on Android 11 or newer, on the same Wi-Fi network as your computer.
  • Allternit Desktop (macOS, Windows or Linux).
  • Optional: scrcpy if you also want the phone in a separate window on your computer. The in-app live view does not need it — Desktop runs its own pinned copy of the scrcpy server.
  • Optional, only as a fallback for plain-English tasks: Python 3.12+ tooling (git and uv) and a model key for Google ARTEMIS, which Allternit installs on request. Plain-English tasks normally run on the bot’s own brain and need neither; see Phone runs and phone skills.

Watch and control the phone in the app

Settings → Computers → Phones shows the phone’s screen live, inside Desktop: video streams from a pinned scrcpy-server that Desktop pushes and starts on the phone over the existing wireless-debugging connection — no cable, no separate app, and nothing to install. Tap, type and swipe go straight to the phone; rotating it just works. Press Stop any time: the server is torn down on the phone and everything (display timeout, wake state) is restored. A live view starts only when you ask for it, never on its own. While a bot is mid-action on the phone — running tools or an ARTEMIS task — the phone card shows a takeover banner, so you can see the bot is driving before you touch the screen. If the phone drops off Wi-Fi, the live view ends by itself; reconnect the phone and start it again. Away from home. A phone linked with the Allternit Phone Link app (Android 13 or newer) that has joined your Allternit mesh keeps its live view without Wireless debugging: when the wireless-debugging connection is gone, Allternit opens the screen through Phone Link instead, at home or away, with the same touch, keys and sound. Allternit Desktop starts that screen service over its own USB or home Wireless debugging connection, and it keeps running until the phone restarts; after a restart, bring the phone home on Wi-Fi once (or plug it in) with Allternit open. If the screen service isn’t running, the live view says why (for example, that it is waiting for Wi-Fi or for your computer). Sound. When something on the phone plays sound, you hear it in Allternit, in step with the video. This needs Android 11 or newer; on older phones the live view has video only. While the live view is open, the phone’s sound plays on your computer instead of the phone. The phone plays it again when the live view stops. The speaker button turns the sound on or off. It’s in the live view’s top row, or under ⋯ in the phone frame. Allternit remembers your choice for each phone. On ai.allternit.com and the m.allternit.com app, the browser may block sound until you tap. If so, the button says Tap for sound. The separate scrcpy window (if you installed scrcpy) still works as an alternative.

Connect a phone

Open Settings → Computers → Phones → Connect an Android phone. The phone appears in the Phones list as one row, and reads Screen: Connected once it’s online. If the same phone is also linked through Phone Link, the same row shows Apps: … too: one phone, one row, both statuses. Each row has one button, Open: the Allternit phone (the floating phone from the rail) opens on its Linked phone lane, and the phone’s live screen fills it. The ⋯ menu has the rest:
  • Open in separate window: the scrcpy window, if you installed scrcpy.
  • Connect screen: for a phone that only has Phone Link so far.
  • Use on Sessions computer: hands a linked phone to your Sessions computer.
  • Set up again: when Phone Link needs you.
  • Forget: removes the phone’s screen pairing.
The rail’s Phones button lists connected phones under Connected phones. Choosing one opens it the same way.

The Allternit phone: two lanes

The phone frame’s title bar has a toggle: Allternit shows your bot’s phone (its messages, channels and apps), and Linked phone shows a real phone’s live screen. On the Allternit lane, a drop-down under it picks the bot. On the Linked phone lane the phone’s screen fills the whole frame, and the frame takes the phone’s shape; with more than one phone online, the picker sits in the title bar. Tap, type and swipe go to the phone. Use the phone’s own navigation bar (back, home, recents) on its screen; Esc is back on your keyboard. Expand makes the frame large and centered. The screen has no toolbar of its own: the ⋯ button in the title bar has Apps on this phone (each app by name, from Phone Link), Screenshot and Screen off on phone. ⋯ → Open in separate window in Settings opens the phone in scrcpy’s own window instead. On ai.allternit.com’s phone layout and the m.allternit.com app, the frame fills the screen with the same toggle.
  1. On the phone, open Settings → About phone and tap Build number seven times to turn on Developer options. Then open Settings → System → Developer options and turn on Wireless debugging.
  2. In Wireless debugging, tap Pair device with QR code, then scan the code Desktop shows. No QR scanner? Tap Pair device with pairing code instead, and type the address and six-digit code into Desktop.
  3. Desktop pairs, connects, and shows the phone with its model, Android version, battery and SIMs. Allow the “Allow USB debugging?” prompt on the phone and tick Always allow from this computer.
  4. Try it: choose Open the Settings app. The phone’s Settings app opens.
Paired phones are remembered and reconnect on their own when they come back on the network. Wireless debugging picks a new port whenever it is switched on; Desktop finds it again by itself.

Ways to act on an iPhone

Your bot can act on your own iPhone through Shortcuts and Home, iPhone Mirroring on your Mac, a Bluetooth keyboard and mouse (your Mac, an Android phone, or a second iPhone or iPad), or the USB Agent. Settings → Computers → Phones shows which of these is ready for each iPhone, which one is in use, and what to do next. You need only one. Every send is approved by you on your computer first. See How your assistant uses your iPhone. The old Allternit helper app on your iPhone is being retired. Your phone keeps working through the new routes.

What your bot can do

Bots reach these tools through the allternit-phone MCP server that Desktop runs while a phone is paired. The same tools drive iPhones on an Allternit USB Agent; phone.devices lists both. A phone linked with the Phone Link app gets the same tools without Wireless debugging, texts, calls, keys and phone.sms.read included; only phone.task is adb-only for now.

Texts and calls always ask you first

Every phone.sms.send and phone.call.dial, over adb or Phone Link, becomes an approval request with the exact recipient and message. It shows in Needs you and in the Desktop dialog, which are views of the same request. The default button is Deny, an unanswered request expires, and approval applies to that one action only. See Approvals for sensitive phone actions for how long a request waits and what Deny does. Texts and calls are person-to-person. Limits: a text at most every 15 seconds, 10 an hour and 30 a day; a call at most every 10 seconds, 10 an hour and 30 a day. There is no bulk sending, and emergency numbers are blocked. A text is reported as submitted to the phone’s messaging service, not delivered. Without extra hardware a call is dialled only: Android does not let apps capture carrier call audio, so the bot can’t speak or listen on it. With a call cable from the phone to the Mac running Allternit Desktop, the bot can answer calls on the phone after one ring and talk on calls it places, on the same call screen as an Allternit number. See Let your bot talk on its own phone. Without the cable, live AI voice calls use your Allternit number.

From Live voice

When Live voice is on, your bot reads out where a phone task stands. It never reads the phone screen aloud.
  • On hold: “I need your OK on your phone screen in Allternit.” Approve or Deny on the card.
  • After you approve and the task ends: “Done on your phone:” and the task’s own result sentence (up to about 200 characters). If the run left no result, it says the goal instead.
  • On deny or timeout: “You said no, so I stopped on your phone.” or “Nobody approved in time, so I stopped on your phone.”
  • A phone locked or unreachable gets one short line too.
A task your bot starts with its own phone tool during a Live turn is recorded as a voice task, the same as one you start from the composer.

Limits

  • Over Wireless debugging, same network only. Away from home, the live view goes through Phone Link and the Allternit mesh (see Away from home above); the bot’s other phone tools still use Wireless debugging.
  • Wireless debugging turns off when the phone reboots or leaves Wi-Fi; turn it back on and the phone reconnects.
  • Messaging works on the phone’s own SIM; carriers may restrict automated texting, so keep it to real conversations.
  • Android’s default messaging layout varies by maker; if a text is refused, the bot is told so rather than guessing.

For developers

  • Code: surfaces/allternit-desktop/src/main/phone-*.ts (phone-device-manager.ts, phone-tools.ts, phone-artemis.ts, phone-adb.ts, phone-gateway.ts, phone-scrcpy.ts — the pinned scrcpy v5.0.1 wire protocol — and phone-stream.ts — one shared session per phone).
  • adb is not bundled (Google’s platform-tools licence does not permit redistribution). Desktop uses an adb you already have, or downloads the pinned official platform-tools r37.0.1 from dl.google.com the first time you connect an Android phone (not when you only open Settings), and verifies its SHA-256 before unpacking.
  • The in-app live view uses the official scrcpy-server binary, pinned to v5.0.1 with a recorded SHA-256 (phone-scrcpy.ts), downloaded on first use from the Genymobile GitHub release. The server speaks the v5.0.1 protocol: a dummy byte, a 64-byte device name, a codec id, then 12-byte session packets (rotation/size) and 12-byte frame headers around the Annex-B stream — main strips the headers and forwards raw H.264 to the renderer over IPC, where a WebCodecs client decodes it and sends PhoneInputEvents back. Audio is on (audio=true, Opus): the server opens the video, audio and control sockets in that order. The audio socket’s config packet (the OpusHead) becomes audioMeta, and each later packet becomes an audioChunk (phone:stream-audio-meta / phone:stream-audio-chunk). The renderer decodes them with WebCodecs AudioDecoder and plays them through Web Audio with a short jitter buffer. If the phone can’t capture audio (codec id 0), the stream carries on as video only. The web relay sends audio only after a viewer asks for it with {type:'audio', on:true}: one JSON audioMeta, then binary frames that start with the byte 0xA0. No H.264 access unit starts with that byte, so video frames are unchanged.
  • Live view through Phone Link (phone-link-stream.ts, helper mode in phone-scrcpy.ts): for a linked Android phone the stream serial is link:<deviceId> and ScrcpySession gets its sockets from the phone’s Phone Link app instead of adb. Each socket is one POST /stream to the app, sealed like /rpc with the phone’s Phone Link key; the plaintext is {"kind":"video","scid","args"} for the first socket (the app’s shell server starts scrcpy-server with those options; it sets scid, tunnel_forward and log_level itself) and {"kind":"control","scid"} for each later one. A 101 answer turns the connection into raw scrcpy bytes, so the v5.0.1 parsing above is unchanged; audio works too, because each control request is simply scrcpy’s next socket (video, audio, control). The app serves /stream over the mesh or loopback only, so Desktop always dials the mesh proxy (MeshManager.proxyFor → 127.0.0.1:<port>, checked with /whoami), at home too; a phone without a mesh address gets a clear error. Cable setup grants the app WRITE_SECURE_SETTINGS and pushes the pinned jar to /data/local/tmp/allternit-scrcpy-server.jar. The shell server itself (ShellServerMain, shell uid, loopback port 18210) is started by Desktop, because setup never gives the app its own trusted adb key: phone-screen-service.ts (ScreenServiceKeeper) watches adb devices and, for each online adb phone that matches a phone-link-android.json record (the record’s USB serial against the adb serial, the phone’s ro.serialno or the serial inside an adb-<serialno>-…._adb-tls-connect._tcp name; otherwise the name/model, only when exactly one record matches), calls the app’s sealed screen_service RPC. It answers {running, state, lastError, launch: {kill, start} | null} after a fresh local ping; when running is false Desktop runs launch.kill then launch.start, each as its own short adb -s <serial> shell call, and calls screen_service again to confirm. Both lines are checked against their one exact shape first (pkill -f 'phonelink[.]shell[.][S]hellServerMain' and setsid app_process -Djava.class.path=/data/app/…/base.apk / com.allternit.phonelink.shell.ShellServerMain <64 hex> <port> </dev/null >/data/local/tmp/allternit-shell.log 2>&1 &); anything else is never run. Checks happen on adb connect and every 5 minutes while online, never more than once per 30 s per phone, one log line per outcome ([PhoneScreen]). The server lives until reboot, so the phone keeps streaming over the mesh away from home. While it is down, off the cable and on Wi-Fi, an app holding WRITE_SECURE_SETTINGS (Phone Link 0.3.2+) turns on Wireless debugging (adb_wifi_enabled=1, adb_allowed_connection_time=0) so Desktop’s adb lane can reconnect at home, and turns it back off once the server is running, only if it turned it on itself. An app that does hold its own adb key still starts the server itself over its own wireless debugging. The cloud relay keeps a link: socket for each reachable linked Android whose adb twin is offline (relaySerials), so ai.allternit.com and the m.allternit.com app can open it too.
  • Google ARTEMIS is pinned to one commit and installed on request into the Desktop data folder; its MCP server runs as a per-phone sidecar that stops when Desktop quits.
  • The tool gateway listens on 127.0.0.1 only and needs a per-launch token written to ~/.allternit/phone-gateway.json (mode 0600).