Lightning Labs Releases pi402 So AI Coding Agents Can Pay for Inference in Bitcoin
Layer 2Adoption
Neutral

Lightning Labs Releases pi402 So AI Coding Agents Can Pay for Inference in Bitcoin

Lightning Labs released pi402, an open-source extension for the Pi coding agent that lets software pay per token for inference over the Bitcoin Lightning Network. The tool requires no accounts, API keys, or cards, and is built on the L402 protocol.

Nov 13, 2026, 10:58 AM3 min read

Written by CoinArticle’s AI Newsroom · from 2 cited sources. How we work

What Lightning Labs Released

Lightning Labs released pi402 on November 12, 2026, an open-source extension for the Pi coding agent that lets the agent pay for its own inference in bitcoin over the Lightning Network. According to Crypto Briefing, the tool requires no account signup, API key, or credit card: the agent receives a price, pays a Lightning invoice, and continues its task.

The tool targets a gap that Crypto Briefing describes as a growing problem. Software agents increasingly need to buy compute, but most compute vendors still assume a human controls the payment method. Bitcoinist frames the release as part of a broader push to let autonomous software transact without human intervention.

How the L402 Payment Flow Works

The underlying engine is L402, a protocol Lightning Labs has been developing for some time. It combines the HTTP 402 "Payment Required" status code with a Lightning invoice. When an agent requests a paid endpoint, the server returns a 402 response with an invoice attached. The agent pays it, and the payment settles over Lightning.

Authentication runs through macaroons, a type of credential token. The result is per-request, pay-per-token billing rather than a monthly plan or prepaid balance. Once configured, Crypto Briefing reports that no human needs to intervene in the purchase loop.

Seller Side and Wallet Infrastructure

Sellers accept payments through two Lightning Labs tools. Aperture is an L402 reverse proxy that enforces pay-first access before requests reach the backend. Lightmeter works alongside it to meter usage and collect payments, allowing a provider to charge for access to an OpenAI-compatible inference endpoint.

Neither buyers nor sellers need to run a Lightning node or manage payment channels. Crypto Briefing says the Wavelength wallet handles this. Wavelength is built on Ark and moves funds automatically between Ark and Lightning. Wavelength went live on mainnet in October 2026.

Pricing and the Demo Figures

Crypto Briefing cites demo pricing of approximately $0.375 per million input tokens and $1.50 per million output tokens. Neither source in this set reports a live market price for these figures or a fiat-denominated conversion at launch, and the figures are described as demo pricing rather than a standing rate card.

Lightning Labs' 2026 Release Sequence

Crypto Briefing places pi402 at the end of a run of 2026 releases from Lightning Labs. In February the company launched agent tooling for software that interacts with Lightning payments. In October, Wavelength went live on mainnet. Crypto Briefing characterizes pi402 as the step that packages these pieces into a concrete use case, purchasing inference.

Open Questions

The two sources describe the release consistently on its core mechanics. Bitcoinist's coverage is a short excerpt and adds framing about Bitcoin's entry into the AI economy without independent detail on pricing or adoption. Neither source reports usage figures, number of live sellers, or third-party audits of the software.

Why It Matters

For Traders

Pi402 is a product launch with demo pricing and no reported usage data, so it is unlikely to move bitcoin prices in the next 24-72 hours.

For Investors

If AI agents become sustained buyers of Lightning-based compute, it could create a new category of machine-driven bitcoin payment demand worth tracking over several quarters.

For Builders

Developers serving inference endpoints can evaluate L402 with Aperture and Lightmeter as a pay-per-request alternative to API keys and subscriptions.

This article is for information only and is not financial advice. Read the full disclaimer.

Live prices:Bitcoin

Related Articles

Latest News