AgentBridge

AgentBridge is the agent interconnect over A2A. It wraps a CLI coding
agent — Claude Code, Copilot, Codex, Cursor Agent, Goose, opencode, or any
stdio command — as a DID-signed A2A listener, and lets agents on this host
and on other hosts delegate, hand off, and coordinate work.
A2A is the wire protocol: SLIMRPC, gRPC, JSON-RPC, or HTTP+JSON. SLIM carries
it between hosts, with authenticated peers and group encryption. AgentBridge
adds the adapter layer that turns a terminal coding agent into a peer on that
network, and the coordination runtime that drives multi-round work across
several of them.
Why this repo
For teams that already run coding agents in a terminal and want them to reach
each other — on the same machine or across a network — over a protocol rather
than ad-hoc pipes.
- Expose a local coding agent as an addressable, identity-verified A2A peer.
- Delegate a single task to an agent that is not on this host.
- Hand off accumulated context from one agent to another.
- Run autonomous multi-round coordination across a group of agents.
- Discover peers through the Agent Directory, or just list what is local.
What you get
agentbridge is the CLI:
| Command | What it does |
|---|
register | Wrap a CLI tool as a DID-signed A2A listener and start it. |
list | Show adapters in the Agent Directory, or on this machine. |
delegate | Send one task to a remote adapter over A2A/SLIM. |
handoff | Move context from one CLI tool to another. |
coordinate | Run autonomous multi-round coordination toward a goal. |
request-invite | Ask a channel's owner for admission to the channel. |
slim | Run a native SLIM node and drive its controller API. |
dir | Log in to, pull from, search and verify records in the Agent Directory. |
The crates behind it:
agntcy-agentbridge — the bridge itself: CLI
adapters, the A2A listener, the task store, and the local and Agent
Directory registries.
agntcy-agentbridge-mas — the
coordination runtime: epochs, event discipline, finalization, the ASSEMBLY
and CONVERGE phases, and the class engines.
agntcy-agentbridge-a2a — A2A channels over
SLIMRPC, gRPC, JSON-RPC and HTTP+JSON, including secure group messaging.
agntcy-agentbridge-transport-slim —
SLIM transport integration and the stdio bridge.
Identity, secrets, credentials and telemetry come from the published
agntcy-polis-* crates (polis).
Install the CLI
This repository builds, signs and publishes the agentbridge archives, the
Homebrew formula and the WinGet manifest.
On macOS:
brew tap agntcy/agentbridge https://github.com/agntcy/agentbridge
brew install agntcy/agentbridge/agentbridge
On Windows, once the matching WinGet manifest has landed in the default source:
winget install --id AGNTCY.agentbridge -e
winget upgrade --id AGNTCY.agentbridge -e
The formula installs the signed archive from the published agntcy-agentbridge-cli
release, which also carries prebuilt archives for Linux (x86_64 and aarch64), macOS
(arm64 and x86_64) and Windows (x86_64), each with a SHA-256 checksum, a
Sigstore bundle and a build-provenance attestation. There is no install script:
on Linux take the archive from the release or build from source.
For unreleased changes or any other host, build from source with
cargo build --release -p agntcy-agentbridge-cli; the binary lands at
target/release/agentbridge.
Quick start
With the released agentbridge on your PATH, run the one-command demo from a
clone of this repository:
git clone https://github.com/agntcy/agentbridge && cd agentbridge
bash docs/content/demos/run-demo.sh
It starts a local SLIM node, forms a group of five DID-identified members and
has them exchange an A2A roll call. With shadictl installed it then
delegates real tasks to the claude-code, codex, copilot and cursor-agent CLIs
on your machine, so those must be installed and signed in. See the
walkthrough.
Learn more
Contributing
See CONTRIBUTING.md, CODE_OF_CONDUCT.md, and SECURITY.md.
License
See LICENSE.md.