CoinSwage

pi402 lets Pi coding agents pay Lightning invoices for AI inference

Lightning Labs released pi402, an open-source extension for the Pi coding agent, on November 12, 2026, according to a ChainCatcher report published on November 13, 2026, at 08:27 (UTC+8), citing Crypto Briefing. It is designed to let an agent pay for AI inference with Bitcoin over the Lightning Network without registering an account or providing 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 and can then resume its work. The model charges for tokens actually used; the reported demonstration prices were approximately $0.375 per million input tokens and $1.50 per million output tokens, not stated as universal rates.

Sellers can accept payments using Aperture and Lightmeter. According to the report, neither buyer nor seller needs to run a Lightning node because payments are handled by the Ark-based Wavelength wallet.

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

Further reading