Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

commerce

Skill by lightninglabs

Sets up a Lightning Network payment stack so AI agents can buy and sell data via L402 micropayments. It combines the lnd, lnget and aperture skills for both buyers and sellers.

  • Score 49
  • 61 stars
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install commerce

Built from the published package, never by AI.

git clone --depth 1 https://github.com/lightninglabs/lightning-agent-tools /tmp/lightning-agent-tools && mkdir -p ~/.claude/skills && cp -r /tmp/lightning-agent-tools/skills/commerce ~/.claude/skills/commerce

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install commerce in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

The commerce skill is a toolkit for agent-driven payments on the Lightning Network using the L402 protocol. It combines three skills: lnd, which runs Lightning Terminal (litd, bundling lnd, loop, pool and tapd); lnget, which fetches L402-protected resources; and aperture, which hosts paid API endpoints. The source walks through installing each component, starting a node, creating a wallet, funding it, opening a channel, and configuring lnget.

Agents can buy data with a maximum cost per request and can preview invoices without paying. Sellers can place an L402 paywall in front of a backend, with buyers paying per request, for example 100 sats. The skill is aimed at agents that need to buy or sell data or make agent-to-agent micropayments. The source notes that production use with significant funds should use watch-only mode with a remote signer, referring to a separate lightning-security-module skill.

Written from the project's SKILL.md and checked against it.

What it can do

  • Run a Lightning nodeStarts the litd container, which bundles lnd, loop, pool and tapd, and creates an encrypted wallet.
  • Fetch paid resourcesUses lnget to retrieve L402-protected resources and pay their invoices.
  • Host paid endpointsUses aperture as an L402 reverse proxy to put a paywall in front of a backend service.
  • Cap spendingSets a hard per-request limit with lnget --max-cost before paying.
  • Preview invoicesChecks the invoice amount with lnget --no-pay before committing any payment.
  • Track token spendingLists cached L402 tokens per domain and totals the amount paid.

What you need

  • A Lightning node, set up with lnd through the litd container
  • Bitcoin funds to send to the node and open channels
  • Python 3 for the example backend server
  • jq for the example output parsing

Try asking

  • Fetch the paid data at this URL with a 500 sat cost limit
  • Preview the invoice for this L402 endpoint without paying
  • List my cached L402 tokens and total the amount paid

Good to know

  • The litd container starts on testnet by default.
  • Production use with significant funds should use watch-only mode with a remote signer.
  • The seller setup example uses the --insecure flag.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: skills/commerce/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to commerce

All alternatives →

Compare with meme-rush, okx-market or saas-metrics-coach

commerce: common questions

Which Lightning network does the default setup use?

The source says the litd container starts on testnet by default.

Where are wallet secrets stored?

The wallet passphrase and seed mnemonic are stored under ~/.lnget/lnd/ with 0600 permissions. L402 tokens are stored per domain under ~/.lnget/tokens/.

What is recommended for production use?

For production use with significant funds, the source recommends watch-only mode with a remote signer container, and points to the lightning-security-module skill for details.

How do I install commerce?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is commerce free?

The code is public, but no licence file was found, so check the repository before commercial use.

Is commerce safe to use?

It scores 49 of 100. Grades: maintenance D, licence F, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to commerce?

Similar skills: meme-rush, okx-market, saas-metrics-coach, sec-edgar.

commerce Install

Add to stack

Loading.