Remote access (preview)
Watch and drive your agents from your phone, while they keep running on your PC with your own setup. The phone talks to Deffier's engine over Tailscale, a private network between your own devices. Nothing is opened to the internet and no Deffier server is involved.
Status: preview. The PC side and the Android app are built. There is no iPhone build yet.
What you need
- Tailscale on the PC and on the phone, signed in to the same account (free for personal use).
Get the app
Android 7 or later, 64-bit (every phone from the last several years): download deffier-android.apk from the
latest mobile-v* release on GitHub (Releases), open it on the phone and allow installs from that source.
Updates install over the old version. The app is signed with the Deffier release key, SHA-256
F8:6F:13:E4:3F:C3:D8:82:D8:20:D1:92:EF:0A:08:8B:B9:25:F9:75:BF:7A:FD:AB:54:10:2C:50:81:E8:0B:9A: Android refuses
an update signed with any other key.
Turn it on
Settings > Remote access, switch on. Or in a terminal: deffier remote on (off, status).
With remote access on, Deffier's engine runs in the background (deffierd, see Engine), and the
window attaches to it. Closing the window does not stop your agents or the phone's access; they keep running until
the PC restarts or you switch remote access off and quit. The first time you switch it on, Deffier restarts once
into the background engine (open terminals start fresh).
Switched off, the phone gateway stops within 2 seconds. Turned on but not running (no Tailscale yet, say), Settings says why, and Deffier tries again every 15 seconds.
Pair a phone
- In Settings > Remote access, choose New code. Deffier shows a QR code, plus the code (like
PQG3-C7WS) and the PC's address (like100.101.102.103:7581). The code works once, for 5 minutes. - On the phone, scan the QR code: in the Deffier app (Scan QR code), or with the phone's own camera app, which opens Deffier. Or choose Type the code instead and enter the address and code.
The phone gets its own key, kept in the phone's secure storage. The PC stores only a fingerprint of it.
For a phone that should only watch, tick Watch only before New code (or deffier devices pair --viewer).
More than one PC: in the app, Settings > + Add a PC and pair the other PC the same way. The app remembers each PC; Open switches between them. Pairing a PC again replaces its old key.
Using the app
| Tab | What's there |
|---|---|
| Agents | Every tab on the PC with its live state, the ones that need you first. A banner says when anything needs you. + New agent (owner phones) opens a tab running Claude Code, Codex, Gemini, Antigravity or a plain terminal, on any of your account profiles (claude2, agy1…). |
| Swarms | Swarms from the last 3 days. Open one to see its tasks as a small canvas (columns follow the order tasks must run in), its cost against its cap, and why it is waiting. |
| Inbox | Everything waiting on you: agents waiting for an answer, runs asking permission, swarm plans to review, and finished work to merge. |
| Settings | Notifications, your PCs, tips. |
In an agent's tab: live output, one-tap answers (1 · Yes, 2, 3 · No, y, n, /compact, /clear,
/status), keys (Esc, Tab, arrows, Ctrl-C, Enter) and a message box (your keyboard's microphone dictates into it).
Offline, the app says why: Tailscale off or the PC asleep, or Deffier not running on the PC. It reconnects by itself; tap the message to retry now.
What a phone can do
| Owner | Viewer | |
|---|---|---|
| See agents, terminals, room messages, Autopilot runs, swarms, diffs, project files | Yes | Yes |
| Type in a terminal, take control of it | Yes | No |
| Post in the room, approve or cancel a parked run (with its approval code) | Yes | No |
| Open a new agent tab (one of the fixed agents or your account profiles, in a project's folder) | Yes | No |
| Review a swarm's plan (approve, or redo it once with a note), continue a waiting swarm, cancel one | Yes | No |
| Merge a finished run or swarm task into your checkout, or discard it | Yes | No |
| Add or remove projects, create branches or worktrees, start Autopilot jobs or swarms | No | No |
Raise a swarm's spending caps, change its workers, trust a swarm.json |
No | No |
The PC checks what each request may contain: a phone can't type a command line for a new tab, pick a folder or branch, or pass a higher cap when continuing a swarm. Merging needs a second tap. It is the same merge as on the PC: it refuses when your checkout has uncommitted changes, and backs out on a conflict, so nothing is left half-merged.
Typing on the phone takes control of that terminal; typing on the desktop takes it back. Other viewers see the phone's paired name as the one in control.
Notifications
Settings > Notifications > Turn on, for each PC. You then get a notification when an agent is waiting for you, a run asks permission, a swarm plan is ready or a swarm is waiting, or work finishes. Tapping it opens the Inbox.
The notification says only that ("An agent is waiting for you"): no tab names, branches, goals or output. It goes from your PC through Expo's push service to Google's (Android's notification service), the only time anything leaves your own devices. The details load in the app over Tailscale. The same thing notifies at most once in 5 minutes.
For maintainers: push needs the app built with an Expo project id and Firebase credentials. Once: create an
Expo project (npx eas init in mobile/, which adds extra.eas.projectId to app.json), create a Firebase
project with an Android app app.deffier.mobile, put its google-services.json in mobile/ with
"android": { "googleServicesFile": "./google-services.json" } in app.json, and upload its FCM v1 service account
key to the Expo project (npx eas credentials). Without them, Turn on says the build has no push set up; the
rest of the app works.
Devices
Settings > Remote access lists paired phones, each with Revoke. In a terminal:
deffier devices list # paired phones
deffier devices revoke 0e4cbf87 # cut it off now (within 2 seconds) and forget it
Every remote action is logged in ~/.swarmherd/remote-audit.log: connect, attach, typing (once a minute per
terminal), approvals, disconnect.
Good to know
- Your PC must be awake. A sleeping laptop drops the phone. Set Windows to not sleep while plugged in.
- Remote access listens only on the Tailscale address. Without Tailscale it doesn't start, and says why.
For a test on your own Wi-Fi, start the engine with
deffierd --gateway --gateway-host <your PC's LAN address>. That traffic is not encrypted: use it for testing only. - Browsers are refused: only the Deffier app can connect.
- Port: 7581 (
--gateway-portto change it).
Releasing a new app version (maintainers)
- Raise
versioninmobile/app.json, merge to main. - Publish a GitHub Release with a tag starting
mobile-v(for examplemobile-v0.2.0). - The
mobileworkflow builds the APK, signs it with the release key (repo secretsANDROID_KEYSTORE_B64andANDROID_KEYSTORE_PASSWORD) and attachesdeffier-android.apkto that release, in about 15 minutes.
Keep a backup of the release key outside the repo. Without it, phones can't update the app without uninstalling it.