How to run coding agents on your Mac and a Linux box without losing track
A practical setup guide: herdr, the Mac app's setup choices, the one-command server connector, pairing your iPhone, and the habits that keep several agents across machines answerable.
Running one coding agent is easy to keep in your head. Running three on your Mac and two on a Linux box is not, and the usual fix, a window per agent and a lot of alt-tabbing, falls apart the moment you step away from the desk.
This is the setup we use and recommend. Every step below is the product as it is today; where something has a caveat, we say so.
Before you start
You need:
- A Mac with Apple silicon on macOS 14 or later. This is where AgentOrbit starts, and it becomes the primary device that manages the others.
- Optionally, a Linux machine (x86_64 or arm64, with systemd) where some of your agents run. A VPS, a home server, a build box, anything you can open a shell on.
- Optionally, an iPhone on iOS 17 or later, for answering away from the desk.
- herdr, a free terminal workspace for coding agents. The Mac app sets it up if it is missing, and so does the server installer.
The agents are whatever you already use: Claude Code, Codex, OpenCode, Pi and Gemini, mixed freely across machines.
Step 1: Install the Mac app and choose how to run it
Download the Mac app and open it. The first screen asks how you want to run AgentOrbit, which really means where the relay lives. The relay is the small server that moves sealed messages between your devices. It never has the key to open them, but something has to forward them.
- Just this Mac. The relay is built into the Mac app. No account. Your phone and servers reach it while the Mac is awake; if Tailscale is installed, the Mac shares it on your tailnet so they can reach it from anywhere on that network.
- My relay. You run the relay on a server of your own and paste its URL here. Your phone keeps working while the Mac sleeps, and it can still reach agents on your servers. The self-hosting guide covers it: one binary or a small Docker image, behind Tailscale or any HTTPS proxy.
The why: this choice decides what happens when your Mac is asleep. With Just this Mac, the Mac is the relay, so a sleeping Mac means your phone has nothing to talk to. With My relay, your phone and your servers keep talking while the Mac is closed in a bag.
You can change your mind later in Settings, but switching creates a new connection, so your iPhone and servers pair again.
Step 2: Let it install herdr, then run your agents inside it
When the Mac app first runs it checks for herdr and installs it if needed, with Homebrew when you have it, otherwise with herdr’s own installer.
Then comes the habit that matters most: start your agents inside herdr. Open a pane, run claude or codex as you always do, and the agent shows up in AgentOrbit’s bar within a few seconds.
The why: herdr is how AgentOrbit knows an agent is working, waiting or done, and it is how a reply you send from the Inbox or your phone gets typed into exactly that agent.
One more thing in Settings, under Agents outside herdr: the integrations for Claude Code and the other tools. Each installs a small hook so AgentOrbit gets exact working, waiting and done states instead of reading the screen. Install them.
Step 3: Add your Linux box
Open Settings → Devices and click Add iPhone or server…, then the A remote machine tab. AgentOrbit shows a single command, made for this one machine and good for 30 minutes. Paste it into a shell on the Linux box, as the user your agents run as, not root.
That command downloads the connector from your relay, checks its checksum, installs herdr if the machine does not have it (a pinned release, checksum-verified), pairs the machine with your devices, and installs a systemd user service that survives reboots and logouts. When it pairs, the machine prints your Mac’s short fingerprint, which should match the one AgentOrbit showed you, and the Mac side changes to “build-server is connected. Its agents now appear in your list.”
The same tab can also run the command over your own ssh, give you a paragraph to paste to a Claude Code or Codex already running there, or list the steps to do by hand.
The plain installer from the download page does the install without the pairing, and then tells you to pair with orbit join:
curl -fsSL https://dl.agentorbit.app/install.sh | sh
Either way, orbit doctor on the server afterwards says whether it is paired, whether herdr is installed and whether the service is running.
The why: the connector opens no ports. It dials out to your relay and nothing else, so there is no firewall hole and nothing exposed on the box. It runs as your user on purpose, because herdr only lets its own user in; the installer refuses to run as root for that reason. From here on, every agent you start in herdr on that machine shows up in the bar under its own heading, in the Inbox and on your phone.
Step 4: Pair your iPhone
Get the iPhone app through the TestFlight beta on the download page (on your home screen it is simply called Orbit). On the Mac, open Settings → Devices → Add iPhone or server… and stay on the Your phone tab. A QR code appears; it works once and is valid for 30 minutes. In the iPhone app tap Scan pairing code, point it at the Mac, and allow notifications.
Then do the one thing people forget: in the iPhone app’s settings, turn on Questions break through Focus. That marks an agent’s questions Time Sensitive, so a Focus that allows Time Sensitive alerts lets them through. Without it, a question that arrives during a meeting Focus waits quietly like everything else.
The why: the phone is what turns “I will check the terminals later” into “I answered that from the hallway.” Each question arrives as a notification with the choices on it; pick one or type a reply, and it is typed into the agent on your Mac or server. The Agents tab shows every agent on every machine, the ones that need you first.
No iPhone, or an Android phone? AgentOrbit in your browser gives you the same Inbox with end-to-end encrypted notifications; the one thing it cannot do is Time Sensitive alerts.
Step 5: Give agents jobs their titles can carry
This is a habit, not a setting, and it pays off more than any setting.
AgentOrbit names an agent by the title in its terminal when the agent sets one. Claude Code names a session after your request, so an agent you started with “Build the pricing page: three tiers, yearly toggle” shows up in the bar as “Pricing page” next to storefront. If there is no usable title yet, you see the agent’s name, like codex-2, with the project folder beside it.
So give each agent one clear job in the first message: “Add Stripe webhooks: handler, signature check, tests.” “Rewrite the quick start for the new install flow.” “Reindex search, dropping stale rows first.” With six agents across two machines, the bar becomes a readable list of what is happening instead of six near-identical names.
The why: the bar is the thing you glance at a hundred times a day. It should answer “who is stuck, and on what?” without a click. Clear titles also help Talk route, because “the docs agent” has to map to something. For the same reason, keep one agent per project directory where you can; AgentOrbit groups agents by machine and then by project.
Step 6: Answer with numbers
When an agent asks a question, its dot turns amber, a sound plays, and a card lands in the Inbox. ⌥⌘I opens the Inbox from anywhere.
1to9answer a multiple-choice question, or send one of the suggested replies on a finished card.R(or/) focuses the reply field, for an answer in your own words.JandKmove between cards; the arrow keys do too.Eclears a card you have read.Oopens the card’s agent.Esctakes an answer back. Every answer waits two seconds before it is sent.
The why: the two-second delay is what makes answering with one key reasonable. You can be quick because you can be wrong for two seconds at no cost.
Step 7: Hand out work with Talk
Double-tap Option from any app (or ⌥ Space; both are in Settings → Talk) and say or type what you need. AgentOrbit’s router decides which agent should get it, sends it, and writes a one-line receipt: routed to claude-3 · ~/demo/storefront. If the request is new work nobody owns, it can start an agent in a project directory the machine already works in or that you listed in its settings. If your sentence is an answer to an open question, it answers that question. Ask “what is everyone doing?” and you get a plain summary.
Three things make Talk more useful:
- Point at it. Drag over part of your screen while you talk and the router sees the screenshot.
- Notes. Open Notes from the bar’s “…” menu and tell AgentOrbit how you like things done, what each project is, and your nicknames for agents. The router reads it before it sends anything.
- An API key. Talk and recaps run on an Anthropic API key or an OpenAI API key you add in Settings → Talk and recaps; calls go from your Mac straight to that provider, billed to you per use. Without a key, Talk runs on simple rules on your Mac: name an agent (“tell codex-4 to run the tests”) or a project directory and the request goes there.
One caveat. A server that joined your mesh runs on rules by default, so recaps for agents on that machine use the first line of the agent’s final message as the title. If you want a model to write them, give that machine its own key in ~/.config/orbit/settings.json and set brain; the Talk engines page has the exact settings.
What stays private
Everything between your devices is end-to-end encrypted. Questions, agent output and your replies are sealed with a mesh key that only your paired devices hold. The relay, which runs on your Mac or your server, sees ciphertext, device ids, timing and sizes. Push notifications are sealed on the machine where the agent runs and decrypted on your iPhone, so the lock screen shows the real question while Apple and the push gateway carry an envelope they cannot open. Removing a device rotates the mesh key, so a lost phone is cut off. The security page has the whole model, including a table of what each party can see.
Common mistakes
Running the server installer as root. It refuses, on purpose. Run it as the user your agents run as.
Starting agents outside herdr and wondering why answers do not land. AgentOrbit can show agents in other terminals, but typing a reply into one needs herdr. Start them in herdr.
Choosing Just this Mac and expecting the phone to work with the lid closed. The Mac is the relay in that setup. For a phone that works while the Mac sleeps, use My relay.
Skipping Time Sensitive on the phone. Questions then wait behind Focus with everything else. Turn on “Questions break through Focus” in the iPhone app.
Vague first messages. “Fix the thing” becomes an agent called “Fix the thing” in a bar full of them. One clear sentence per agent.
What we’d tell a friend starting out
Start with Just this Mac, pair the phone, and run two agents in herdr on the Mac for a day. Do not add a server yet. Get used to the amber dot, the Inbox and pressing a number, and turn on the Time Sensitive toggle before your first meeting.
On day two, add the Linux box with the command from the remote machine tab. Put the long-running work there, because a Mac in a bag cannot run an agent and a server can.
Give every agent one clear job in its first message, and look at the bar instead of the terminals. Add an API key when you want to say “the docs agent” instead of “pi-1”. Until then, rules are fine.
None of this costs anything. AgentOrbit is free: the apps, the relay, and iPhone push within a fair-use limit set far above what one person’s agents produce.
Questions people ask
Do my agents need to run in herdr?
Yes, for answering them. herdr is how AgentOrbit sees each agent’s state and types your replies into it, so run your agents inside herdr. It is free, and AgentOrbit installs it for you on the Mac and on Linux servers. Agents in other terminals or in the Claude or Codex apps still show up with their titles and status.
Does this work with Codex and Claude Code at the same time?
Yes. Each one gets its own dot in the bar and its own cards in the Inbox, whichever machine it runs on. The same goes for OpenCode, Pi and Gemini.
Can I answer from my phone when my Mac is asleep?
With a relay on your own server, yes, and the phone can still reach agents on your servers. With Just this Mac, the Mac is the relay, so it has to be awake. Agents on the sleeping Mac itself do nothing until it wakes.
What does the relay see?
Ciphertext, device ids, timing and message sizes. It never has the mesh key, so it cannot read a question, an answer or a line of agent output. And the relay is yours: it runs on your Mac or your own server.
What does it cost?
Nothing. AgentOrbit is free: the Mac and iPhone apps, the Linux connector and the relay, whether it is Just this Mac or one on your own server. No key, no account. iPhone push goes through the Push Gateway, free within a fair-use limit.