Security
In short: remote control is off until you turn it on. Only devices you pair with a one-time QR code can reach your computer. Through the relay, every message is end-to-end encrypted, so neither the relay nor I can read or change it. Risky commands need an extra confirmation, a prompt that changed is never approved by an old tap, and every remote action is logged on your computer.
What can reach your computer
- Nothing, by default. Remote control and the local control API are both off until you switch them on in Settings.
- Through the relay (relay.usepilothouse.com, a Cloudflare Worker): your computer opens an outgoing connection. No port is opened on your network.
- Over Tailscale: the computer listens only on its Tailscale address, never on your Wi-Fi or LAN, and checks the
Hostheader against DNS rebinding.
Pairing
- Each QR code pairs exactly one device and expires after 10 minutes.
- You confirm every pairing. The phone shows a 6-digit security code; your computer shows the same code, the device’s name and its approximate location (city, from the relay) and asks Allow or Deny. Someone with a photo of your QR shows a different code, so you see it and deny.
- The computer stores only a hash of each device’s token. Remove a device any time in Settings → Remote control, and it is locked out at once.
- View-only links let someone watch; the computer refuses every action from them.
What the relay can and cannot see
| The relay cannot | The relay can |
|---|---|
| Read or change requests and replies: each is sealed with AES-256-GCM using a key only your computer and that device hold, bound to the device id, with a timestamp and a nonce against replays. | See IP addresses, and the size and timing of sealed messages (Cloudflare runs it). |
| Store anything: it passes sealed messages along and keeps no logs. | Pass two numbers to Apple for the iPhone Live Activity (agents needing you, agents working), because the system draws it unencrypted. |
How pairing hands over the keys
- There is no account and no key server. The QR code carries the computer’s room id and a one-time pairing code (24 random bytes). In the web link they sit after the
#, so the website never receives them. - The device seals its pairing request with AES-256-GCM under a key derived from that code (SHA-256 of the code). Only someone who saw the QR can produce it, and you still have to press Allow on the computer after comparing the 6-digit code.
- On Allow, the computer makes a fresh random 256-bit key and a random token for that device and sends both back inside the sealed reply. Every later message uses that per-device key.
- Keys are kept in
~/.pilothouse/remote.json(readable only by your user) on the computer, in the Keychain on the iPhone, and in the browser’s local storage for the web app. - Over Tailscale, traffic is carried inside your tailnet’s WireGuard tunnel and every request needs the device token.
Limits
Approving shell commands from a phone is something an attacker would want to abuse, so here is what this design does not protect against:
- A compromised computer can do anything: it holds the keys, and your agents run there anyway.
- A stolen, unlocked phone or browser that is paired can approve prompts. Risky commands still need Face ID on the iPhone, but the web app has no biometric step. Remove the device in Settings → Remote control and it is locked out at once.
- A compromised relay cannot read or forge messages, but it can drop or delay them and see IP addresses, sizes and timing.
- The web app is code served by usepilothouse.com. If that site were taken over, changed code could read the key stored in your browser. The iPhone app does not have this risk; the site is open source and served from GitHub Pages.
- No forward secrecy: each device keeps one key until you remove it. If a key leaked, recorded traffic for that device could be decrypted. Removing and re-pairing the device makes a new key.
- Tailscale trusts your tailnet: anyone you add to it can reach the port, though they still need a paired device’s token.
- Someone who sees your QR within its 10 minutes can request pairing; the Allow dialog with the matching code and the device name is the check, so read it before allowing.
Approving from a phone, safely
- Risky commands (
rm -rf, force-push,git reset --hard, deploys,sudo,curl | sh, secrets such as.env) take two taps, and Face ID on the iPhone. - No stale taps. Each prompt carries a signature. If the agent’s question changed since you looked, your tap is refused instead of approving something else.
- Auto-approve rules never cover risky commands, whatever the rules say.
- Audit log. Every remote action is written to
~/.pilothouse/remote-audit.jsonlon your computer.
What Pilothouse never touches
Your agents keep their own logins and talk to their own providers; Pilothouse doesn’t sit in between and never reads their credentials. Every flag that lets an agent act without asking (such as --dangerously-skip-permissions) starts off and is shown in red when on.
Open source
All of this is in the code: the desktop app, the relay and the iPhone app are MIT licensed on GitHub. Found a problem? Please email aemresrbyk@gmail.com before opening a public issue.