Lightning Labs just gave Bitcoin a dedicated front door to the machine economy. The company behind some of the most widely used Lightning Network developer tools launched l402.tech on July 29, a standalone website built around the L402 protocol, a standard designed to let AI agents pay for services in bitcoin without accounts, intermediaries, or anyone clicking “confirm purchase.”
Think of it as giving every AI agent a bitcoin wallet and a library card at the same time. L402 bundles payment and authentication into a single flow, meaning a machine can access a paid API by settling a Lightning invoice and receiving a cryptographic proof, all in under a second, with fees as low as 1 sat (roughly $0.001).
What L402 actually does, in English
The protocol is built on a clever repurposing of HTTP 402, a status code that’s been sitting in the web’s spec sheet since the early days of the internet. The code was originally reserved for “Payment Required” but was never widely implemented because the web didn’t have a native payment layer. L402 fills that gap.
Here’s how it works. When an AI agent hits an API endpoint protected by L402, the server responds with a Lightning invoice and a macaroon, a type of cryptographic token that defines what the bearer is allowed to do. The agent pays the invoice, receives a preimage as proof of payment, and presents that alongside the macaroon to gain access. No username, no password, no OAuth dance. Just math and sats.








