Several computers
If you have a laptop and a desktop, or a build server under the desk, each can run its own endurable. Grouped together, they show as one app: one list with every machine’s threads, and you can start a thread on any of them or move one between them.
Each machine keeps its own data, accounts, secrets and extensions. A thread lives on exactly one machine at a time.
There are two ways to group machines. Adding a machine over SSH is simple and needs nothing else. A hub takes more setup and works when the machines can’t reach each other directly.
flowchart LR
subgraph ssh [Over SSH]
direction LR
b1[Your browser] <--> c[Laptop<br/>the center]
c <-- SSH --> d1[Desktop]
c <-- SSH --> d2[Build server]
end
subgraph hub [With a hub]
direction LR
b2[Any browser] <--> h{{Your hub<br/>on Cloudflare}}
l2[Laptop] --> h
d3[Desktop] --> h
s3[Build server] --> h
end
Add a machine over SSH
Section titled “Add a machine over SSH”On the computer you’re sitting at, open Settings → Machines. Under Add a machine, enter what you’d type after ssh: user@host, or a Host from your ~/.ssh/config. Press Install and connect.
endurable installs itself on the other machine, starts it, and links the two. The first time takes a few minutes. There’s nothing to do on the other computer.
What the other machine needs:
- to be reachable with
sshusing your keys, without a password prompt, - git,
- tmux (or a compiler, so a terminal module can be built),
- network access.
It doesn’t need Node. If the machine has none recent enough, endurable downloads one for its own use.
A machine running Windows can’t be added. If an endurable is already running there that this computer didn’t start, the add is refused and that one is left alone.
The machine then appears in the list’s filter, in New thread, and at the top of Settings. Its row in Settings → Machines shows whether it’s connected and, if not, why, with Try again. Rename changes the name you see, for this computer or any added one. Remove takes a machine out of the group: its threads stop showing here, and endurable keeps running there with its threads and data.
endurable keeps the host keys of added machines in a file of its own, not in your ~/.ssh/known_hosts. If a machine’s key changes, endurable won’t connect, and the row says so. After a reinstall that’s expected: remove the machine and add it again.
Things to know about SSH groups. The computer that added the others is the center: everything goes through its SSH connections, so the other machines show up only while it’s running. When an added machine reboots, its endurable starts again the next time the center connects. When you update endurable on the center, the others are updated to match once none of their threads are working, or right away if you press Update.
Working across machines
Section titled “Working across machines”- The list shows every machine’s threads together. Each row says which machine it’s on. The filter can narrow to one.
- New thread has an “On Mac mini” menu to choose where the thread runs. It offers the machines that have a checkout of the project.
- A repository is one project, however many machines have it checked out. endurable matches them by git remote.
- Settings has a menu at the top: one machine’s settings, or All machines for the things that are yours and not a machine’s: appearance, keyboard shortcuts, profiles and the hub.
- Search, usage and the archive cover every connected machine.
- Preview shows another machine’s web app as it shows this computer’s. For a database or any other server you want to reach from your own tools, forward its port to this computer.
A machine that’s offline keeps its threads in the list as your device last saw them, marked offline and read-only. They come back to life by themselves when the machine does.
Moving a thread
Section titled “Moving a thread”Move to a machine in a thread’s ⋯ menu sends the thread to another connected machine that has the same repository. A thread without a project can go to any of them. Its children and side chats go with it, which is why the menu isn’t on a child or a side chat: move the thread they belong to.
What moves: the conversation, its artifacts and attachments, its schedule and waits, secrets kept for that thread alone, and its code, including uncommitted and untracked files.
What doesn’t: ignored files (the worktree is set up fresh, with the setup script), and anything that belongs to a machine rather than a thread, such as accounts, extensions, MCP servers, and project-wide secrets.
If the thread is in the middle of a command, the move waits for that step to finish. A strip on the thread says so, with Move now, which cuts the command off, and Cancel. Anything the thread had left running, a dev server say, can’t be carried across. The agent is told what was running and starts it again on the new machine.
A Local thread arrives in a worktree of its own, since the checkout on the other machine isn’t the one it was working in.
If the destination doesn’t have the model account the thread was using, the thread arrives anyway and tells you, so you can add the account there or pick another model.
A move is refused, with the reason, when:
- the thread runs in a sandbox,
- the two machines run different versions of endurable,
- the destination has a branch of the same name with other commits on it, or has that branch checked out.
A move that fails partway leaves the thread running where it was.
A hub is a small service you deploy to your own Cloudflare account. Each machine connects out to it, so none of them needs an address the others can reach, and you open the app at the hub’s address from any browser. You sign in there through Cloudflare Access, with an emailed code by default.
The hub passes traffic between your browsers and your machines. It stores who’s allowed in and nothing of your threads.
Whoever controls a hub can run commands on every machine in it. Run your own. Don’t join someone else’s.
Deploying one
Section titled “Deploying one”The hub is in endurable’s repository, under apps/hub. You need a domain on Cloudflare.
- Clone the repository and open
apps/hub/cloudflare.config.ts. Set the four values at the top: your zone, the hub’s hostname, the email addresses allowed to sign in, and your Cloudflare Access team and application audience. - In Cloudflare Zero Trust, create an Access application in front of
https://<your hub>/hub/enter, with a policy allowing your email. - Add a proxied wildcard DNS record for the zone. Each machine gets hostnames of its own beside the hub’s.
- Run
pnpm install, thenpnpm run deployinapps/hub.
You don’t redeploy the hub when endurable updates. It serves the app from whichever of your machines has the newest version.
Joining a machine
Section titled “Joining a machine”On each machine, open Settings → Machines → Hub. Enter the hub’s address and a name for this computer, and press Join. The page shows a code.
Then open the hub’s address in a browser and Approve the machine. Check that the code matches first. Until a machine has joined, the hub has no app to show, so its address is a plain page listing the machines that are asking. Once one is connected, the same list is in Settings → Hub.
You can also name the hub when starting endurable:
endurable --hub https://hub.example.com --hub-name "Mac mini"A hub named with --hub can’t be left or changed from Settings. Start endurable without the flag to do that.
Machines you added over SSH follow the machine that added them into the hub, and out of it. Each restarts to do so once none of its threads is working, and its row offers a restart now if you’d rather not wait.
Managing the group
Section titled “Managing the group”Settings → Hub, at the hub’s address, lists:
- Machines asking to join, with Approve and Refuse.
- Machines that joined, each with whether it’s connected and how many of its threads need you. Remove takes one out.
- Signed-in browsers, each with Sign out. A sign-in lasts a month from its last use.
- Version: the endurable release every machine runs. Enter one, press Update every machine, and each machine installs it and restarts once none of its threads is working. A machine running from a git checkout is left as it is.
Leave, on a machine’s own Settings → Machines page, takes it out of the hub. Nothing on any machine is deleted. While a machine is still waiting for approval, the same button reads Cancel.
The machines in a group trust each other completely. Any of them can do on another whatever you could do there. Group only your own machines.