channel open v3.0.0 Claude Code plugin tested end-to-end

Let your Claude sessions talk to each other.

agent-bridge lets a Claude Code session on one Mac push messages straight into a Claude Code session on another — agent-to-agent, not shell-to-shell. One plugin per machine. Messages land as live <channel source="agent-bridge"> events inside the already-running conversation. No broker, no cloud, no fresh agents spawned on the remote side.

Transport SSH · ED25519
Delivery push · no poll
MCP tools 7 · one concept each
License MIT · macOS & Linux
01 / Quickstart

One prompt. Paste it into Claude on each Mac.

This is the fast path. It works because Claude Code can read the README, install the CLI, build the MCP server, and register the plugin for you.

paste into Claude Code · each computer
Read the README at https://github.com/EthanSK/agent-bridge and follow
the setup instructions for this computer. Install agent-bridge, run
the setup command, and install the Claude Code plugin. Do everything
automatically -- don't ask me questions.
Prereqs (once per machine). macOS: System Settings > General > Sharing > toggle Remote Login ON > click (i) > set “Allow access for” to All users. Optionally toggle “Allow full disk access for remote users”. Linux: sudo systemctl enable --now sshd

After the agents finish installing, photograph the pairing screen on one machine and send the photo to Claude on the other. That’s the pair step; the agents handle the rest.

02 / Why

Agent-to-agent, not shell-to-shell.

Push, not poll

Messages from a remote machine arrive as real-time <channel source="agent-bridge"> events inside your running Claude session. No timers, no busy loops, no stale inbox.

Running sessions, not new ones

The plugin connects already-running Claude sessions. Machine A’s bridge_send_message drops a signed file into Machine B’s inbox; Machine B’s watcher pushes it into the live conversation. No fresh claude --print spawned on the far side — that whole shape was removed in 3.0.0.

Peer-to-peer over SSH

Direct machine-to-machine SSH on the ports you already allow. No relay, no broker, no vendor. Tailscale is the recommended off-LAN path (stable 100.x.y.z IPs); plain LAN works great too.

Hardened against zombies

The MCP server exits cleanly on parent death, handles EPIPE, detects stdin close, watchdogs its own ppid, and expands remote tildes correctly. No shadow ~/.agent-bridge/inbox directories, no orphaned Node processes chewing CPU after Claude quits.

03 / Install

Manual install, step by step.

Prefer doing it yourself? This is exactly what the quick-start prompt above tells Claude to do. Run these on each machine you want to bridge.

Pair the two machines

Bash CLI

The bash agent-bridge CLI handles setup, pairing, and SSH-level diagnostics. It coexists with the plugin — the plugin drives agent-to-agent messages, the CLI drives the transport.

pairing & diagnostics
# On each machine: enable SSH, generate keys, show pairing screen
agent-bridge setup

# Off-LAN? Install Tailscale on each machine and use its 100.x.y.z IP as internet_host.
# Recommended: no-sudo userspace LaunchAgent. See README "Internet connectivity (Tailscale)"
# for the plist template, ~/.ssh/config SOCKS5 block, and --socket CLI pattern.
brew install tailscale
launchctl load ~/Library/LaunchAgents/com.USERNAME.tailscaled.plist
tailscale --socket="$HOME/.local/share/tailscale/tailscaled.sock" up --accept-dns=false --hostname=MY-MACHINE
agent-bridge config <other-machine> --internet-host 100.x.y.z

# Then photograph the pairing screen on one machine
# and send the photo to Claude on the other. It runs `agent-bridge pair` for you.

# Verify
agent-bridge list
agent-bridge status MacBook-Pro

# Plain remote shell on a paired machine (diagnostics only)
agent-bridge run MacBook-Pro "cd ~/Projects/myapp && git status"

Note. agent-bridge run is a plain SSH remote-shell utility — it does NOT invoke an agent. To talk to the running agent on the other machine, use the plugin’s bridge_send_message MCP tool. The old --claude / --codex / --agent flags that spawned a fresh non-interactive agent session on the remote machine were removed in 3.0.0.

Other MCP-capable harnesses

Scaffolded · not exercised

Codex CLI, Gemini CLI, OpenClaw, Aider, and anything else that speaks the Model Context Protocol can in principle call the bridge_* tools. The server is harness-agnostic by design — but as of v3.0.0, only Claude Code is confirmed end-to-end. If you try one of these and it works (or doesn’t), please open an issue.

.mcp.json (or your harness’s equivalent)
{
  "mcpServers": {
    "agent-bridge": {
      "command": "node",
      "args": ["/absolute/path/to/agent-bridge/mcp-server/build/index.js"]
    }
  }
}

Without the Claude Code channel, harnesses run in polling mode: the agent calls bridge_receive_messages at natural breakpoints to drain the inbox. Companion instruction files ship in the repo: AGENTS.md (Codex), GEMINI.md (Gemini), INSTRUCTIONS.md (generic), and an openclaw-channel/ native channel plugin for OpenClaw push delivery.

04 / Pair two machines

Three steps. Then it’s invisible.

No fixed client/server roles — both peers are equal. After the handshake, bi-directional messaging just works.

  1. Setup

    On each machine, run agent-bridge setup. It enables SSH if needed, generates an ED25519 key pair under ~/.agent-bridge/keys/, and prints a pairing screen with the machine name, user, IPs, port, one-time token, and public key.

  2. Pair

    Photograph the pairing screen on one machine and send the image to Claude Code on the other. Claude reads the photo, extracts the fields, and runs agent-bridge pair --name ... --host ... --token ... --pubkey .... No password, no manual typing.

  3. Use

    Once paired, either side calls bridge_send_message from inside its Claude session. The message lands in the remote inbox over SSH and is pushed into the running remote Claude’s context as a <channel source="agent-bridge"> event. No fresh agent is ever spawned on either side.

05 / The channel

Push into a running session.

The plugin registers a single MCP server that advertises the experimental claude/channel capability and the bridge_* tools. A file watcher on ~/.agent-bridge/inbox/ detects new message files and emits notifications/claude/channel into the Claude session — no polling, no manual bridge_receive_messages call needed.

inside your Claude Code session
// Machine A's Claude calls:
bridge_send_message({
  machine: "MacBook-Pro",
  content: "can you run the e2e suite and paste the failures?"
})

// A few hundred ms later, Machine B's Claude sees:
<channel source="agent-bridge" from="Mac-Mini" message_id="msg-91c..." ts="2026-04-14T22:11:03Z">
  can you run the e2e suite and paste the failures?
</channel>

// ...and responds the same way:
bridge_send_message({ machine: "Mac-Mini", content: "3 failed, logs attached: ..." })
06 / Tool reference

Seven MCP tools. One concept per tool.

bridge_send_message

Deliver a message to a running agent on a paired machine. Writes a signed JSON message file to the remote inbox over SSH. Under Claude Code, the remote session receives it as a <channel> event; under polling harnesses it waits in the inbox until drained.

bridge_receive_messages

Manually drain the local inbox. Usually not needed under Claude Code (the channel pushes for you), but the primary entry point for polling-mode harnesses. Supports peek for non-destructive reads.

bridge_list_machines

Show the local machine name and every paired peer with its user, host, port, and pairing date.

bridge_status

Probe a paired machine over SSH and report reachability. Pass a name to check one, or omit it to check all. Short timeout — safe to call on hot paths.

bridge_run_command

Run a plain shell command on a remote paired machine via SSH. Returns stdout, stderr, and exit code. Diagnostic utility only — do NOT use it to invoke an agent CLI on the far side. That path was removed in 3.0.0.

bridge_clear_inbox

Nuke every message in the local inbox. Handy for a clean slate between sessions or tests.

bridge_inbox_stats

Report pending count, oldest message age, total size, watcher health, processed-ID count, and failed-message count. Useful for diagnosing “did my message arrive?”

07 / Compatibility

Tested & scaffolded harnesses.

Harness
Status
Notes
Claude Code
● live
Full push via the native plugin. Install with the local-directory marketplace flow above. The plugin bundles both the bridge_* MCP tools and the channel in one Node process.
OpenClaw
ready
MCP tools out of the box. The openclaw-channel/ native channel plugin registers agent-bridge as a first-class OpenClaw channel (same tier as Telegram) via api.registerChannel(), pushing inbound messages into the running agent session via enqueueSystemEvent.
Codex CLI
scaffolded
MCP tools via codex mcp add agent-bridge .... AGENTS.md in the repo root is auto-picked-up by Codex as instructions. Polling mode — call bridge_receive_messages at breakpoints.
Gemini CLI
scaffolded
MCP tools via gemini mcp add agent-bridge .... GEMINI.md in the repo root is picked up for guidance. Polling mode.
Aider & other MCP agents
scaffolded
Anything that speaks MCP can call the bridge_* tools. See INSTRUCTIONS.md in the repo root for plain-English guidance a generic agent can follow.
08 / Security

SSH-authenticated. TTL-bounded. No cloud.

09 / Changelog highlights

What’s new.