Today we're announcing pi402!
Pay for AI inference directly with your coding agent. Instant on Lightning. No accounts, API keys, or cards needed.
Inference 🤝 Bitcoin
Learn more: https://t.co/QkpGvYVtl2
I just took an hour to go update all the things. Anything running with any real value on it stays at the latest and greatest version.
Please update all your things, regularly.
What does Wavelength do? How does Ark work? How is it interoperable with Lightning? How does this make Lightning easier?
If you'd like the answer to these questions explained via pretty diagrams, join my workshop tomorrow morning @tabconf
Keeping an eye on the #LightningNetwork? Us too.
We’re building a daily report that goes beyond a snapshot: channel trends, capacity, decentralization, and what they mean.
Building on #Bitcoin Lightning? Watch this space.
I sitting at a cafe, highly caffeinated, building my TABConf Wavelength workshop! If you might attend, tell me which way should I go with this? Which would you rather….
It’s time for another round of “what’s the difference between L402 & x402”? I think of it like this…
L402 is a bearer token while x402 is a process.
Let’s look at the example of an agent paying for an API endpoint.
L402 is an access token that includes proof of payment. An agent shows up to an API endpoint looking for some data. The service returns a bearer token with a Lightning invoice. The agent pays that invoice, receives the preimage as proof of payment and adds that preimage to the token, making an L402. The agent then returns to the server to access the data in that API endpoint presenting the L402 to get instant access. But wait, there’s more. As this is a bearer token, an agent can also attenuate that token and sell it, or pass it along to sub-agents, etc. Lots of options. No identity needed, no need for the server to hold on to user data.
x402 is a process that focuses more on the broader crypto ecosystem. An agent shows up to that same API endpoint. The server responds with a 402 Payment Required. No bearer token, just payment requirements: how much, in what currency, on which network. The agent creates a payment payload (say, USDC on Base, or now Bitcoin Lightning too), and retries the exact same request with proof of payment attached. A facilitator verifies the proof and the server delivers the data. But the agent doesn't walk away with anything reusable. No token to pass to a sub-agent, no attenuation, no credential. Next time it needs that data, it pays again via the same process.
L402 is a protocol that was created by Lightning Labs in 2020.
x402 is a protocol that was created by Coinbase in 2025.
Look, I just really like my outfit in this photo... aren't those shoes great?!
But my excuse for this bit of vanity is that I am again reminding you that @SanJuanBitdevs is tonight! And at Ralf's of course!