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.
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/commerceRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/lightninglabs/lightning-agent-tools /tmp/lightning-agent-tools && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/lightning-agent-tools/skills/commerce ~/.gemini/antigravity-cli/skills/commerceAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
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
ANo 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 →Lists live launchpad token feeds and AI-detected hot topics for meme tokens on BSC, Solana and Base. Covers new, finalizing and just-migrated tokens on launchpads such as Pump.fun and Four.meme.
The okx-market skill lets an AI assistant retrieve cryptocurrency market data from the OKX V5 REST API. It is aimed at users who want spot, derivatives and index data in Python without an account.
Calculates key SaaS health metrics such as ARR, churn, LTV and CAC from raw business numbers, then gives prioritized advice. Built for founders and finance leads who share revenue or customer figures.
Fetches U.S. SEC EDGAR data for research. It resolves a ticker to its CIK, lists recent filings with primary-document URLs, and pulls XBRL financial series. Built for analysts who need free, U.S.-only filing data.
Provides free, no-auth access to Eastmoney market data for A-shares, Hong Kong stocks and US stocks. It covers fund flows, dragon-tiger lists, financial statements and stock screening.
Reads and manages a user's QuickBooks business through Intuit's official MCP server. It answers finance questions from reports, invoices, customers, products and benchmarks, and completes approved actions.
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.
