L402 is a standard to support the authentication and payment of services over the internet. Built with a focus on agentic commerce, optimized for machine-to-machine interaction. No accounts. No intermediaries.
A cryptographic API key for distributed systems. Validated by the issuer without a central database. Permissions embedded. Holders can add their own restrictions.
L402sdk is the client SDK for AI agent frameworks. Written in Rust, compiled to native and WASM. Drop it into your stack and start paying for APIs with Lightning.
L402 gives autonomous software a native way to discover, pay for, and authenticate with any service. Private machine payments, settled in under a second. No accounts, no intermediaries, no human in the loop.
The agentic payments protocol. Works with OpenClaw, Claude Code, Codex, or any framework that can run a shell command.
Get the Agent ToolsWavelength speaks L402. An agent with a Wavelength wallet can hit any L402-gated service, settle the invoice, and get to work. Self-custodial Bitcoin, Lightning, and Ark, embedded in your app. No node, no channels, no liquidity to manage. Built by the same team.
402 Payment Required and a WWW-Authenticate header containing a token and a Lightning invoice, where the token commits to the invoice by containing its payment hash. The client pays the invoice and obtains the preimage as proof. The client then presents the token together with the preimage, and the endpoint verifies both without touching a payment database.