Pair once
Run pair on two machines. They find each other over mDNS, show the same 6-digit code, and once you confirm it on each, everything is set up on both.
Let the agent on your laptop use your other machines: run the heavy builds on the fast one, test on Windows from a Mac, and hand work to the agent there. Over plain SSH, and nothing leaves your network.
Run pair on two machines: they find each other on your LAN over mDNS. Found isn't paired.
Run pair on two machines: they find each other on your LAN over mDNS. Found isn't paired.Both show the same 6-digit code. You confirm it on each, and the keys are pinned.Your agent sends a git bundle, the tests run on buildbox, and each result comes back.Messages and tasks reach the agent on another machine as they happen.Each machine updates itself. Nothing is set up from another machine or a server.Get started
Install agent-bridge on every machine you want to pair, then pair them. Pairing runs on both sides, and it's the only manual step.
Needs git and OpenSSH everywhere; bash and jq on macOS and Linux; PowerShell 7.4+ on Windows. pair --check says what's missing. Install guide →
On each machine, in Claude Code:
› /plugin marketplace add cruxbitlabs/agent-bridge › /plugin install agent-bridge@cruxbitlabs
Or on any machine, with or without Claude Code, from a terminal:
› curl -fsSL https://cruxbitlabs.github.io/agent-bridge/install.sh | sh
› irm https://cruxbitlabs.github.io/agent-bridge/install.ps1 | iex
It installs the newest signed release, checks its signature first, and asks which agent CLIs on the machine to wire it into (Claude Code, Codex, Gemini CLI, Grok Build, Antigravity). Homebrew and Scoop work too. Install guide →
On both machines at about the same time:
/agent-bridge:pair
Both machines show the same 6-digit code. Confirm it on each, and the link is set up on both, in both directions.
Two or more machines on your LAN, in any mix of macOS, Windows and Linux, linked by SSH with a key that only works from your machine's addresses. Your agent sends code over as a git bundle, runs the job in its own worktree there, and reads the results.
Run pair on two machines. They find each other over mDNS, show the same 6-digit code, and once you confirm it on each, everything is set up on both.
“Run the tests on the Windows machine.” The agent syncs your branch, picks the steps and runs them there while you keep editing.
Each step's exit code and a one-line summary; new commits as a branch; messages and tasks delivered into the other agent's session as they arrive.
One SSH connection between machines you own. No server, no extra port, no cloud relay. The architecture →
Once two machines are paired, you don't type these commands: your agent does. Here is what it runs, and what comes back.
Your branch goes over as a git bundle of the commits the other machine lacks. Nothing is pushed to a remote, and no CI minutes are spent.
You ask ClaudeRun the tests on the Windows machine.
The task lands in the session on buildbox as it arrives. Its agent accepts it, reports progress, and says when it's done or blocked. You see the timeline from either machine.
You ask ClaudeHand the Windows path work to the agent on buildbox.
agent-bridge monitor shows each machine's load, every agent session on it (working, waiting for a permission prompt, idle), who uses which machine, every job, and a live feed.
You ask ClaudeWhat are the other machines doing?
Ask from the agent you already use
› Run the tests on the Windows machine.
Your branch goes over as a git bundle of the commits the other machine lacks. Nothing is pushed to a remote, and no CI minutes are spent.
Each step gets its own log, exit code and a one-line summary: cargo, pytest, jest and go test are understood, so failing tests come back by name. The timings feed pick, which learns which machine runs the same work fastest.
$ agent-bridge buildbox sync tests Sent a bundle (48K). $ agent-bridge buildbox job tests --preset check step 01-cargo-clippy: exit 0 step 02-cargo-test: exit 101 | tests: 212 passed, 2 failed, 0 ignored | failed: auth::login_redirect, auth::expired metrics 02-cargo-test: duration_s=184 peak_cpu=97 min_ram_free_gb=3.2 $ agent-bridge buildbox done tests
› /agent-bridge:pair
Both machines show the same 6-digit code. It covers both sides' keys, so a machine in the middle can't match it. Nothing is written until you say yes on each.
Host keys are pinned, each side lets the other's key in from its address only, and the link is checked. An agent can start a pairing but never finish one.
$ agent-bridge pair Pairing as laptop (macos, me@laptop.local, 192.0.2.10). Run 'agent-bridge pair' on the other machine now. Found buildbox. Pairing laptop with buildbox (windows, Me@BUILDBOX.local, 192.0.2.20) buildbox's host key: SHA256:1aB2... buildbox will be let in here from: 192.0.2.20 CODE: 482 913 Does buildbox show the same code? [y/N] y Pinned buildbox's host key as bridge-buildbox, added 'Host bridge-buildbox' to ~/.ssh/config, and buildbox to ~/.config/agent-bridge/peers.json. Let buildbox's key in from 192.0.2.20 (~/.ssh/authorized_keys). sshd: allows me from 192.0.2.20 Waiting for buildbox's owner to confirm there too... Paired, and the link works: buildbox up rtt_ms=4 os=windows ...
› Hand the Windows path work to the agent on buildbox.
The task lands in the session on buildbox as it arrives. Its agent accepts it, reports progress, and says when it's done or blocked. You see the timeline from either machine.
What comes from another machine is checked against one rule before anything reads it, and is treated as information from another agent, not a command.
# on laptop $ agent-bridge buildbox task new "Port the config loader to Windows paths" \ -d "Done means: tests/config pass on Windows" --branch feat-paths $ agent-bridge task wait <task> # on buildbox, the agent there $ agent-bridge task accept <task> $ agent-bridge task start <task> $ agent-bridge task progress <task> 40 "parser done, tests next" $ agent-bridge task done <task> "branch feat-paths-win, 14 tests pass" # back on laptop: task wait returns 0, done
› What are the other machines doing?
agent-bridge monitor shows each machine's load, every agent session on it (working, waiting for a permission prompt, idle), who uses which machine, every job, and a live feed.
Redrawn every 5 seconds in a terminal, once with --once, the whole model as JSON, or one line per event for Claude's Monitor tool.
agent-bridge monitor 14:02:11 every 5s, q quits MACHINES laptop macos idle cpu 12% ram 9.1/32.0 GB (this machine) buildbox windows busy cpu 64% ram 21.0/64.0 GB jobs 2 AGENTS laptop/claude feat-login@app working Edit: src/auth.rs 8s "Fix the login redirect" buildbox/codex main@app waiting Codex needs your approval 1m CONNECTED buildbox <- laptop/feat-login job_start 4s ago (app) JOBS laptop -> buildbox tests (app) running 02-cargo-test of 3 4m FEED 14:02:07 buildbox laptop/feat-login -> sync 3f2a9c1b7d0e 14:02:09 buildbox job tests from laptop started 01-lint,02-cargo-test,03-doc 14:02:10 laptop claude feat-login Bash: cargo build -p core
Everything runs over the SSH link and git you already have, on both sides.
Run builds and tests on the desktop, or on the OS you need: Windows checks from a Mac, macOS checks from a Windows workstation, while you keep editing.
Jobs →Only the commits the other side lacks. Nothing goes to a remote; new commits come back as a branch, from-buildbox/tests.
Each job in its own worktree there, in the foreground or the background, with a log, an exit code and a one-line summary per step.
Steps and presets →Messages and tracked tasks between agents, delivered into each running session as they arrive. A task pool lets the first free machine claim it.
Messages and tasks →By load, memory, disk, power, the toolchains it has, and how fast the same work ran there before.
Choosing the machine →Claude Code as a plugin; Codex, Gemini CLI, Antigravity and Grok Build through agent-bridge integrate.
Security, in short
Pairing is confirmed by you on both machines. Installs, firewall or sshd changes and any widening of the link need your OK.
A machine you pair can run commands as you on the other one, so pair only machines you trust as much as the one you're at. For one you trust less, pair --messages-only lets its agents talk with yours and run nothing.
agent-bridge · SSH + git
macOS, Windows and Linux, as client or peer. A machine that only receives work needs nothing but SSH, git and its shell.
bash 3.2+, git, OpenSSH, jq · Remote Login (pairing turns it on)
bash, git, OpenSSH, jq · avahi-utils for pairing · an SSH server
PowerShell 7.4+, git, OpenSSH · the setup script installs OpenSSH Server
Claude Code · Codex · Gemini CLI · Antigravity · Grok Build
How it works: client and peer, bundles, jobs, the mailbox, discovery; compared with Claude Code's Remote Control. The link's design: why SSH, and what was weighed against it. Development: the two implementations, the tests, releasing.
Two machines, one minute
Install the plugin on both, run pair on both, compare the code.
Read the install guideTroubleshooting for the messages you may see, and what to do.
GitHub issues to report a bug or ask for a feature.