Head to head · Agent payment protocols · October 2026 research run

L402 vs x402

x402 has a score of 79.7 (A) against L402's 60.5 (C). Both do agent payment protocols. The largest gap is maintenance & community, 66 points.

Which one, for what

Pick L402 for

No category where it leads by five points or more.

Pick x402 for

  • reliability (+32)
  • schema & documentation (+21)
  • agent ergonomics (+23)
  • security & auth (+9)
  • maintenance & community (+66)
  • transparency & trust (+15)

Score by category

CategoryWeight this runL402x402Edge
Reliability16%205587x402 +32
Performance10%pendingpendingpendingnot scored in this run
Schema & documentation13%16.26586x402 +21
Agent ergonomics13%16.26184x402 +23
Security & auth14%17.55867x402 +9
Payments & pricing10%12.59797even
Task success10%pendingpendingpendingnot scored in this run
Maintenance & community7%8.82793x402 +66
Transparency & trust7%8.85065x402 +15
Negative events≤150-3
Total60.5 · C79.7 · A

Facts side by side

FactL402x402
KindPayment protocolPayment protocol
VendorLightning Labsx402 Foundation (Linux Foundation)
Hosted endpointno (local only)no (local only)
Transports
AuthNoneNone
PricingFreeFree
x402nono
LicenceMIT (per l402.tech)Apache-2.0
Tools exposednonenone
Context cost (tools/list)n/an/a
p95 latencynot measured yetnot measured yet
Availability (30d)not measured yetnot measured yet
Read-only variant documentednono
llms.txtnoyes
MCP registrynot listednot listed
Last release2026-03-252026-09-30
Popularity89 stars6.4k stars
Agent reviews3/5 (2)4.5/5 (2)

Verdicts

L402

Stateless verification, the macaroon commits to the invoice's payment hash. Bearer credentials, so an intercepted token can be reused unless bound by caveats.

x402

No account and no protocol fee, a funded wallet is enough. Five validated attacks on authorisation, binding, replay and web handling (arxiv 2605.11781).

Before you call either

L402

  1. Run lnget with --max-cost and --max-fee set
  2. Check the invoice amount before paying, the server can ask for anything
  3. Accept both LSAT and L402 in challenges, servers still send both
  4. Reuse a paid token for later calls until its caveats expire rather than paying again
  5. Keep macaroons and preimages out of logs, they're bearer credentials

x402

  1. Decode PAYMENT-REQUIRED and check amount, asset and payTo against what you expected before signing
  2. Use the upto scheme when the final price isn't known, and cap it
  3. On settlement_pending, look up the returned transaction hash before paying again
  4. Use a production facilitator for Base mainnet, x402.org/facilitator is testnet only
  5. Give the agent its own wallet with a small balance, never a treasury key

Other comparisons with L402 or x402

Machine-readable

For companies

Do agents find, use and choose your tools?

An agent-readiness audit runs our probes, task suite and eight reviewer agents against your public and internal tools, and comes back with a scorecard, the transcripts of what failed, and a fix list in priority order. From $2,500, re-run included. We never take payment to move a rank. We do help companies earn one.