Getting started
Clusty has three parts. The bridge runs on your computer and talks to your terminals. The app runs on your iPhone, Apple Watch or Android phone. The relay passes encrypted messages between them, so they do not need to be on the same network.
- Install the bridge:
curl -fsSL https://clusty.lukashellesch.com/install.sh | sh - Install the app: the TestFlight beta on iPhone, which brings the watch app, or the beta APK on Android.
- Run
clusty serveand keep it running. In a second terminal runclusty pair, scan the QR code and type the 6-digit code.
The install page has the exact commands for each system. Clusty is in public beta and free, the hosted relay included.
| Part | Beta today | Coming later |
|---|---|---|
| Phone and watch | iPhone with iOS 26 and Apple Watch with watchOS 26 through TestFlight, Android 9 or later as an APK | App Store, Google Play |
| Computer | macOS with iTerm2, Linux with tmux, Windows through WSL2, any terminal through clusty run | Native Windows, the signed Clusty Mac app, Homebrew |
Pairing
Pairing links one phone to one computer. Run it on the computer:
$ clusty pairclusty serve has to be running. The bridge prints a QR code that carries the relay's address, the bridge's public key and a one-time secret that expires after 5 minutes. With clusty pair --direct it carries the computer's Tailscale address and the fingerprint of the bridge's certificate instead.
- Scan the QR code in the app. The phone creates its keys, inside the Secure Enclave on iPhone or the Android Keystore, and sends the public halves to the bridge.
- The phone shows a 6-digit code, for example 482 913.
- Type that code into the terminal where it asks for the 6-digit code shown on the phone, then tap I typed it on my computer in the app. Both sides compute the code from the same keys and secret, so a match proves nobody swapped a key in between.
A wrong code, or no code before the QR expires, cancels the pairing. Run clusty pair again to start over.
Removing a device
$ clusty devices rm <id>The device loses access with its next message. A device that has not connected for 30 days expires and has to pair again. To cut every device and stop the bridge at once:
$ clusty killNotifications
Clusty sends a push when an agent goes from working to waiting for you, and when a task finishes.
- A terminal needs you, with the tab number, when an agent asks a question or wants permission.
- A task finished, with the tab number, when an agent is done.
The wording is fixed on purpose. Tab titles can be set by any program, and screen text can hold secrets, so neither goes to your lock screen or through Apple's push service. Tap the notification and the app opens that tab, where you see the real title once your phone is unlocked.
Push notifications go through the hosted relay to iPhone and Apple Watch. The Android beta has no push notifications yet. To keep your lock screen quiet, Clusty sends at most a few alerts a minute and never the same alert for one tab twice within a minute.
Apple Watch
The watch app shows your tabs and their status and lets you answer a waiting agent with Yes or No. It talks to the bridge through your iPhone and has no keys of its own.
- Before your answer is typed, the bridge checks that the same prompt is still on screen. If it changed, nothing is typed and the watch tells you so.
- From the watch you can pick Yes or No only. Options such as "always allow" or "don't ask again" are never offered there.
- Approvals the bridge rates as risky are sent to the iPhone, where they need Face ID.
When you use more than one computer, choose which one the watch follows in the iPhone app.
Agents
Every program in a terminal tab shows up live, and you can type into it and send keys such as Esc, Tab and Ctrl-C. Agents that report their state also get a status chip (working, needs you, done or idle) and push notifications.
Claude Code
Install the status hooks once on each computer:
$ clusty hooks installThe hooks report each prompt, tool call and permission request to the bridge. They are added next to your own settings, with a backup first, and Claude Code picks them up in new sessions. Clusty also checks that the program in the tab is the real Claude Code binary, not a program that only names itself that way. The app can show Claude's last answers as text you can copy.
Codex and Gemini CLI
Both run in a terminal tab like any other program, so you can watch them, type and answer their prompts. For status chips and notifications, install their hooks:
$ clusty hooks install --provider codex$ clusty hooks install --provider geminiCodex skips new hooks until you trust them: start codex, run /hooks and trust the Clusty entries. clusty hooks status shows what is installed.
Any terminal app
Not on iTerm2 or Clusty's tmux? clusty run wraps one command so the phone sees it, in any terminal:
$ clusty run claudeclusty shims install does this for you. It adds small shell functions for claude, codex, gemini, agy, cursor-agent, aider, opencode and amp to your shell's rc file, with a backup first.
Starting an agent from your phone
The app can open a new tab and start Claude Code in a folder you pick. Clusty types the command into a fresh shell only, never into a program that is already running.
Server health checks
This part is optional. Clusty does not run checks on its own. A checker you control writes a status file, and the bridge reads it and shows the result in the app's Server tab, on a watch complication and as a push when something fails.
- The status file lists each check with its service, its name, whether it passes and a short detail.
- An event log next to it records when checks fail and recover.
- Pushes say only "<service> needs care" or "<service> is back", never log text.
The watch complication shows a green dot when everything passes, a red dot with the service name when something fails, and amber when the last check is older than 5 minutes.
Android beta
The Android app is a beta APK on our GitHub releases. It needs Android 9 or later. Google Play comes later.
- On your phone, download clusty-android.apk.
- Open the file. When Android asks, allow installs from your browser or file app, then tap Install.
- Pair as above:
clusty pair, scan, type the code.
Its keys live in the Android Keystore, in StrongBox when the phone has it, and approvals use your fingerprint or face unlock. Push notifications and a watch app are not in the Android beta yet. The app also has a demo mode that runs without a computer.
Tailscale direct mode
If you use Tailscale, your phone can reach the bridge straight over it, with no relay in between. It is optional, the hosted relay works without it.
- Install Tailscale on your computer and your phone and sign in to the same account.
- Run
clusty pair --direct. The QR code then carries the computer's Tailscale address.
When Tailscale is up, the bridge listens for direct connections only on the Tailscale address, next to the relay. On every connection it checks that the phone is a device of the same Tailscale user, that it is the device that paired, and that the phone signed in with its own key. Connections from anywhere else are refused before they reach Clusty.
Hosted relay
The hosted relay is how your phone reaches your computer by default. It is free during the beta and needs no setup, no account and no VPN.
- No Tailscale or VPN to set up.
- Encrypted push notifications to iPhone and Apple Watch.
- Works from any network your phone and your computer can reach the internet from.
The relay only forwards messages that your phone and your bridge sealed with keys it never sees. It cannot read your terminals and cannot type into them. What it does see is listed in the threat model.
Two features need Tailscale direct mode for now: localhost preview and the voice assistant. Typing, approvals, notifications and dictation work through the relay.
To turn the relay off and use Tailscale only, put "relay": {"enabled": false} in ~/.pajama/config.json.
Self-hosting the relay
The relay is open source under the AGPL, in the Clusty repository. It is a Cloudflare Worker with one Durable Object per pairing, so you can deploy your own copy to your Cloudflare account.
- A Cloudflare account to deploy the relay Worker to. The app connects over secure WebSockets, so the relay needs an https address.
- Your relay's address in
~/.pajama/config.jsonas"relay": {"url": "https://relay.example.com"}. - Then run
clusty pair. The QR code carries your relay's address to the app.
End to end encryption works the same with your own relay: it forwards sealed messages and holds no keys. Push notifications need the Clusty app's push credentials, which only the hosted relay has, so expect no pushes through your own relay.
Troubleshooting
Run clusty doctor first. It checks the bridge, hooks and network and prints a fix for each problem. Install and pairing problems, such as a missing QR code or a code that does not match, are on the install page.
The app shows my computer as offline
Check that the computer is awake and online and that clusty serve is running. On a Mac the bridge keeps the computer awake while your phone is connected, but it cannot wake a computer that is already asleep. In Tailscale direct mode, check that both devices show as connected in Tailscale.
"Device must be paired again"
The device expired after 30 days without a connection, or it was removed. Pair it again.
A tab has no status chip
Status needs the agent's hooks. For Claude Code run clusty hooks install and start a new Claude session in that tab. Plain shells never show a status.
My answer from the watch was not sent
The prompt changed or closed between the moment you saw it and the moment you tapped. Clusty refuses to type into a screen you did not see. Open the tab on your iPhone to check what it shows now.
No notifications
Check that notifications for Clusty are allowed in iOS Settings. Focus modes can hold them back too. The Android beta has no push notifications yet.
Something else
Write to clusty@lukashellesch.com or open an issue on GitHub.