CoinSwage

Lightning Labs’ pi402 lets Pi coding agents pay for inference over Lightning

Originally reported by PANews on November 13, 2026, at 08:26 (UTC+8), citing Crypto Briefing.

Lightning Labs released pi402, an open-source extension for Pi coding agents, on November 12, 2026. It lets an agent pay for its inference usage with Bitcoin over the Lightning Network, without registering an account or supplying an API key or credit card.

The payment flow starts when the agent encounters a price. Built on the L402 protocol, pi402 pairs an HTTP 402 “Payment Required” response with a Lightning invoice. The agent pays the invoice, then resumes its work. According to the report, this supports billing by the token, so the agent pays for what it uses.

Sellers can accept payments using Aperture and Lightmeter. The report says neither buyer nor seller needs to run a Lightning node: an Ark-based Wavelength wallet handles the payment.

Source: panewslab.com (originally published 2026-11-13 08:26 UTC+8)

Further reading