nwc-guard: a spending firewall for your agent's wallet
Agents are getting Lightning wallets. One poisoned web page, email or tool result can tell an agent to pay an attacker. nwc-guard sits between the agent and your wallet, and nothing new gets paid without your ✅.
Join the waitlist on Telegram
Open the bot and send /beta. We'll write to you there when your spot opens.
What it checks, on every payment
- Who gets paid. The payee is recovered from the invoice signature, and a payee you haven't approved waits for you.
- How much. A cap per payment, plus hourly and daily budgets that count fees and payments still in flight.
- How often. At most N payments a minute, so a drain made of many small payments stops early.
- Never twice. The same invoice is never paid again, even after a wallet timeout.
- Only what's needed. The agent sees its own payments and what it may still spend today. Keysend, signing and hold invoices are blocked.
- A stop button. /stop on Telegram pauses everything.
Run it yourself today
The open-source version (MIT) runs on any machine with Node.js:
npx github:lamporun/nwc-guard init --name my-agent NWC_UPSTREAM_URL="nostr+walletconnect://..." npx github:lamporun/nwc-guard start
Setup, rules and Telegram approvals: github.com/lamporun/nwc-guard. It works with any NWC wallet and any NWC app: MCP servers, OpenClaw skills, l402-bridge.
Tested on mainnet
On 24 November 2026 nwc-guard sat between l402-bridge and a Minibits wallet, buying AI inference from Lampo. The first bundle waited for approval on Telegram and was paid after ✅. A bundle over the limit was refused without asking, and nothing was paid.
Privacy: the waitlist keeps your Telegram chat id, username and first name, only to write to you about the beta. Send /leave to the bot to be removed. See the privacy notice.