{
 "url": "https://agenticweb.wiki/compare/x402-vs-l402/",
 "title": "x402 vs L402: differences & adoption",
 "description": "x402 vs L402: architecture differences, wire formats, governance, and verified ecosystem adoption.",
 "markdown_url": "https://agenticweb.wiki/compare/x402-vs-l402/index.md",
 "markdown": "# x402 vs L402\n\n**Domain:** Payments & On-Chain Settlement · **Relationship:** Peer alternatives · HTTP 402 paywalls\n\nx402 and L402 are competing HTTP 402 payment schemes: L402 sends `WWW-Authenticate: L402` with a macaroon and BOLT 11 invoice verified via `H == sha256(preimage)`, whereas x402 uses `PAYMENT-REQUIRED`, `PAYMENT-SIGNATURE`, and `POST /settle`. [2][4][17][22] Use L402 for stateless Lightning Network API gating over HTTP or gRPC, and x402 for multi-chain CAIP-2 or fiat settlement across HTTP, MCP, and A2A. [4][18][22]\n\n## Quick facts comparison\n\n| Field | x402 | L402 |\n| --- | --- | --- |\n| **Category** | [Pay](/category/pay/) | [Pay](/category/pay/) |\n| **Tier & lifecycle** | Flagship · Active | Flagship · Active |\n| **Track** | Foundation / Consortium Specification (`x402 a Series of LF Projects, LLC`, under Linux Foundation open governance). [12][14] | Lightning Labs text in lightninglabs/L402. bLIP-0026 is an open lightning/blips pull request. [23][27][31] |\n| **Originated by** | Coinbase (Erik Reppel, Nemil Dalal, Dan Kim; May 6, 2025); x402 Foundation co-founded with Cloudflare (September 23, 2025). [5][7] | Lightning Labs (repo 2020-02-07). Osuntokun, Gugger, and Paulino authored bLIP-0026 (2023-06-06). [23][26][27][28] |\n| **Governed by** | x402 Foundation (Linux Foundation); Technical Steering Committee: Coinbase, Cloudflare, and Stripe; Executive Director: Michael Hursta. [11][12][13] | Lightning Labs repo lightninglabs/L402. Roasbeef plans to continue development there. [23][27][29][31] |\n| **Status** | Production open standard; x402 Foundation operational under Linux Foundation (40 members at July 14, 2026 operational launch; 50+ member organizations by October 2026). [12][13] | bLIP-0026 is Status: Active. Aperture is in production in Loop and Pool. PR 26 is unmerged. [28][31][32] |\n| **Latest version** | v2.0 (specification header dated 2025-12-9; launched December 11, 2025; `specs/x402-specification-v2.md` on `main` revised through 2026-10-26 with `paymentFlow` and `auth-capture` additions without a version bump); v1 launched May 6, 2025. [4][7][9][15][16] | Master branch omits a version parameter; pinned bLIP-0026 snapshot uses version=\"0\". [22][28][30] |\n| **Form** | HTTP header | HTTP header |\n| **Wire / transport** | v2: `PAYMENT-REQUIRED`, `PAYMENT-SIGNATURE`, `PAYMENT-RESPONSE`; v1: `X-PAYMENT`, `X-PAYMENT-RESPONSE` (with HTTP 402 JSON body). [8][17] · Transport-specific JSON representations: Base64 JSON objects in HTTP headers; structured JSON objects in MCP `_meta` with text fallbacks. [4][20] · HTTP/HTTPS, Model Context Protocol (MCP), and Agent-to-Agent (A2A) JSON-RPC task metadata. [4][17][19] | Master challenge is macaroon plus invoice; bLIP snapshot uses version, token, and invoice. Authorization carries the preimage. [22][28] · HTTP and gRPC. [22] |\n| **Found at** | Per-resource HTTP 402 response headers; Facilitator `/verify`, `/settle`, `/supported`, and optional Bazaar `/discovery/resources` catalog. [4][21] | No fixed path. A paid resource MUST return HTTP 402 with WWW-Authenticate. [22] |\n| **Primary specification** | [x402 Protocol Specification v2](https://github.com/x402-foundation/x402/blob/main/specs/x402-specification-v2.md) and [v1](https://github.com/x402-foundation/x402/blob/main/specs/x402-specification-v1.md) [4][15] | Master [L402 spec](https://raw.githubusercontent.com/lightninglabs/L402/master/protocol-specification.md) and pinned [bLIP-0026](https://raw.githubusercontent.com/Roasbeef/blips/697ae354c205f1aacc450e72067c92a7f2467321/blip-0026.md) snapshot. [22][28] |\n| **Last checked** | 2026-11-11 | 2026-11-06 |\n\n## Problem, mechanism & scope\n\n- **x402 problem, mechanism & scope boundary:** RFC 9110 reserves the 402 (Payment Required) status code for future use and defines no challenge or settlement record. Without a specification for how to format and respond to that status, publishers lack adequate tools to convey a payment request. Clients that interpret a defined protocol transact without accounts, subscriptions, or API keys. Automated clients otherwise pre-register with every API, manage keys, and maintain separate billing relationships. [1][5][6] x402 standardizes those messages. Each object in `accepts` is a `PaymentRequirements` record naming `scheme`, `network`, `amount`, `asset`, and `payTo`. The client submits a `PaymentPayload` whose `accepted` field is the chosen requirement and whose `payload` carries the scheme-specific signature. `POST /verify` validates payment state without writing onchain state, and `POST /settle` durably commits it, whether a facilitator or the resource server hosts the endpoints. The schemes specified from the core document are `exact`, `upto`, `batch-settlement`, and `auth-capture`. [4] Transport-specific implementations, framework-specific integrations, client-side budget management, and session handling mechanisms sit outside the core specification. Finding a resource is a separate surface: `GET /discovery/resources` lists Bazaar entries, and the discovered resources may use any x402-supported transport. [4]\n- **L402 problem, mechanism & scope boundary:** Although the HTTP specification historically marked status code 402 as reserved for future use, conventional API monetization forces callers through user accounts, passwords, sign-up forms, and monthly subscriptions rather than accountless, per-request payments where users pay only for what they use. [22][23] The credential is a macaroon (an HMAC-chain bearer token) that cryptographically commits to the invoice's payment hash. This binding enables stateless verification: the server checks `H == sha256(preimage)` against the hash embedded in the macaroon, with no database lookup required. [22] The 402 status code is used exclusively for the initial payment challenge. Once a client presents a credential (valid or not), the server MUST respond with 401 if verification fails, not 402. This distinction lets clients differentiate \"you need to pay\" from \"your credential is broken.\" [22]\n\n## Overview\n\n### x402\n\n*For the reserved HTTP status code, see [HTTP 402 Payment Required](/terms/http-402-payment-required/). Not to be confused with [L402](/protocols/l402/) (`WWW-Authenticate: L402` macaroon and Lightning invoice) or [Machine Payments Protocol (MPP)](/protocols/mpp/). [1][2][3]*\n\n**x402** is an open payment standard originated by Coinbase on May 6, 2025 that enables applications and autonomous agents to pay resource servers inline for protected APIs, content, and data. [4][7] Its transport-independent core schemas (`PaymentRequirements`, `PaymentPayload`, and `SettlementResponse`) bind a `CAIP-2` network, atomic `amount`, and `asset` across HTTP, MCP, and A2A transports. On HTTP in v2, the server challenges an unpaid request with `402 Payment Required` and `PAYMENT-REQUIRED`, the client submits `PaymentPayload` in `PAYMENT-SIGNATURE`, verification (`POST /verify`) and settlement (`POST /settle`) execute according to `paymentFlow` (`authorization` by default, or `upfront` / `escrow`), and the server returns `PAYMENT-RESPONSE` on `200 OK`. [4][8][9] Announced December 11, 2025, `v2.0` (`2025-12-9`) replaced v1's HTTP 402 response body and `X-PAYMENT` / `X-PAYMENT-RESPONSE` headers with `CAIP-2` identifiers and `extensions`, and on April 2, 2026 the protocol transferred to the Linux Foundation's x402 Foundation under a Technical Steering Committee of Coinbase, Cloudflare, and Stripe. [4][8][9][10][11]\n\n### L402\n\n*This page is about L402 (formerly LSAT), the Lightning Labs HTTP 402 authentication and payment scheme. It is not [x402](/protocols/x402/), the open payment protocol originated at Coinbase; not [MPP](/protocols/mpp/), the Machine Payments Protocol co-authored by Tempo and Stripe using the Payment authentication scheme; and not the bare HTTP 402 status code in RFC 9110 (see [HTTP 402 Payment Required](/terms/http-402-payment-required/)). [1][4][12][22][23][24][25]*\n\n**L402** (formerly Lightning Service Authentication Tokens, or `LSAT`) is an HTTP and gRPC challenge-response authentication scheme originated by Lightning Labs that combines HTTP 402 (`Payment Required`) responses with Lightning Network invoices for paid API access. [22][23][26] First committed to `lightninglabs/L402` on 2020-02-07 and announced by Olaoluwa Osuntokun on 2020-03-30, it pairs a bearer credential with a Lightning invoice so a client can pay for a preimage and present both as proof of payment. [22][26][27] When a server requires payment for a resource, the master specification requires an HTTP 402 response carrying `WWW-Authenticate: L402 macaroon=\"<base64>\", invoice=\"<bolt11>\"`, and the client retries the request with `Authorization: L402 <base64(macaroon)>:<hex(preimage)>`. [22] For backward compatibility after the rename from `LSAT`, servers should send both `LSAT` and `L402` challenges and both parties must accept either scheme in `Authorization`. [22] A token-agnostic revision (`bLIP-0026`, created 2023-06-06) uses `WWW-Authenticate: L402 version=\"0\", token=\"T\", invoice=\"P\"`, while active development continues in `lightninglabs/L402` (which reverted the `bLIP-0026` header changes on 2026-03-20). [27][28][29][30]\n\n## Adoption and ecosystem\n\n### x402\n\nSee verified implementations and cited ecosystem censuses on the [x402 protocol page](/protocols/x402/#adoption-and-ecosystem).\n\n### L402\n\nSee verified implementations and cited ecosystem censuses on the [L402 protocol page](/protocols/l402/#adoption-and-ecosystem).\n\n## References\n\n1. R. Fielding, M. Nottingham, and J. Reschke (eds.), *RFC 9110: HTTP Semantics*, June 2022 — https://www.rfc-editor.org/rfc/rfc9110.html\n2. Lightning Labs, *L402 Protocol Specification*, fetched 2026-10-30 — https://docs.lightning.engineering/the-lightning-network/l402/protocol-specification\n3. Stripe, *x402*, fetched 2026-10-30 — https://docs.stripe.com/payments/machine/x402\n4. x402 Foundation, *x402 Protocol Specification*, protocol version 2; fetched 2026-10-30 — https://github.com/x402-foundation/x402/blob/main/specs/x402-specification-v2.md\n5. Will Allen, Cam Whiteside, Rohin Lohe, and Steve James, Cloudflare, *Launching the x402 Foundation with Coinbase, and support for x402 transactions*, September 23, 2025 — https://blog.cloudflare.com/x402/\n6. Ethan Niser, Vercel, *Introducing x402-mcp: Open protocol payments for MCP tools*, 12 Sep 2025 — https://vercel.com/blog/introducing-x402-mcp-open-protocol-payments-for-mcp-tools\n7. Erik Reppel, Nemil Dalal, and Dan Kim, Coinbase, *Introducing x402: a new standard for internet-native payments*, May 6, 2025 — https://www.coinbase.com/developer-platform/discover/launches/x402\n8. x402 Foundation, *HTTP transport for x402 v1*, fetched 2026-10-30 — https://github.com/x402-foundation/x402/blob/main/specs/transports-v1/http.md\n9. Erik Reppel, Carson Roscoe, and Josh Nickerson, *Introducing x402 V2: Evolving the Standard for Internet-native Payments*, published December 11, 2025; updated June 24th, 2026 — https://x402.org/x402-v2-launch/\n10. Linux Foundation, *Linux Foundation is Launching the x402 Foundation and Welcoming the Contribution of the x402 Protocol*, April 2, 2026 — https://www.linuxfoundation.org/press/linux-foundation-is-launching-the-x402-foundation-and-welcoming-the-contribution-of-the-x402-protocol\n11. x402 Foundation, *Technical Steering Committee*, fetched 2026-10-30 — https://github.com/x402-foundation/x402/blob/main/TSC.md\n12. Linux Foundation, *Linux Foundation Announces Operational Launch of x402 Foundation to Standardize Internet-Native Payments for AI Agents and Applications*, July 14, 2026 — https://www.linuxfoundation.org/press/linux-foundation-announces-operational-launch-of-x402-foundation-to-standardize-internet-native-payments-for-ai-agents-and-applications\n13. Linux Foundation, *Linux Foundation Appoints Michael Hursta as Executive Director of the x402 Foundation*, Oct. 1, 2026 — https://x402.org/linux-foundation-appoints-michael-hursta-as-executive-director-of-the-x402-foundation/\n14. x402 Foundation, *x402*, fetched 2026-10-30 — https://x402.org/\n15. x402 Foundation, *x402 Protocol Specification*, Protocol Version: 1 — https://github.com/x402-foundation/x402/blob/main/specs/x402-specification-v1.md\n16. x402 Foundation, *Commit history for specs/x402-specification-v2.md*, 2026-10-26 — https://github.com/x402-foundation/x402/commits/HEAD/specs/x402-specification-v2.md\n17. x402 Foundation, *HTTP transport for x402 v2*, fetched 2026-10-30 — https://github.com/x402-foundation/x402/blob/main/specs/transports-v2/http.md\n18. x402 Foundation, *Networks and Token Support*, fetched 2026-10-30 — https://docs.x402.org/core-concepts/network-and-token-support\n19. x402 Foundation, *Transport: A2A (Agent-to-Agent Protocol)*, fetched 2026-10-30 — https://github.com/x402-foundation/x402/blob/main/specs/transports-v2/a2a.md\n20. x402 Foundation, *Transport: MCP (Model Context Protocol)*, fetched 2026-11-05 — https://raw.githubusercontent.com/x402-foundation/x402/main/specs/transports-v2/mcp.md\n21. x402 Foundation, *Bazaar (Discovery Layer)*, fetched 2026-10-30 — https://docs.x402.org/extensions/bazaar\n22. Lightning Labs, *L402 Protocol Specification*, fetched 2026-10-30 — https://raw.githubusercontent.com/lightninglabs/L402/master/protocol-specification.md\n23. Lightning Labs, *L402: Lightning HTTP 402 Protocol*, fetched 2026-10-30 — https://raw.githubusercontent.com/lightninglabs/L402/master/README.md\n24. Tempo and Stripe, *What is MPP?*, fetched 2026-10-30 — https://mpp.dev/overview.md\n25. B. Ryan, J. Moxey, and T. Meagher (Tempo Labs); J. Weinstein and S. Kaliski (Stripe), *The \"Payment\" HTTP Authentication Scheme (draft-httpauth-payment-01 HTML)*, draft-httpauth-payment-01, September 2026 — https://datatracker.ietf.org/doc/html/draft-httpauth-payment-01\n26. Olaoluwa Osuntokun, Lightning Labs, *L402: Authentication and Payments for the Lightning-Native Web*, March 30, 2020 — https://lightning.engineering/posts/2020-03-30-lsat/\n27. Lightning Labs, *lightninglabs/L402 repository*, created 2020-02-07; fetched 2026-10-30 — https://github.com/lightninglabs/L402\n28. Olaoluwa Osuntokun, Oliver Gugger, and Wilmer Paulino, *bLIP-0026: L402: The Lightning HTTP 402 Protocol*, created 2023-06-06 — https://raw.githubusercontent.com/Roasbeef/blips/697ae354c205f1aacc450e72067c92a7f2467321/blip-0026.md\n29. Lightning Specification (BOLTs), *Comments on lightning/blips pull request 26*, fetched 2026-10-30 — https://github.com/lightning/blips/issues/26\n30. Lightning Labs, *lightninglabs/L402 commits*, fetched 2026-10-30 — https://github.com/lightninglabs/L402/commits\n31. Roasbeef, *blip-0026: L402 - Lightning HTTP 402 Protocol (lightning/blips pull request 26)*, opened 2023-06-07; fetched 2026-10-30 — https://github.com/lightning/blips/pull/26\n32. Lightning Labs, *Aperture | Builder's Guide*, fetched 2026-10-30 — https://docs.lightning.engineering/lightning-network-tools/aperture\n"
}