agenticweb.wiki

Cloudflare Pay Per Crawl vs L402

Last checked · 24 primary sources

Crawler Policy, Licensing & Usage Preferences × Payments & On-Chain Settlement Related specifications

Cloudflare Pay Per Crawl (peer alternative to L402): Pay Per Crawl returns HTTP 402 pricing with Cloudflare as merchant. L402 returns a macaroon and BOLT 11 invoice. [1][11]

Quick facts comparison

FieldCloudflare Pay Per CrawlL402
CategoryPayPay
Tier & lifecycleFlagship · ActiveFlagship · Active
TrackVendor / Spec-Site Standard — Cloudflare AI Crawl Control product feature [1]Lightning Labs text in lightninglabs/L402. bLIP-0026 is an open lightning/blips pull request. [12][19][23]
Originated byWill Allen and Simon Newton, Cloudflare Blog (2025-07-01) [2]Lightning Labs (repo 2020-02-07). Osuntokun, Gugger, and Paulino authored bLIP-0026 (2023-06-06). [12][18][19][20]
Governed byCloudflare (Merchant of Record and technical infrastructure) [1][2]Lightning Labs repo lightninglabs/L402. Roasbeef plans to continue development there. [12][19][21][23]
StatusClosed beta (documentation updated 2026-07-28); introduced in private beta on 2025-07-01; Pay Per Use search experiments with Ceramic.ai (pay-per-query) and You.com announced on 2026-07-01 [1][3][6]bLIP-0026 is Status: Active. Aperture is in production in Loop and Pool. PR 26 is unmerged. [20][23][24]
Latest versionUnnumbered. Private beta (2025-07-01); Discovery API, custom pricing & per-URI Disable Pay Per Crawl Configuration Rules (2025-12-10); restated per-URI exemptions & dynamic pricing (2026-06-16); Pay Per Use search evolution announced (2026-07-01) [3][6]Master branch omits a version parameter; pinned bLIP-0026 snapshot uses version="0". [11][20][22]
FormHTTP headerHTTP header
Wire / transportcrawler-price, crawler-exact-price, crawler-max-price, crawler-charged, crawler-error, cf-pay-per-crawl, Signature, Signature-Input, Signature-Agent [2][3][5][8] · HTTP status codes (402 Payment Required, 200 OK) with currency-and-amount headers (crawler-price: USD 0.01, crawler-charged: USD 0.01) and Ed25519 RFC 9421 signatures [4][5] · HTTP / HTTP/2 over TLS (HTTP/2 402 Payment Required challenge; HTTP 200 on accepted price commitment) [1][5]Master challenge is macaroon plus invoice; bLIP snapshot uses version, token, and invoice. Authorization carries the preimage. [11][20] · HTTP and gRPC. [11]
Found atHTTP 402 with crawler-price; Discovery API GET https://crawlers-api.ai-audit.cfdata.org/charged_zones (authenticated via Web Bot Auth) [2][3]No fixed path. A paid resource MUST return HTTP 402 with WWW-Authenticate. [11]
Primary specificationWhat is Pay Per Crawl? [1]Master L402 spec and pinned bLIP-0026 snapshot. [11][20]
Last checked2026-11-122026-11-06

Problem, mechanism & scope

Overview

Cloudflare Pay Per Crawl

This page is about Cloudflare Pay Per Crawl, a Cloudflare AI Crawl Control feature in closed/private beta. It is not the open x402 payment protocol or general HTTP 402 Payment Required uses. [1]

Cloudflare Pay Per Crawl is a feature of Cloudflare AI Crawl Control, introduced by Will Allen and Simon Newton on 2025-07-01, that lets site owners control and monetize AI crawler access by setting a price per zone. [1][2][3] Acting as Merchant of Record, Cloudflare serves an HTTP 402 Payment Required price challenge or returns HTTP 200 OK when a verified crawler presents payment intent. [2] Crawlers authenticate via Web Bot Auth (Ed25519 keys at /.well-known/http-message-signatures-directory with signature-agent, signature-input, and signature) and sign either a reactive crawler-exact-price or proactive crawler-max-price header inside signature-input. Covered requests receive HTTP 200 OK with crawler-charged, whereas unpaid or invalid requests receive HTTP 402 with crawler-price (and crawler-error on mismatch). [2][4][5] The closed beta (dateModified 2026-07-28) added the charged_zones Discovery API and crawler-error codes (2025-12-10), dynamic pricing via cf-pay-per-crawl (2026-06-16), Pay Per Use search experiments with Ceramic.ai and You.com (2026-07-01), and a planned x402 deferred-payment integration. [1][3][6][7]

L402

This page is about L402 (formerly LSAT), the Lightning Labs HTTP 402 authentication and payment scheme. It is not x402, the open payment protocol originated at Coinbase; not 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). [11][12][13][14][15][16][17]

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. [11][12][18] 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. [11][18][19] 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)>. [11] 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. [11] 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). [19][20][21][22]

Adoption and ecosystem

Cloudflare Pay Per Crawl

See verified implementations and cited ecosystem censuses on the Cloudflare Pay Per Crawl protocol page.

L402

See verified implementations and cited ecosystem censuses on the L402 protocol page.

References

  1. Cloudflare, What is Pay Per Crawl?, updated 2026-07-28 — https://developers.cloudflare.com/ai-crawl-control/features/pay-per-crawl/what-is-pay-per-crawl/
  2. Will Allen and Simon Newton, Cloudflare Blog, Introducing pay per crawl: Enabling content owners to charge AI crawlers for access, published 2025-07-01; modified 2026-07-15 — https://blog.cloudflare.com/introducing-pay-per-crawl/
  3. Cloudflare, AI Crawl Control changelog, checked 2026-11-03; latest Pay Per Crawl entry 2026-06-16 — https://developers.cloudflare.com/ai-crawl-control/changelog/
  4. Cloudflare, Web Bot Auth, updated 2026-10-08 — https://developers.cloudflare.com/bots/reference/bot-verification/web-bot-auth/
  5. Cloudflare, Crawl pages, updated 2026-04-23 — https://developers.cloudflare.com/ai-crawl-control/features/pay-per-crawl/use-pay-per-crawl-as-ai-owner/crawl-pages/
  6. Matthew Conroy, Cloudflare Blog, Making AI search smarter, published 2026-07-01 — https://blog.cloudflare.com/making-ai-search-smarter/
  7. Cloudflare Blog, Launching the x402 Foundation with Coinbase, and support for x402 transactions, published 2025-09-23; modified 2026-07-15 — https://blog.cloudflare.com/x402/
  8. Cloudflare, Discover payable content, updated 2026-04-23 — https://developers.cloudflare.com/ai-crawl-control/features/pay-per-crawl/use-pay-per-crawl-as-ai-owner/discover-payable-content/
  9. Cloudflare, Connect Stripe, updated 2026-04-23 — https://developers.cloudflare.com/ai-crawl-control/features/pay-per-crawl/use-pay-per-crawl-as-ai-owner/connect-to-stripe/
  10. Cloudflare, Manage payouts, updated 2026-04-23 — https://developers.cloudflare.com/ai-crawl-control/features/pay-per-crawl/use-pay-per-crawl-as-site-owner/manage-payouts/
  11. Lightning Labs, L402 Protocol Specification, fetched 2026-10-30 — https://raw.githubusercontent.com/lightninglabs/L402/master/protocol-specification.md
  12. Lightning Labs, L402: Lightning HTTP 402 Protocol, fetched 2026-10-30 — https://raw.githubusercontent.com/lightninglabs/L402/master/README.md
  13. 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
  14. 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
  15. Tempo and Stripe, What is MPP?, fetched 2026-10-30 — https://mpp.dev/overview.md
  16. 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
  17. R. Fielding, M. Nottingham, and J. Reschke (eds.), RFC 9110: HTTP Semantics, June 2022 — https://www.rfc-editor.org/rfc/rfc9110.html
  18. Olaoluwa Osuntokun, Lightning Labs, L402: Authentication and Payments for the Lightning-Native Web, March 30, 2020 — https://lightning.engineering/posts/2020-03-30-lsat/
  19. Lightning Labs, lightninglabs/L402 repository, created 2020-02-07; fetched 2026-10-30 — https://github.com/lightninglabs/L402
  20. 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
  21. Lightning Specification (BOLTs), Comments on lightning/blips pull request 26, fetched 2026-10-30 — https://github.com/lightning/blips/issues/26
  22. Lightning Labs, lightninglabs/L402 commits, fetched 2026-10-30 — https://github.com/lightninglabs/L402/commits
  23. 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
  24. Lightning Labs, Aperture | Builder's Guide, fetched 2026-10-30 — https://docs.lightning.engineering/lightning-network-tools/aperture

cloudflare-pay-per-crawl.json · l402.json · JSON · Markdown