What Clusty protects
- Your terminal content from the relay, the network and anyone between your phone and your computer.
- Control of your terminals. Only phones you paired can see or type into them.
- Risky actions. They need a fresh Face ID check on your iPhone, or your fingerprint or face unlock on Android, signed by a key that never leaves the phone.
Pairing and keys
When you pair, the iPhone creates three separate keys in its Secure Enclave: one to sign in, one for approvals that need Face ID, and one for answers that come from your watch. The private halves cannot be copied off the phone.
On Android the keys live in the Android Keystore, in StrongBox when the phone has it, and approvals go through the system fingerprint or face prompt. Android has no watch app, so its third key never signs anything.
The QR code from clusty pair holds a one-time secret and the bridge's public key, or in Tailscale direct mode the fingerprint of the bridge's certificate. The phone then shows a 6-digit code that you type on the computer. Both sides derive that code from the keys and the secret, so if anyone changed a key on the way, the codes would not match and pairing stops.
Every later connection proves itself with a fresh signature. The bridge refuses anything that is not signed by a paired device, and devices that stay away for 30 days expire.
What the relay sees
| The relay can see | The relay cannot see or do |
|---|---|
| That your phone and your computer are connected, and when | What is on your screen or in your scrollback |
| The IP addresses they connect from | What you type, say or approve |
| How many messages pass and how big they are | Type into your terminals or forge an approval |
This holds for the hosted relay and for a relay you run yourself. The hosted relay runs on Cloudflare Workers with Workers logs and log exports turned off. For each pairing it stores only what routing needs: key verifiers, push tokens and counters. A pairing that sits idle for 30 days expires there. In Tailscale direct mode there is no relay, and the bridge also checks that the phone belongs to your own Tailscale account.
Approvals
- Each approval is signed on the phone over the exact action. The bridge checks the signature, that it was used once, and that it has not expired.
- Risky actions need the Face ID key. The watch key can approve only lower-risk actions, and the plain sign-in key can approve nothing.
- Before a quick answer is typed, the bridge rereads the screen and checks that the same prompt is still there. If anything changed, nothing is typed.
- From the watch only Yes and No are allowed. Options that widen permissions, such as "always allow", are never sent from there.
- Reading your clipboard or screen from the phone needs Face ID every time.
Notifications
Push messages use fixed words and a tab number only, such as "A terminal needs you, Tab 2". Tab titles can be set by any program running in the tab, and screen text can contain secrets, so neither is ever put into a notification.
Localhost preview
Localhost preview works in Tailscale direct mode only for now. Opening a dev server on your phone uses a link that works once, within 60 seconds, for the device that asked for it. Ports that do not belong to a terminal tab, such as a database or a browser's debug port, need an extra confirmation. If a different program starts listening on the same port, the preview is cut.
What Clusty cannot stop
- Malware on your computer. A program that already runs as your user can do anything you can, with or without Clusty.
- What you approve. Clusty shows you the action and asks for Face ID. It cannot tell whether an agent's plan is a good idea.
- Programs inside tmux. On Linux, any program in a tmux pane can control the whole tmux server. That is how tmux works, so treat every pane as trusted as your own shell.
- Lying tab titles. Programs can rename their tab. The app shows titles but never makes a security decision from them.
- A phone that is unlocked in someone else's hands. Anything that does not need Face ID can be done from it until you remove it.
A lost phone
Remove it from your computer:
$ clusty devices rm <id>Or cut every device and stop the bridge:
$ clusty killThe bridge keeps an audit log of pairings, sign-ins, approvals, uploads and previews, with ids and reasons only, never tokens, secrets or screen content.
Reporting a problem
Found a security issue? Please email the security inbox with the steps to reproduce it, and give us a chance to fix it before you publish. Clusty is open source, so you can read the code that does everything described on this page.