cd /news/ai-agents/show-hn-p2p-poc-of-the-acp-for-decen… · home topics ai-agents article
[ARTICLE · art-17084] src=github.com pub= topic=ai-agents verified=true sentiment=· neutral

Show HN: P2P (POC) of the ACP for decentralized agent communication

A developer released a peer-to-peer implementation of the Agent Client Protocol (ACP) for decentralized agent communication, built with libp2p and Rust. The open-source tool enables agents to discover each other, route messages by capability tags, and broadcast queries across a mesh network without a central server.

read1 min publishedMay 29, 2026

a peer-to-peer implementation of the Agent Client Protocol (ACP) for decentralized agent communication.

git clone --depth 1 https://github.com/skorotkiewicz/acp-p2p
cd acp-p2p

cargo build --release --features acp
just build-all
./target/release/agent --alias alice --caps rust,math

examples #

just run --peer /ip4/127.0.0.1/tcp/12345/p2p/<peer-id> --alias alice

just run --ephemeral --alias test

just run --no-mdns --alias isolated

just run --listen /ip4/0.0.0.0/tcp/9000

the agent is configured via command-line arguments:

--alias <name>

  • human-readable alias for this agent--caps <list>

  • comma-separated capability tags (e.g. rust,math,python)--peer <multiaddr>

  • peer multiaddr to connect to at startup--ephemeral

  • generate a new in-memory identity (don't persist)--no-mdns

  • disable automatic peer discovery--listen <multiaddr>

  • custom listen address (can be repeated)

once running, the agent accepts interactive commands:

ask <question>

  • broadcast a question to all peersask --caps rust,math <question>

  • ask agents with specific capabilitiesask @rust,math <question>

  • short form for capability routingacp <method> <json-params>

  • broadcast ACP JSON-RPC payload (requires acp feature)dial <multiaddr>

  • manually connect to a peerpeers

  • list known peersquit

  • exit the mesh

features #

  • peer-to-peer networking using libp2p
  • agent client protocol (ACP) implementation
  • support for gossipsub messaging
  • automatic peer discovery via mDNS
  • async runtime with Tokio
  • command-line interface with clap

contributions are welcome! please feel free to submit a pull request.

MIT license

── more in #ai-agents 4 stories · sorted by recency
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/show-hn-p2p-poc-of-t…] indexed:0 read:1min 2026-05-29 ·