Hyperswarm integration is coming soon. This page describes the architecture and why it matters for agent-to-agent payments.
What is Hyperswarm
Hyperswarm is a peer-to-peer networking stack built by Holepunch. It provides two primitives:- Distributed Hash Table (DHT) for peer discovery: find other nodes by topic without a central server
- Encrypted connections between peers: once discovered, nodes communicate over authenticated, encrypted streams
Why Hyperswarm matters for x402
Today, x402 payments flow through HTTP: a buyer makes a request to a server URL, gets a 402 response, signs a payment, and retries. This works, but it assumes the buyer already knows the serverโs URL, which means centralized discovery (DNS, API registries, hardcoded endpoints). Hyperswarm removes this assumption entirely. Peer-to-peer service discovery. Instead of looking upapi.example.com, an agent joins a topic on the DHT. Every other agent on that topic is a potential counterparty. No DNS, no registry, no single point of failure.
Peer-to-peer transport. Instead of routing x402 requests through HTTP to a centralized server, agents exchange payment messages directly over encrypted Hyperswarm connections. The x402 protocol works the same, 402 challenge, signed authorization, settlement, but the transport is a direct peer stream instead of an HTTP round-trip.
No infrastructure dependency. An agent running a local WDK wallet, connecting to peers via Hyperswarm, and settling payments on chain has zero dependency on any centralized service. It discovers peers, negotiates prices, signs payments, and settles on-chain.
Agent-to-agent payments
This is where the architecture converges. Combine:- WDK โ self-custodial wallets, local key management, no API dependency
- Hyperswarm โ peer discovery and encrypted transport, no server dependency
- x402 on Plasma/Stable โ near-instant USDโฎ settlement, no gas token management
QVAC
QVAC is Tetherโs local AI runtime: models that run on-device, privately, without cloud dependencies. QVAC is built on Pear, Holepunchโs peer-to-peer application platform, which uses Hyperswarm for networking. The combination means an agent can run inference locally (QVAC), manage its own wallet (WDK), discover peers (Hyperswarm), and settle payments (x402 on Plasma/Stable), with no centralized service in the loop at any layer.Whatโs coming
Semantic is building Hyperswarm transport support for x402. This will include:- Hyperswarm transport adapter for x402 โ same protocol, peer-to-peer delivery
- Topic-based service discovery โ agents publish and discover paid services on DHT topics
- Reference implementations โ buyer and seller agents using Hyperswarm + WDK + x402
Next steps
- Hyperswarm docs โ Networking primitives
- Pear docs โ P2P application platform
- QVAC โ Tetherโs local AI runtime
- WDK integration โ Self-custodial wallets for agents
