skills/l402/SKILL.md
L402 agent commerce workflows with lnd, lnget, scoped macaroons, aperture, and MCP.
npx skillsauth add openagentsinc/openagents l402Install this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Build and operate Lightning-native agent commerce flows using L402. Use this skill when tasks involve setting up Lightning payment infrastructure (lnd), enforcing key isolation with a remote signer, baking scoped macaroons, paying for L402-gated APIs with lnget, selling paid endpoints behind aperture, querying node state with Lightning MCP over LNC, or orchestrating end-to-end buyer and seller workflows.
This skill is based on ~/code/lightning-agent-tools and should be treated as Bitcoin and Lightning only.
bash, curl, and jq.~/code/lightning-agent-tools (or LIGHTNING_AGENT_TOOLS_DIR override).npx can be used for zero-install MCP.Use this skill for concrete implementation and operations, not generic payment theory.
lnd + pay-only macaroon + lnget for paid API access.lnd + invoice-only macaroon + aperture paywall in front of backend.scripts/check-l402-prereqs.sh buyerscripts/check-l402-prereqs.sh sellerscripts/check-l402-prereqs.sh observerscripts/check-l402-prereqs.sh fulllightning-agent-tools/skills/*.lnget for L402 buyer traffic.aperture for paid endpoint hosting.pay-only, invoice-only, signer-only, read-only).lnget --no-pay and lnget --max-cost checks.# Node + lnget setup (buyer path)
~/code/lightning-agent-tools/skills/lnd/scripts/install.sh
~/code/lightning-agent-tools/skills/lnd/scripts/create-wallet.sh --mode standalone
~/code/lightning-agent-tools/skills/lnd/scripts/start-lnd.sh
~/code/lightning-agent-tools/skills/lnget/scripts/install.sh
lnget config init
lnget --max-cost 500 https://api.example.com/paid-data.json
# Scoped buyer credentials (recommended)
~/code/lightning-agent-tools/skills/macaroon-bakery/scripts/bake.sh --role pay-only
# Seller path (aperture)
~/code/lightning-agent-tools/skills/aperture/scripts/install.sh
~/code/lightning-agent-tools/skills/aperture/scripts/setup.sh --insecure --port 8081
~/code/lightning-agent-tools/skills/aperture/scripts/start.sh
# MCP read-only path
~/code/lightning-agent-tools/skills/lightning-mcp-server/scripts/install.sh
~/code/lightning-agent-tools/skills/lightning-mcp-server/scripts/configure.sh --production
tools
Neutronpay MCP and SDK workflows for Lightning, stablecoin, and fiat payments.
development
Money Dev Kit workflows for Lightning checkout and agent wallets.
data-ai
Mezo integration workflows for apps, autonomous agents, and Mezo Earn operations.
development
Maestro Symphony blockchain query operations for OpenAgents agents, including tip freshness checks, address/UTXO/runes queries, and production-safe troubleshooting against deployed Symphony API endpoints.