← Directory

ngx-l402

Seller Tools

Open-source nginx module that puts an L402 Lightning paywall in front of any HTTP API or MCP server, with per-tool MCP pricing (l402_mcp, new in v1.4.0), optional Cashu payments and LND, LNC, CLN, Eclair, LNURL, NWC and BOLT12 backends

Note: Security: Docker images up to 1.3.2 ship nginx 1.28.0, which is exposed to the HTTP/2 bug CVE-2026-123007 before the paywall runs. Upgrade to v1.4.0 (Nov 19, 2026), which needs nginx 1.30.7+ or 1.31.9+. Docs ↗

Visit ngx-l402 ↗

Websitehttps://ngx-l402.org
https://github.com/ngx-l402/ngx-l402
CategorySeller Tools
Last verified2026-11-26
VerdictWorking checked Nov 26, 2026
Site and docs up; release v1.4.0 on Nov 19, 2026, latest commit Nov 24, 2026. All verdicts

Add the badge to your README

Built ngx-l402? Show that it is listed on satsforbots.com. The badge links back to this page. About the badge

Listed in Sats for Bots
Markdown
[![Listed in Sats for Bots](https://satsforbots.com/badge/listed.svg)](https://satsforbots.com/tool/ngx-l402/)
HTML
<a href="https://satsforbots.com/tool/ngx-l402/"><img src="https://satsforbots.com/badge/listed.svg" alt="Listed in Sats for Bots" width="196" height="28"></a>

Related

L402 reverse proxy that gates any API behind Lightning payments, now with metered (pay-per-token) pricing and Wavelength-backed invoices
Nodana's open-source TypeScript SDK that charges for API requests over L402 using your own Phoenixd node: issues Lightning invoices and verifies L402 credentials
Payment layer that lets agents pay for APIs and MCP tools per request, and sellers charge per request, over Lightning (L402), with Express middleware (npm payagents) and a payagents-mcp server; free in beta
Lightning Labs' token-metering price server for Aperture: turns a provider's USD price list into msat per token, sells prepaid token bundles over L402, debits what each request actually used and reconciles against the provider's bill
Second's open-source 402 payment gateway on a Bark (barkd) wallet, like Aperture without a Lightning node: unpaid requests get an Aperture-compatible L402 Lightning invoice or an Ark 402 offer, and each payment opens a credit line that requests draw down