Advertisement

Lightning Labs Launches Site for L402 Bitcoin Agent Payments

The protocol, which lets AI agents pay Lightning invoices to access API endpoints, already runs inside Lightning Loop; the new site is the launch.
Lightning Labs Launches Site for L402 Bitcoin Agent Payments

Lightning Labs, the company behind Lightning Network developer tools, announced a dedicated website for L402 on Wednesday, positioning the protocol as a rail for AI agents to pay in bitcoin.

"With L402, agents can pay with bitcoin and natively authenticate. No accounts, no intermediaries, no humans involved," the company said in the post, describing L402 as "the protocol for machine-to-machine commerce on Lightning."

What is new is the site, not the protocol. L402, the Lightning HTTP 402 protocol, already exists in Lightning Labs' stack. Aperture, an implementation of the standard, "is used today by Lightning Loop, a non-custodial swap service for Bitcoin and Lightning," according to the company's documentation.

Built for AI Agents

L402 is "the standard for selling and buying digital resources" that "allows services to charge for API endpoints in a way that is easy for AI agents to participate," the documentation states.

The mechanism reuses HTTP's 402 status code. When a client requests a gated endpoint, "the server responds with HTTP 402 Payment Required and a WWW-Authenticate header containing a token and a Lightning invoice," and the token contains the invoice's payment hash, the documentation says.

The client pays the invoice, then presents the token together with the payment preimage to access the endpoint. The server verifies both without querying a payment database, a property Lightning Labs calls stateless verification.

The launch lands as several firms build payment tooling aimed at autonomous software agents rather than human users. Coinbase's x402 protocol, which uses the same HTTP status code on Ethereum-based rails, moved to the Linux Foundation with backing from Google, Stripe, and Visa, and Visa has released a command-line payment tool for AI agents. L402 routes those payments over Bitcoin's Lightning Network instead.

Advertisement

Get an edge in Crypto with our free daily newsletter

Know what matters in Crypto and Web3 with The Defiant Daily newsletter, Mon to Fri

90k+ Defiers informed every day. Unsubscribe anytime.