Security

Built so we can't read your work.

Pocket CLI connects your iPhone to CLIs running on your own Mac. Here is what moves over the network and who can see it.

Where things live

WhatWhereNotes
Code, files and conversationsYour MacRead by the CLI you chose, which talks to its provider under that provider's terms.
CLI sign-ins and tokensYour MacEach account in its own directory. Never sent to your iPhone or to us.
Pairing keysMac and iPhone KeychainRemove a device on the Mac to revoke it.
Handoff briefsYour MacBuilt locally. They exclude tokens, API keys, Keychain secrets and cookies.
SubscriptionAppleWe never see your payment details.

Encryption

  • Pairing. The Mac shows a QR code with its public key and a one-time invite secret that expires in five minutes. Both devices derive separate keys for each direction with X25519 and HKDF-SHA256. A relay that swapped keys would make the handshake fail.
  • Messages. Each request's method, path, headers and body are sealed with ChaCha20-Poly1305 and bound to the host, the direction and the device. A timestamp window and one-time request IDs stop replays.
  • Admin stays local. CLI sign-in and pairing management only accept requests from the Mac itself (127.0.0.1). Phones use device tokens you can revoke.

What the relay sees

One relay runs on Cloudflare Workers and Durable Objects; the other runs on Tencent Cloud in Hong Kong. To route traffic, enforce the monthly allowance and prevent abuse, a relay processes host and device IDs, IP addresses, times and the size of encrypted messages. It stores each host's random ID, a hash of the key that claims it and a monthly byte count. Neither relay keeps request logs.

It never receives keys that could open your messages, and never stores request or reply contents.

Two relays

Your Mac stays connected to both relays. Your iPhone uses whichever has been faster lately, checks the other when the network changes, and retries on the other at once if a request fails. A retried request carries the same one-time ID, so the Mac never runs it twice. There is nothing to choose or set up.

Device control

  • Pairing codes expire after five minutes and work once.
  • Removing a device on the Mac deletes its key, so it loses access without relying on the relay.
  • Every message carries a receipt, so a dropped connection doesn't run the same task twice.

Report a security issue

Email support@pocketcli.dev with the subject “Security”. Please don't include real credentials.

For what we collect and why, read the privacy policy.