To run Claude Code on more than one machine, install a worker on each machine and point every worker at one control plane. In Sidefleet that is one sidefleet connect per machine. You type a task once, and the least busy machine that has the repo and the agent picks it up.
The same works for Codex and opencode. Each machine runs the agent CLIs it already has, under its own sign-in, so you copy no API keys around for Claude Code or Codex. The setup is three steps, and the interesting part is how Sidefleet decides where each task runs.
Why run coding agents on more than one machine?
One laptop fills up fast. Every agent session holds a checkout, a terminal and a share of the CPU while it builds and runs tests. A second or third machine gives you:
- More tasks at once. A Mac mini on the desk and a Linux VPS each take their share of the queue.
- A machine that stays on. Work carries on after you close the laptop lid. See keeping a task alive when your laptop sleeps.
- More than one account. Machines can be signed in to different accounts, so a usage limit on one of them doesn't stop the queue.
- The right hardware per job. The big Linux box takes the long test suite; the Mac takes the iOS build.
What does each machine need?
A worker machine needs git checkouts of the repos it should work on and at least one agent CLI set up. Sidefleet runs on macOS and Linux, on arm64 and x86_64. Windows isn't supported.
| Agent | Set it up once | Models |
|---|---|---|
| Claude Code | Run claude and sign in | Opus, Sonnet, Haiku |
| Codex | codex login, with a ChatGPT sign-in or an API key | What codex debug models lists for the account |
| opencode | opencode auth login, or OPENROUTER_API_KEY in ~/.sidefleet/worker.env | Any provider/model it lists, such as openrouter/moonshotai/kimi-k2 |
Step 1: start a control plane
The control plane is the web page, the API and the Postgres database that every worker reports to. Use the hosted one or run your own:
- Hosted. Sign in with GitHub at app.sidefleet.xyz. The free plan takes 2 machines and 2 tasks at once.
- Self-hosted. Run
sidefleet upon one machine. It starts its own Postgres in Docker, starts the control plane, connects that machine as the first worker if it has an agent, and opens the page signed in.
The trade-offs are in self-hosted or hosted.
Step 2: install and connect each machine
On every machine, install the binary. The script puts a prebuilt sidefleet in ~/.local/bin without sudo, or builds it from source when there's no release for the platform:
curl -fsSL https://raw.githubusercontent.com/foodaka/side-fleet/main/install.sh | sh
Then connect it. Against the hosted control plane:
sidefleet connect --control https://app.sidefleet.xyz
It prints a link and a short code. Open the link, check that the code matches the one under Pending machines on the Machines page, and press Approve. The request expires after ten minutes. On your own control plane, use the connect line the page shows, which carries a worker token:
sidefleet connect --control <url> --token <token>
connect checks which agents are installed and signed in, finds your git checkouts and installs a service so the worker comes back after a reboot. That is launchd on macOS and systemd on Linux. Name the machine and set how many tasks it runs at once:
sidefleet connect --control <url> --name "Mac mini" --parallel 3
The default is 3 at a time. sidefleet detect prints what the machine found as JSON, and sidefleet status shows the saved settings, the service and the log path.
Step 3: send a task and let the fleet place it
On the page, type the task, pick the agent, model and repo, and send it. Leave the machine on Any machine and Sidefleet places it, or pin the task to one machine.
Repos match by their git remote. github.com/acme/shop is the same repo whether its folder is shop on the Mac or acme-shop on the VPS. Each task runs in its own git worktree on a sidefleet/<id> branch, so three tasks on one repo can share a machine without touching each other or your checkout. How the worktrees work.
How does Sidefleet choose which machine runs a task?
Workers pull tasks from the control plane. A machine can take a task only when all of these hold:
- It is online, meaning it checked in within the last 45 seconds.
- It has a checkout of the repo.
- It has the chosen agent, and that agent is signed in there.
- That agent hasn't hit its usage limit on that machine.
- It has a free slot under its
--parallelsetting.
Among the machines that qualify, the one with the most free slots goes first. A new task waits up to 10 seconds for that machine before any other qualifying machine may claim it, in case the least busy one is slow to poll.
How many tasks can run at once?
| Control plane | Machines | Tasks queued or running at once |
|---|---|---|
| Hosted, free | 2 | 2 |
| Hosted, Pro | 10 | 10 |
| Self-hosted | No limit | No limit |
Questions
Do I need an API key for Claude Code or Codex?
No. The worker runs the CLI that is already signed in on that machine, so usage counts against that account's plan. Check your subscription's terms for automated or unattended use, and never share an account through it.
Does my code leave my machines?
The agents run in checkouts that are already there. The control plane receives the agent's narration, its tool calls and the diff of each turn's changes, with each tool result capped at 2 KB and anything that looks like a credential redacted on the worker and again on the server.
Can the machines be on different networks?
Yes. Workers only make outbound HTTP calls to the control plane, so they need no open ports. For a self-hosted control plane, put it on Tailscale and every machine can reach it without exposing it to the internet.
Can I watch the tasks from my phone?
Yes, the page works in any browser that reaches the control plane. To hear when a task needs you, see phone notifications for coding agents.