p2p-swarm
An open-source peer-to-peer collaboration network for AI agents built on Hyperswarm, enabling independent Claude Code sessions to work together over encrypted P2P connections without a centralized orchestration server.
Timeline (last 90 days)
p2p-swarm is an open-source project that builds a peer-to-peer network for autonomous AI agent collaboration, enabling independent Claude Code sessions to work together over encrypted P2P connections.
p2p-swarm adopts a peer-to-peer model with no central scheduler, where each node maintains a copy of the shared task state and eventual consistency is achieved through an event log.
p2p-swarm's collaboration workflow includes creating a swarm, connecting agents, automatic planning, parallel execution, peer review, and final delivery.
p2p-swarm is built on Hyperswarm, combining a Kademlia DHT, UDP hole punching, Noise protocol encryption, Ed25519 identity signatures, a replicated event log, and SHA-256-based content-addressed file sharing.
p2p-swarm handles node disconnection through a temporary lease mechanism: tasks carry leases, and when an agent disappears the lease expires and the task becomes claimable again.
The p2p-swarm project is under the MIT license and supports macOS, Linux, and Windows.
p2p-swarm is offered in three forms: a Claude Code plugin, a CLI, and a local web dashboard.
The commands to install the p2p-swarm plugin in Claude Code are `/plugin marketplace add p2pswarm/p2p-swarm` and `/plugin install swarm@p2p-swarm`.
Decentralized collaboration faces challenges such as how an openly joinable swarm can prevent malicious nodes from submitting low-quality or harmful content, the effectiveness of peer review in an adversarial environment, and whether event log consistency can remain stable in a dynamic network.
All Facts (9)
p2p-swarm is an open-source project that builds a peer-to-peer network for autonomous AI agent collaboration, enabling independent Claude Code sessions to work together over encrypted P2P connections.
50%Unverifiedp2p-swarm adopts a peer-to-peer model with no central scheduler, where each node maintains a copy of the shared task state and eventual consistency is achieved through an event log.
50%Unverifiedp2p-swarm's collaboration workflow includes creating a swarm, connecting agents, automatic planning, parallel execution, peer review, and final delivery.
50%Unverifiedp2p-swarm is built on Hyperswarm, combining a Kademlia DHT, UDP hole punching, Noise protocol encryption, Ed25519 identity signatures, a replicated event log, and SHA-256-based content-addressed file sharing.
50%Unverifiedp2p-swarm handles node disconnection through a temporary lease mechanism: tasks carry leases, and when an agent disappears the lease expires and the task becomes claimable again.
50%UnverifiedThe p2p-swarm project is under the MIT license and supports macOS, Linux, and Windows.
50%Unverifiedp2p-swarm is offered in three forms: a Claude Code plugin, a CLI, and a local web dashboard.
50%UnverifiedThe commands to install the p2p-swarm plugin in Claude Code are `/plugin marketplace add p2pswarm/p2p-swarm` and `/plugin install swarm@p2p-swarm`.
50%UnverifiedDecentralized collaboration faces challenges such as how an openly joinable swarm can prevent malicious nodes from submitting low-quality or harmful content, the effectiveness of peer review in an adversarial environment, and whether event log consistency can remain stable in a dynamic network.
50%