agent-bridge

Your computers, working as one team.

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.

my laptop
buildbox · Windows
linuxbox · Linux
mini · macOS
/agent-bridge:pair
same code? yes!
Run the tests on the Windows machine.
Hand the Windows path work to the agent on buildbox.
nice. nothing to do.
who's out there?
found!
found!
found!
482 913
482 913
same code on both → paired
731 206 ✓
found ≠ paired
git bundle · 48K
running…
✓ cargo clippy
✓ tests · 214 passed
results ✓
✓ 214 passed
task
task: accepted
running · 40%
done ✓
z z z
done ✓
each one updates itself. no server.

Run pair on two machines: they find each other on your LAN over mDNS. Found isn't paired.

Get started

Set up agent-bridge

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:

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:

macOS, Linux
› curl -fsSL https://cruxbitlabs.github.io/agent-bridge/install.sh | sh
Windows · PowerShell 7
› 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:

Claude Code
/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.

How it works

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.

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.

Ask in your own words

“Run the tests on the Windows machine.” The agent syncs your branch, picks the steps and runs them there while you keep editing.

Results come back

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 →

Ask Claude. It drives the other machine.

Once two machines are paired, you don't type these commands: your agent does. Here is what it runs, and what comes back.

Test on Windows

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.

Hand work over

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.

See everything

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

  • Claude Code
  • Codex
  • Gemini CLI
  • Antigravity
  • Grok Build

See the commands and what comes back

Ask from your Mac

Your coding agent
› Run the tests on the Windows machine.

It sends only what's missing

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.

It reads the result

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.

Jobs, steps and presets →

laptop · in your project
$ 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

Security, in short

You confirm the link. Agents can't widen it.

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.

  • LAN-only and key-only. A key that works from your machine's addresses only, host keys pinned, and no forwarding of any kind.
  • An agent can start a pairing, never finish one. The 6-digit code covers both sides' keys, and you type yes on each machine.
  • What comes back is data. A message is checked against one rule before anything reads it, and a peer's answer is never run.
  • A cloned repo can't change the link or bring a mailbox with it. Jobs run in worktrees of their own.
  • Nothing leaves your network. No server, no extra port, no cloud relay: SSH and git on both sides.

agent-bridge · SSH + git

Any mix of machines.

macOS, Windows and Linux, as client or peer. A machine that only receives work needs nothing but SSH, git and its shell.

macOS

bash 3.2+, git, OpenSSH, jq · Remote Login (pairing turns it on)

Linux

bash, git, OpenSSH, jq · avahi-utils for pairing · an SSH server

Windows

PowerShell 7.4+, git, OpenSSH · the setup script installs OpenSSH Server

Agents

Claude Code · Codex · Gemini CLI · Antigravity · Grok Build

Choose where to start.

Getting started

Requirements, installing the plugin, and linking two machines.

Using it

Running jobs, the mailbox between agents, and watching everything at once.

Reference

Every command and option, every config key, and what each message means.

How it's built

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

Pair your laptop with your desktop.

Install the plugin on both, run pair on both, compare the code.

Read the install guide

Any questions?

Troubleshooting for the messages you may see, and what to do.

GitHub issues to report a bug or ask for a feature.