Claude in your IDE, Codex in a terminal, Cursor in another window — all isolated by default. a2abridge wires them into a single A2A 1.0 mesh: peers find each other, share an inbox, send each other tasks, and survive across machines with mTLS. No vendor lock-in — runs on the open Linux Foundation standard.
You have several AI coding agents on the same machine: Claude in the IDE, Claude in a terminal, Codex CLI, Cursor, maybe Cline, Gemini CLI or Antigravity CLI. They are isolated by default. There is no built-in way for "Codex finished refactoring the API" to reach the Claude session that owns the frontend, except you copy-pasting between windows.
Existing solutions are either:
- vendor-locked — Anthropic Agent Teams talks Claude↔Claude only;
- closed protocols — CCB, claude-multi-agent-bridge, ruflo: each invents its own wire format, you cannot bring a third-party A2A agent in;
- enterprise-only — ruflo's federation is great but designed for 100+ agent swarms with central queens.
a2abridge takes a different angle: wrap each agent into a standard A2A 1.0 peer. Discovery is local; transport is the spec's JSON-RPC and HTTP+JSON bindings with SSE streaming, served by the official a2a-go SDK; the wire is the open Linux Foundation spec. Any A2A-compliant agent (yours, third-party, future Google ADK, LangGraph, CrewAI, etc.) can join the same mesh on the same laptop.
In August 2025 IBM's ACP merged into Google's A2A under the Linux Foundation. By April 2026 there are 150+ supporting organizations and v1.2 is the current stable release; native A2A is in Google ADK, LangGraph, CrewAI, LlamaIndex Agents, Semantic Kernel, AutoGen. A2A won the protocol war. Your bridge should speak the protocol the rest of the industry speaks.
| a2abridge | Anthropic Agent Teams | CCB | claude-multi-agent-bridge | ruflo | |
|---|---|---|---|---|---|
| Open protocol | A2A 1.0 (LF) | Closed | Closed | Closed | Closed |
| Cross-vendor agents | Any A2A peer | Claude only | Claude/Codex/Gemini/Droid | Claude only | Claude (via plugins) |
| Transport | A2A 1.0 JSON-RPC + HTTP+JSON, SSE over HTTP | Internal mailbox | Unix sockets + tmux | Flask HTTP + SSE + SQLite | WebSocket + mTLS |
| Discovery | Local directory + Agent Card | Built-in lead/teammate | Project .ccb/ registry |
Single Flask server | Federation registry |
| Cross-machine | Yes (mTLS+ed25519, opt-in) | No | No | No | Yes (zero-trust) |
| Push notifications | Yes (A2A 1.0 §9.5 webhooks) | Idle hooks | Polling | SSE | WebSocket |
| Install footprint | Single Go binary, ~10 MB |
Built into Claude Code | Python 3.10+ + tmux | Python + Flask + Chrome ext | npm/Node + 32 plugins |
| Cross-platform install | macOS / Linux / Windows / WSL2 (one cmd) | macOS-leaning (tmux) | install.sh + install.ps1 | Python | npm |
| Lifecycle | Per-agent bridge dies with MCP stdio session — no orphans | Lead-managed | Daemon ccbd per project |
Single shared server | Distributed |
| MCP stdio for IDE | Yes (any MCP client) | N/A (native) | Yes (delegation registry) | Yes (Claude Desktop) | Yes |
| Production state | v4.x | Experimental flag | v6.x | v1.x | v0.5+ |
a2abridge is not trying to be ruflo (we are not building a 100-agent federated swarm) and not Agent Teams (we are not a built-in Claude feature). The niche is exactly: "cross-vendor, open-protocol, single-laptop mesh that any new A2A agent can drop into."
- Each running agent is an A2A peer. Agent Card on
/.well-known/agent-card.json, JSON-RPC (POST /) and HTTP+JSON bindings served by the official a2a-go SDK (SendMessage,SendStreamingMessage,GetTask,ListTasks,CancelTask,SubscribeToTask, the push-notification config methods,GetExtendedAgentCard), spec TaskState/Message/Part/Artifact and error codes, headerA2A-Version: 1.0. - Local directory for zero-config discovery on your machine. Run as a system service (launchd / systemd-user / Windows Service) — same UX on every OS.
- MCP tools plugged into your IDE:
a2a_whoami,a2a_list_agents,a2a_send_message,a2a_send_streaming,a2a_get_task,a2a_cancel_task,a2a_inbox,a2a_complete_task. - One-line install that detects every supported IDE on your machine and registers the MCP server with
.bakbackups of your configs. - Skill
a2a-bridgefor Claude Code that loads only when relevant — no globally-loaded rules eating tokens on every session.
You change a JSON shape in backend/api.go. Your Claude Code session
running there fires off:
a2a_send_message peer_url=<frontend-claude> text="[backend-3a2f] FYI:
GET /orders now returns `currency` (string, ISO 4217). Was implicit USD."
The frontend Claude session sees that line at the top of your next
prompt (via the UserPromptSubmit hook), so before it touches
useOrders.ts it already knows the field is required. No Slack ping,
no PR review delay.
You (in Claude Code, IDE):
Refactor the payment module. Delegate the Go service to Codex,
the Vue checkout to the Cursor session, and have the Cline session
audit the migration once Go finishes.
Claude:
→ a2a_send_message peer_url=<codex> text="..." # Go service
→ a2a_send_message peer_url=<cursor> text="..." # Vue checkout
Tracks both task IDs; when Codex completes, fires off the
Cline audit task with Codex's diff attached.
Three agents working concurrently, one human in the loop.
$ a2abridge worker start --cmd claude --prompt "You are a maintenance
agent. Drain a2a_inbox and address every request. If unsure, reply
with a question and stop."
Now any peer (yours or a teammate's) can a2a_send_message to that
worker URL and get a reply hours later — even after you've closed every
IDE window. The worker survives reboots if you a2abridge service install the directory daemon.
a2abridge is the open-protocol bridge — third-party agents that
speak A2A 1.0 are first-class peers without glue code. See
docs/integrations/ for working examples with
Google ADK 1.0, LangGraph 0.4.7+, CrewAI 0.95+ and LlamaIndex 0.13+.
Set A2A_TLS_CERT / A2A_TLS_KEY / A2A_TRUST_ROOTS on each side,
optionally A2A_MDNS=1 for LAN auto-discovery, and your home Mac talks
to your office Linux box over mTLS-authenticated A2A. ed25519 cert
generation is one command (a2abridge cert generate). See Security
model below.
curl -fsSL https://raw.githubusercontent.com/vbcherepanov/a2abridge/main/install.sh | bashiwr -useb https://raw.githubusercontent.com/vbcherepanov/a2abridge/main/install.ps1 | iex- Downloads the right binary from GitHub Releases for your
os/archand verifies its SHA256 against the release'schecksums.txtbefore installing. - Drops it into
~/.a2abridge/bin/a2abridgeandchmod +x. - Detects installed IDEs and writes the MCP block to each one's config — with timestamped
.baknext to the original:- Claude Code →
~/.claude.json(hooks stay in~/.claude/settings.json) - Codex CLI →
~/.codex/config.toml - Cline (VS Code) →
<vs-code-globalStorage>/saoudrizwan.claude-dev/settings/cline_mcp_settings.json - Continue →
~/.continue/mcpServers/a2a.yaml - Cursor →
~/.cursor/mcp.json - Gemini CLI →
~/.gemini/settings.json - Antigravity CLI →
~/.gemini/config/mcp_config.json
- Claude Code →
- Registers
a2abridge directoryas a user-level system service (launchd/systemd --user/ Windows Service) and starts it on127.0.0.1:7777. - Installs the
a2a-bridgeskill into~/.claude/skills/a2a-bridge/and adds~/.claude/hooks/a2a-inbox-hook.sh(so other agents' messages show up in your prompt). - Runs
a2abridge doctorto verify everything is healthy.
To preview without making changes: a2abridge install --dry-run.
After the installer completes, here's the 3-step verification that everything is wired correctly. Two terminal windows are enough.
Terminal 1 — open Claude Code in any project
cd ~/some/project
claude # or just open VS Code with the Claude Code extensionIn the chat, type:
What's my A2A label and which peers are online?
Claude will call a2a_whoami (returns its own Agent Card with a stable
label like claude-ttys000) and a2a_list_agents (returns the list of
peers — empty for now since you only have one bridge running).
Terminal 2 — open Codex CLI in another project
cd ~/another/project
codexType:
List the A2A peers you can see.
Codex calls a2a_list_agents — and now sees the Claude bridge from
Terminal 1. Send it a message:
Send "ping from codex" to the claude-ttys000 peer.
Codex calls a2a_send_message. The message is queued in Claude's inbox.
Terminal 1 — type any prompt
The UserPromptSubmit hook drains the inbox automatically and prepends the message above your prompt:
You have 1 unread A2A message(s):
- from `codex-ttysXXX` (task ABC...): ping from codex
Claude can now a2a_complete_task task_id=ABC text="pong" and Codex
will see the reply on its next turn (the SSE fast-path delivers it in
~milliseconds).
Verify directly via curl (always works, regardless of IDE state):
curl http://127.0.0.1:7777/agents | jq .
# → list of registered peers and their URLs
PEER_URL=$(curl -s http://127.0.0.1:7777/agents | jq -r '.[0].url')
curl "$PEER_URL/.well-known/agent-card.json" | jq .
# → that peer's Agent CardIf anything looks wrong, run a2abridge doctor — it tells you exactly
which check failed and how to fix it.
The a2abridge install step writes the right MCP block into each
detected IDE's config. This section explains what that block looks like
per IDE so you can verify by hand or wire it up manually.
The MCP server registration goes into ~/.claude.json:
{
"mcpServers": {
"a2a": {
"command": "/Users/<you>/.a2abridge/bin/a2abridge",
"args": ["bridge"],
"env": {
"A2A_DIRECTORY": "http://127.0.0.1:7777",
"A2A_BIND": "127.0.0.1:0",
"A2A_NAME": "claude-ide",
"A2A_MODEL": "claude-opus-4-7",
"A2A_SKILLS": "go,php,vue,refactor,review"
}
}
}
}The hook block stays in ~/.claude/settings.json:
{
"hooks": {
"UserPromptSubmit": [{
"matcher": "*",
"hooks": [{
"type": "command",
"command": "/Users/<you>/.claude/hooks/a2a-inbox-hook.sh"
}]
}]
}
}The hook script auto-injects the inbox before every prompt. Restart Claude Code after editing.
[mcp_servers.a2a]
command = "/Users/<you>/.a2abridge/bin/a2abridge"
args = ["bridge"]
[mcp_servers.a2a.env]
A2A_DIRECTORY = "http://127.0.0.1:7777"
A2A_BIND = "127.0.0.1:0"
A2A_NAME = "codex"
A2A_SKILLS = "code,plan"Verify with codex mcp list — a2a should be listed as enabled / stdio.
Same shape as Claude Code's mcpServers block. Restart Cursor.
Cline reads MCP from
<vs-code-globalStorage>/saoudrizwan.claude-dev/settings/cline_mcp_settings.json,
not VS Code's main settings.json. The installer drops the block there
automatically.
Continue 1.x reads MCP servers from
~/.continue/mcpServers/<name>.yaml. The installer writes
a2a.yaml there with the equivalent fields.
Same mcpServers shape as Claude Code. After a restart, gemini /mcp
will list the a2a server.
Antigravity CLI (agy) reads MCP servers from its own file, not from Gemini
CLI's settings.json. The installer detects agy by that file or by its state
directory ~/.gemini/antigravity-cli and writes the same mcpServers block;
run /mcp inside agy to confirm the a2a server. Antigravity keeps cached
copies of MCP servers under ~/.gemini/antigravity-cli/mcp/ — after
a2abridge uninstall, remove the a2a copy there as well.
Override A2A_ID and A2A_NAME per-window so they don't fight for the
same directory entry:
A2A_ID=claude-ide-main A2A_NAME=claude-ide claude # window 1
A2A_ID=claude-term A2A_NAME=claude-term claude # window 2Without overrides, the second window will quietly overwrite the first in the directory.
git clone https://github.com/vbcherepanov/a2abridge ~/PROJECT/a2abridge
cd ~/PROJECT/a2abridge
go build -o ~/.a2abridge/bin/a2abridge ./cmd/a2abridge
~/.a2abridge/bin/a2abridge install --ide auto --apply
~/.a2abridge/bin/a2abridge service install ┌─────────────────────────────┐
│ a2abridge directory │ user-level system service
│ :7777 (loopback) │ (launchd · systemd-user · WinSvc)
│ POST /register │
│ GET /agents │
└────────▲────────────────────┘
│ heartbeat / advertise own URL
┌──────────────────────┼──────────────────────┐
│ │ │
┌──────────┴──────────┐ ┌─────────┴───────────┐ ┌────────┴───────────┐
│ Claude Code (IDE) │ │ Claude Code (term) │ │ Codex CLI / Cursor │
│ ─ MCP stdio │ │ ─ MCP stdio │ │ ─ MCP stdio │
│ ↕ │ │ ↕ │ │ ↕ │
│ a2abridge bridge │ │ a2abridge bridge │ │ a2abridge bridge │
│ http://127.0.0.1:N │ │ http://127.0.0.1:M │ │ http://127.0.0.1:K │
│ A2A server + client │ │ A2A server + client │ │ A2A server + client│
└──────────┬──────────┘ └─────────┬───────────┘ └────────┬───────────┘
│ │ │
└────────── JSON-RPC 2.0 + SSE ──────────────┘
(peers talk to peers, directly)
- One binary, multiple subcommands.
a2abridge directoryruns as a daemon.a2abridge bridgeis launched as MCP stdio server by your IDE — its lifecycle equals your IDE session. - Per-agent state lives in
./.a2a/inside your current working directory (inbox, label, logs). Out-of-cwd state lives under~/.a2abridge/. - All loopback by default. Cross-machine federation is opt-in (mTLS + ed25519) — see Security model.
| Command | What |
|---|---|
a2abridge install [--ide auto|claude-code,codex,...] [--dry-run] [--apply] |
Detect IDEs, write MCP configs (.bak backups), install skill, register UserPromptSubmit hook; dry-run unless --apply |
a2abridge directory [--addr 127.0.0.1:7777] |
Run discovery service (used by the system service unit) |
a2abridge bridge |
Run as MCP stdio server (used by IDEs, do not call manually) |
a2abridge service {install|start|stop|restart|status|uninstall} |
Manage the directory daemon under launchd / systemd-user / Windows Service |
a2abridge doctor |
Health check: directory ping, ports, IDE configs, skill, hook, version |
a2abridge update [--check] |
Self-update from the latest GitHub release (SHA256-verified against checksums.txt) with rollback on failure |
a2abridge uninstall [--purge] [--keep-service] |
Remove the MCP block from every IDE config, skill, hook, and service (.bak unless --purge) |
a2abridge cert generate [--cn <name>] [--dir <path>] |
Produce an ed25519 self-signed cert + key for federation |
a2abridge completion {bash|zsh|fish|powershell} |
Emit a tab-completion script for your shell |
| Tool | Maps to | Use |
|---|---|---|
a2a_whoami |
own Agent Card | "who am I to other agents" |
a2a_list_agents |
GET /agents on directory |
list peers + their cards |
a2a_send_message |
SendMessage |
new task on a peer; returns at once or blocks until the reply |
a2a_send_streaming |
SendStreamingMessage |
wait for completion via SSE |
a2a_get_task |
GetTask |
poll a previously sent task |
a2a_cancel_task |
CancelTask |
cancel a running task |
a2a_inbox |
local inbox | fetch unread incoming messages |
a2a_complete_task |
local task → completed with a reply artifact |
answer an incoming task |
The installer drops a skill into ~/.claude/skills/a2a-bridge/. It auto-loads when your prompt contains triggers like "a2a", "another agent", "smoke test peers", "FYI to backend", "broadcast". The skill teaches Claude:
- the inbound flow (poll inbox before answering you, classify FYI vs request-for-action),
- when to send proactive FYI to peers (API contract changes, schema changes, infra changes),
- the self-label format
<basename-cwd>-<4hex>so peers know who is talking, - how to use each MCP tool with real examples.
Without the skill, Claude has the tools but no idea when to use them. With the skill, you do not need to ask "check inbox" — it does it on its own.
Set per-bridge environment in your IDE config (the installer fills sensible defaults):
| Env | Default | Meaning |
|---|---|---|
A2A_DIRECTORY |
http://127.0.0.1:7777 |
URL of the directory service |
A2A_BIND |
127.0.0.1:0 |
bind addr/port (:0 = random free port) |
A2A_ADVERTISE_HOST |
127.0.0.1 |
host to advertise to the directory |
A2A_NAME |
derived from binary path | human-readable name shown to peers |
A2A_ID |
<name>-<pid> |
stable id for the peer |
A2A_MODEL |
unset | model id reported in Agent Card (claude-opus-4-7, gpt-5, ...) |
A2A_SKILLS |
unset | comma-separated capability tags |
A2A_STATE_DIR |
./.a2a |
per-project inbox/label/log directory |
A2A_NUDGE |
unset | wake an idle agent on inbound: auto, tmux, terminal (macOS Terminal.app), dtach, or channel (Claude Code MCP channels, see Waking an idle Claude Code session). auto never picks channel |
A2A_NUDGE_SOCKET |
~/.dtach/<name> |
dtach master socket used when A2A_NUDGE=dtach |
A2A_RESPONDER |
unset | auto-answer inbound messages with a headless claude or codex CLI |
A2A_PUSH_ALLOW_PRIVATE |
unset | 1 lets push-notification webhooks reach loopback/private addresses while federation TLS is on (a loopback bridge always allows them) |
A2A_PEER_TOKENS |
unset | outbound bearer tokens, peer=token pairs separated by commas; peer is a base URL or a peer's Agent Card name |
A2A_PEER_TOKENS_FILE |
unset | path to a file holding the same pairs, one per line or comma-separated (a # comment takes a whole line); set this or A2A_PEER_TOKENS, not both |
A2A_AUTH_TOKENS |
unset | inbound bearer tokens, name:token pairs separated by commas (the format Hermes uses); when set, callers need one of them |
A2A_AUTH_TOKENS_FILE |
unset | path to a file holding the same pairs; set this or A2A_AUTH_TOKENS, not both |
Cross-machine federation: A2A_TLS_CERT, A2A_TLS_KEY, A2A_TRUST_ROOTS (required once cert/key are set), A2A_PEER_ALLOW.
Agents that authenticate with bearer tokens instead of client certificates,
such as Hermes,
work with A2A_PEER_TOKENS and A2A_AUTH_TOKENS. For a Hermes agent at
https://hermes.example.com:
# a2abridge -> Hermes: the token from Hermes's own A2A_PEER_TOKENS
A2A_PEER_TOKENS="https://hermes.example.com=tok-for-hermes"
# Hermes -> a2abridge: the token in Hermes's peer entry for this bridge
A2A_AUTH_TOKENS="hermes:tok-for-bridge"On the Hermes side the bridge is a peer with
auth: { type: bearer, token: "tok-for-bridge" }.
- Outbound, a token goes only to the peer it is configured for. A URL key
matches that origin (scheme, host and port) and path prefix; a path-scoped
key is not sent to a path with
..,.,//,\or an encoded separator such as%2Fin it. A name key matches thenamein the Agent Card fetched frompeer_urlexactly (case-sensitive), and the token goes only to thatpeer_url's origin. When both match, the URL key wins. A name key trusts the name the peer chose for itself, so give a peer on another machine a URL key. A key without a scheme is a name, so write URLs withhttps://; the startup log lists every URL key and name key, never the tokens. - A token is never sent over plain HTTP to a host that is not loopback. A URL key like that stops the bridge at startup, and a call that would send one fails with an error that says why. A redirect is followed with a token only when the original request already carried that same token on the same origin. A redirect toward any other configured token (another peer, or another path scope on the same gateway) is refused, so no peer can bounce a call there and have it carry the token. A redirect to a place with no token is followed and carries none. A peer whose Agent Card sends the calls to another origin is refused with an error saying so, instead of being called without its token.
- Inbound, a request without a valid token gets
401withWWW-Authenticate: Bearer, and the bridge logs a warning (at most one a minute) with the caller's address, the path and the reason. The Agent Card and/healthzstay open, and/metricsneeds a token. The card lists the bearer scheme insecuritySchemes. The token's name reaches the agent asauthName, next to thefromthe sender writes itself:a2a_inboxreturns both, the prompt hook showsfrom `alice` (claimed) · token `hermes`, theon-inbounduser hook getsA2A_EVENT_AUTH_NAME, andA2A_RESPONDERlabels both in its prompt. - Once a bridge sets
A2A_AUTH_TOKENS, every other a2abridge that calls it needs anA2A_PEER_TOKENSentry for it. - With mTLS federation on, a request needs a valid client certificate and a valid token.
- A malformed entry, a duplicate peer key, one token under two names, a token
with whitespace in it (a
#comment must take a whole line), an unreadable file, a variable set together with its_FILEtwin, or a token variable that is set but empty (a secret missing at deploy time) stops the bridge at startup; to turn tokens off, leave the variables unset. Errors name the entry, never the token, and tokens never reach the log. The bridge drops both token variables from its environment once read, so the responder'sclaude/codexand the user hooks do not inherit them.
The hardest thing to internalise is when peers see messages. Here's the model in 5 lines:
- Peer A calls
a2a_send_message peer_url=<B>— B's bridge opens aworkingtask and queues the message in B's inbox file (./.a2a/inbox.json). - B's UserPromptSubmit hook reads the inbox on B's next prompt from the human user — and prepends it to the system prompt.
- B answers the human. Within that turn (or the next) B can call
a2a_complete_task task_id=...to reply to A. - B's task becomes
completedwith the reply as an artifact. A's bridge sees it instantly through itsSubscribeToTaskstream (or, fallback, the 5-second poller). - A gets a synthetic message in its inbox: "ОТВЕТ от B на твой вопрос «...»" — which prints on A's next prompt the same way.
So end-to-end latency is one prompt from the recipient + one from
the sender to see the reply. That is the same delay you'd have over
DM with a colleague — by default the bridge doesn't wake idle agents, it just
makes sure neither side misses the message. A2A_NUDGE changes that; see
Waking an idle Claude Code session.
One message per task: a task stays working until its reply, and A2A 1.0
rejects another message to a task that is still being worked on. To continue a
conversation, send a new message with the same context_id; pass task_id
only for a task that asked for input.
The inbox file is a durable snapshot: a bridge restart restores messages that
were not drained yet, a redelivered message with the same messageId is queued
once, and past 500 entries the oldest are dropped. One-shot reply notifications
age out two minutes after delivery, also across a restart.
With A2A_NUDGE=channel the bridge pushes every incoming message, and every
reply to a task you sent, straight into the running Claude Code session as a
channel event. An idle
session wakes up and answers with a2a_complete_task, and nobody has to type
into the terminal. The message also stays in the inbox, so the prompt hook
still shows it if the event never arrives.
Channels are a Claude Code research preview. They need a claude.ai login or
a Console API key (not Amazon Bedrock, Google Cloud or Microsoft Foundry), an
organization whose channelsEnabled policy allows them, and two things on
your side:
-
The server is in
.mcp.jsonor the user config (~/.claude.json, asa2abridge installwrites it). Claude Code's channel lookup does not find a server passed with--mcp-config("no MCP server configured with that name"). -
Claude Code is started with the development flag, naming the server as it is called in that config:
claude --dangerously-load-development-channels server:a2a
Until a2abridge is on Anthropic's channel allowlist this flag is required, and Claude Code shows a confirmation screen at every launch.
Each event carries task_id, context_id, claimed_from and, for a reply to
your own task, kind="outgoing-reply". claimed_from is the name the sender
gave itself; it is not verified, and the MCP instructions tell Claude so. With
federation TLS on, the event also carries peer_cert, the name in the
sender's verified client certificate; replies to your own tasks never carry it.
With bearer tokens on (A2A_AUTH_TOKENS), it carries auth_name, the name of
the token the sender authenticated with.
In this mode the bridge offers MCP protocol versions up to 2025-11-25 only. Claude Code does not deliver channel events on a connection that negotiated the 2026-07-28 revision. Other modes are unaffected.
Claude Code does not confirm that it registered a channel, so the bridge
cannot detect a session that was started without the flag. It writes one
warning to ./.a2a/bridge.log with the first event, and another if the
client is not Claude Code or uses the 2026-07-28 revision. A message that
arrives before Claude Code has connected is not pushed; it waits in the inbox
for the prompt hook. A2A_RESPONDER takes precedence over A2A_NUDGE, so
leave it unset in this mode.
a2abridge doctorOutput is a table of checks, each PASS/WARN/FAIL with a fix hint. Typical failures:
- directory not running →
a2abridge service start - port 7777 in use →
a2abridge service uninstall && a2abridge service install --addr 127.0.0.1:7778 && a2abridge install --apply --directory http://127.0.0.1:7778 - IDE config missing the MCP block → re-run
a2abridge install --ide claude-code --apply - inbox stale →
rm ./.a2a/inbox.json(the bridge rebuilds it on the next message) - a bridge exits right after start with
port already held by another bridge, deferring→ another bridge already serves this agent on that address; exactly one bridge runs per agent, and a bridge shuts down when its MCP host exits - two Claude windows clobbering each other in the directory → set distinct
A2A_IDenv per window
Logs:
- macOS:
~/Library/Logs/a2abridge/directory.log - Linux:
journalctl --user -u a2abridge-directory.service - Windows:
Get-EventLog -LogName Application -Source a2abridge-directory - Per-bridge:
./.a2a/bridge.log
Metrics: the directory and every bridge serve Prometheus metrics at /metrics.
| Platform | Service supervisor | Tested |
|---|---|---|
| macOS 13+ (Intel and Apple Silicon) | launchd | yes |
| Ubuntu 22.04+ / Debian 12+ / Fedora 40+ | systemd --user | yes |
| Arch / openSUSE / RHEL 9+ | systemd --user | best-effort |
| Windows 11 | Windows Service Manager | yes |
WSL2 (Ubuntu) with systemd=true |
systemd --user inside WSL | yes |
| WSL2 without systemd | Windows-side service + wsl.exe shim |
yes |
| AI agent | MCP integration | Verified |
|---|---|---|
| Claude Code | ~/.claude.json (hooks in ~/.claude/settings.json) |
yes |
| Codex CLI | ~/.codex/config.toml |
yes |
| Cline (VS Code) | <vs-code-globalStorage>/saoudrizwan.claude-dev/settings/cline_mcp_settings.json |
yes |
| Continue | ~/.continue/mcpServers/a2a.yaml |
yes |
| Cursor | ~/.cursor/mcp.json |
yes |
| Gemini CLI | ~/.gemini/settings.json |
yes |
| Antigravity CLI | ~/.gemini/config/mcp_config.json |
best-effort |
| Aider | aider.conf.yml (bridge mode) |
best-effort |
| Any A2A 1.0 peer | direct JSON-RPC | yes |
- Loopback by default. Directory and bridges bind
127.0.0.1. Other users on the machine cannot see your peers. - PII / secret screen before
a2a_send_message: 11 regex detectors (AWS access key, GitHub PAT, Anthropic / OpenAI / Google / Stripe / Slack tokens, JWT, PEM private keys, ...). Matches are replaced with[REDACTED:<name>]and surfaced in MCP metadata. The message still goes through with redacted text — the secret never leaves the bridge. - Push-notification webhooks receive the client's
A2A-Notification-Token. With federation TLS on, webhook URLs that resolve to loopback, private or link-local addresses are refused (A2A_PUSH_ALLOW_PRIVATE=1opts out). - mTLS + ed25519 federation (opt-in cross-machine): set
A2A_TLS_CERT,A2A_TLS_KEY,A2A_TRUST_ROOTS,A2A_PEER_ALLOWand the bridge serves over TLS 1.3 with required client certs and an allow-list match on peer CN/SAN.A2A_TRUST_ROOTSis mandatory once cert/key are set — the bridge refuses to start without it (no silent fallback to the system pool). Keys are generated bya2abridge cert generate. - Bearer tokens (opt-in, for agents without client certificates such as Hermes):
A2A_AUTH_TOKENSmakes every route except the Agent Card and/healthzrequire a token, compared in constant time;A2A_PEER_TOKENSsends a token only to the peer it names, never over plain HTTP off loopback and never across a redirect to another host. See Bearer tokens. - Verified releases. Every GitHub release ships a
checksums.txt;a2abridge updateand theinstall.sh/install.ps1scripts verify the binary's SHA256 against it before swapping anything in. - User hook scripts: drop
~/.a2abridge/hooks/{on-inbound,on-outgoing-reply}.sh(or.ps1/.cmdon Windows) and the bridge fires them on every inbound message and outbound reply (5-second timeout, JSON on stdin, fields inA2A_EVENT_*env vars). - No telemetry. Period.
- Single binary with subcommands (directory, bridge, install, uninstall, update, service, doctor, cert, completion)
-
kardianos/servicecross-platform supervisor (launchd · systemd-user · Windows Service · WSL2) -
a2abridge installwith auto-detection of 6 IDEs and.bakbackups -
install.sh+install.ps1one-line installers -
a2abridge doctor— 9-check health audit - Project-local
./.a2a/state with~/.a2abridge/state/<ppid>fallback - Skill
a2a-bridge+ UserPromptSubmit hook shipped via installer - SSE fast-path for outbound replies (
SubscribeToTask) with polling fallback - PII / secret screen before send (11 regex detectors)
- User hook scripts on
on-inbound/on-outgoing-reply - Push Notifications per A2A 1.0 §9.5 (4 RPC methods + webhook delivery)
- HTTP+JSON API (the non-spec routes were replaced by the official A2A 1.0 HTTP+JSON binding in v4.0.0)
- mTLS + ed25519 federation (opt-in cross-machine)
-
a2abridge cert generatefor ed25519 self-signed cert/key - Self-update + uninstall + shell completion
- 35 test cases under
-race, GitHub Actions test + release matrix
- mDNS / DNS-SD cross-machine discovery (
A2A_MDNS=1) -
a2abridge service install --federationone-step cert + service install - Push notification retry with exponential backoff (5xx + network errors)
-
a2abridge worker {start|stop|status|attach}— always-online Claude in detached tmux - Integration docs for Google ADK 1.0, LangGraph, CrewAI, LlamaIndex Agents — see docs/integrations/
- gRPC binding per A2A 1.0 §7.2 (deferred — needs
protoctoolchain in CI) - Enterprise SSO / SCIM for the directory in multi-team installs
- Signed-manifest WAN discovery (alternative to mDNS for cross-internet peers)
Does this require an Anthropic / OpenAI API key? No. Each peer is whatever LLM your IDE is already using on its own subscription. a2abridge is just the wire between them — it never calls an LLM API itself.
How many tokens does this burn?
Zero on its own. The bridge does HTTP, not LLM calls. Your IDE pays for
the prompts it generates when it decides to use a2a_* tools — same
billing as any other tool call.
What if I already have other MCP servers in my Claude config?
The installer merges the a2a entry into the existing mcpServers
map without disturbing anything else, and creates a .bak.<timestamp>
of the original file. Run a2abridge install --dry-run to preview.
Does it work over a corporate VPN / behind a proxy? Single-machine setup is loopback-only — no proxy involved. Cross-machine mode (mTLS) goes over plain HTTPS, so any proxy that lets you reach a peer's IP and port works. mDNS won't traverse most VPNs — use the directory daemon over an internet-reachable IP instead.
Does it leak my code / messages anywhere?
No telemetry, no third-party calls. Default loopback bind is 127.0.0.1
— other users on the machine cannot see your peers. Outbound messages
pass through an 11-pattern PII screen that strips AWS / GitHub / API
keys / JWTs / PEM blocks before they leave the bridge.
Can I disable the auto-injecting hook?
Yes. Either delete ~/.claude/hooks/a2a-inbox-hook.sh, or remove the
hooks.UserPromptSubmit block from ~/.claude/settings.json, or run
a2abridge uninstall --keep-service (preserves the directory daemon
but rolls back the hook + skill + IDE configs).
Why is my second Claude window invisible to peers?
Both windows share the same default A2A_ID, so the second one
overwrites the first in the directory. Set distinct A2A_ID /
A2A_NAME per window — see Per-agent setup notes.
Does Cline / Continue / Cursor really work?
Yes — they all support MCP stdio servers with the same mcpServers
shape. The installer writes the right path for each one. Run
a2abridge doctor to confirm.
What happens if the directory daemon crashes?
Bridges keep running; they just lose discovery for new peers. Existing
peer_url references still work (they're cached in the inbox / task
metadata). When the daemon comes back, bridges auto-re-register on
their next 30-second heartbeat. If you're running cross-machine with
mDNS, peers keep finding each other directly via DNS-SD even with the
daemon down.
Why JSON-RPC and HTTP+JSON, not gRPC? Both work in every browser fetch / cURL script and keep gRPC out of the binary. The gRPC binding is on the roadmap — open an issue if you'd use it, otherwise we skip it.
Issues and PRs welcome. The code base is small (~2k LOC of Go) and the spec is fixed, so contributions are easy to scope.
git clone https://github.com/vbcherepanov/a2abridge
cd a2abridge
go test ./...
go build ./cmd/a2abridge
./a2abridge doctorConventional Commits, English subjects, no AI co-authors.
a2abridge is implemented against A2A Protocol Specification 1.0 on top of the official a2a-go SDK (v2):
- Agent Card on
/.well-known/agent-card.jsonlisting both bindings insupportedInterfaces(protocolVersion1.0) - JSON-RPC 2.0 binding at
POST /:SendMessage,SendStreamingMessage,GetTask,ListTasks,CancelTask,SubscribeToTask,CreateTaskPushNotificationConfig,GetTaskPushNotificationConfig,ListTaskPushNotificationConfigs,DeleteTaskPushNotificationConfig,GetExtendedAgentCard - HTTP+JSON binding:
POST /message:send,POST /message:stream,GET /tasks,GET /tasks/{id},POST /tasks/{id}:cancel,POST /tasks/{id}:subscribe,/tasks/{id}/pushNotificationConfigs[/{configId}],GET /extendedAgentCard - TaskState values
TASK_STATE_SUBMITTED,TASK_STATE_WORKING,TASK_STATE_COMPLETED,TASK_STATE_FAILED,TASK_STATE_CANCELED,TASK_STATE_REJECTED,TASK_STATE_INPUT_REQUIRED,TASK_STATE_AUTH_REQUIRED; rolesROLE_USER/ROLE_AGENT - Message / Part / Artifact with the 1.0 Part union (
text,raw,url,data) - Stream responses:
task | message | statusUpdate | artifactUpdate - Error codes (
-32001 TaskNotFound,-32002 TaskNotCancelable,-32003 PushNotificationNotSupported,-32004 UnsupportedOperation, ...) - Header
A2A-Version: 1.0 - Push notifications: every task event is delivered to registered webhooks with
A2A-Notification-Token, bounded retries and an SSRF guard - mTLS server/client auth with ed25519 cert generation
Measured against the official A2A TCK and the official Python SDK: docs/conformance.md.
Upgrading from 3.x: 4.0 bridges speak only the A2A 1.0 wire format. The /v1/ REST routes, the pre-1.0 method names (message/send, a2a.SendMessage, ...) and the /.well-known/a2a card path are gone; upgrade every bridge on the mesh together. a2abridge update and install.sh install the latest release, so they move a 3.x bridge to 4.0; on a mesh that cannot upgrade at once, stay on 3.x with a2abridge update --version v3.1.0 or A2A_VERSION=v3.1.0 for install.sh.
Not yet implemented: gRPC binding.
a2abridge is MIT-licensed and free, but it's also a one-developer project that runs on weekends. If it saves you copy-paste between agents, consider chipping in:
- 💛 GitHub Sponsors — recurring or one-off, GitHub-native
- 💸 PayPal — one-shot donations
Sponsors get their name in the repo README and direct line for
feature requests.
MIT. See LICENSE.
Built on the open work of:
- Linux Foundation A2A project — protocol specification
mark3labs/mcp-go— MCP server SDKkardianos/service— cross-platform service supervisorgoogle/uuid