# ngx-l402

> 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

Canonical: https://satsforbots.com/tool/ngx-l402/

[← Directory](https://satsforbots.com/directory/)

## ngx-l402
[Seller Tools](https://satsforbots.com/category/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 ↗](https://github.com/ngx-l402/ngx-l402/releases/tag/v1.4.0)
[Visit ngx-l402 ↗](https://ngx-l402.org)

 | Website | [https://ngx-l402.org](https://ngx-l402.org)
[https://github.com/ngx-l402/ngx-l402](https://github.com/ngx-l402/ngx-l402)
 | Category | Seller Tools
 | Last verified | 2026-11-26
 | Verdict | Working checked Nov 26, 2026
Site and docs up; release v1.4.0 on Nov 19, 2026, latest commit Nov 24, 2026. [All verdicts](https://satsforbots.com/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](https://satsforbots.com/badge/)
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
[Seller Tools](https://satsforbots.com/category/seller-tools/)
### [Aperture](https://satsforbots.com/tool/aperture/)

L402 reverse proxy that gates any API behind Lightning payments, now with metered (pay-per-token) pricing and Wavelength-backed invoices

[Seller Tools](https://satsforbots.com/category/seller-tools/)
### [Phoenixd L402 SDK](https://satsforbots.com/tool/phoenixd-l402-sdk/)

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

[Seller Tools](https://satsforbots.com/category/seller-tools/)
### [PayAgents](https://satsforbots.com/tool/payagents/)

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

[Seller Tools](https://satsforbots.com/category/seller-tools/)
### [Lightmeter](https://satsforbots.com/tool/lightmeter/)

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

[Seller Tools](https://satsforbots.com/category/seller-tools/)
### [barkgate](https://satsforbots.com/tool/barkgate/)

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
