a2a-bridge

The bridge between AI agents.
Claude Code, Codex, OpenClaw, Hermes Agent, Gemini CLI, Zed, and VS Code agents can finally talk to each other — one daemon, star topology, every protocol translated. Install once, pick your agents, and they collaborate across [A2A](https://google.github.io/A2A/) and [ACP](https://agentclientprotocol.org/) without copy-paste, context loss, or model switching.
| Any agent calls Claude Code | OpenClaw, Gemini CLI, Zed, VS Code, and Hermes Agent send prompts to a live Claude Code session through the bridge. Real reasoning, not echo — verified end-to-end across the public internet. |
| Claude Code calls other agents | Delegate tasks to Codex today. OpenClaw and Hermes outbound adapters ship in v0.2 — the star topology goes fully bidirectional. |
| Multi-protocol hub | A2A (HTTP + SSE), ACP (stdio JSON-RPC), MCP Channels — one adapter per agent, the daemon translates. Adding a new agent means writing one adapter; nothing else changes. |
| Multi-session isolation | RoomRouter + SQLite TaskLog. Concurrent sessions don't cross-talk; task state survives restarts. |
| First-run in 60 seconds | npm i -g a2a-bridge && a2a-bridge init && a2a-bridge claude — bearer token minted, plugin installed, Claude Code listening. |
| Cross-host ready | Set A2A_BRIDGE_CONTROL_HOST=0.0.0.0 and your ACP clients connect from anywhere. Daemon on a server, agents on laptops. |
Quick Start — Claude Code + OpenClaw in 5 minutes
Both sides install the same package. The difference is what you run
after install.
Step 1 — On the Claude Code machine (the server that answers prompts):
curl -fsSL https://raw.githubusercontent.com/firstintent/a2a-bridge/main/scripts/install.sh | bash
The script checks prerequisites (bun, npm, claude), installs
a2a-bridge globally, and runs a2a-bridge init. Then start:
a2a-bridge claude # launch Claude Code with bridge
Claude Code is now listening. Note your machine's IP — the client
in Step 2 needs it to connect (localhost if both on the same box).
Step 2 — On the OpenClaw / Hermes Agent machine (the client that sends prompts):
Recommended — tell the agent:
Read https://raw.githubusercontent.com/firstintent/a2a-bridge/main/docs/join.md and follow it.
The Claude Code server is at <server-ip>:4512.
Replace <server-ip> with the IP from Step 1 (or skip that line if
both sides are on the same machine). The agent installs a2a-bridge,
sets A2A_BRIDGE_CONTROL_URL, registers itself, and smoke-tests
the connection. Full text: docs/join.md
Manual setup
npm i -g a2a-bridge # same package, same install
Add to acpx.config.agents (OpenClaw) or your agent's config:
{ "agents": { "a2a-bridge": { "command": "a2a-bridge", "args": ["acp"] } } }
Send a prompt through the agent — it reaches Claude Code through the
bridge, Claude Code reasons about it, and the reply streams back.
Same machine? Both sides run on one box, no extra config.
Different machines? Two env vars:
# on the server (Claude Code side)
export A2A_BRIDGE_CONTROL_HOST=0.0.0.0
# on the client (OpenClaw / Hermes side)
export A2A_BRIDGE_CONTROL_URL=ws://<server-ip>:4512/ws
Install from source
git clone https://github.com/firstintent/a2a-bridge.git
cd a2a-bridge
bun install && bun run build:plugin
npm pack && npm i -g ./a2a-bridge-*.tgz
Connect other agents
The same bridge works for every A2A / ACP agent — just swap the
client config: