commerce

Set up Lightning Network commerce workflows for buying and selling digital resources.

57|18|Updated Feb 6, 2026
One-click install
npx skills add https://github.com/lightninglabs/lightning-agent-tools --skill commerce
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: commerce
Source: https://github.com/lightninglabs/lightning-agent-tools/tree/main/skills/commerce
Command: npx skills add https://github.com/lightninglabs/lightning-agent-tools --skill commerce

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps agents move from reading and writing to actually paying for and selling digital resources over the Lightning Network, without manual payment rails or account setup.

Core Features & Use Cases

  • End-to-end payment stack: Set up and operate the Lightning tooling needed for autonomous buying and selling.
  • Paid data access: Use L402 flows to fetch protected content with controlled spending limits.
  • Paywalled APIs: Expose your own services behind a Lightning paywall so other agents can pay per request.
  • Commerce workflows: Coordinate lnd, lnget, and aperture for buyer and seller agent scenarios.

Quick Start

Use the commerce skill to help me set up the Lightning payment stack, then fetch a protected resource or publish a paywalled API with safe spending limits.

Frequently Asked Questions about commerce

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up Lightning Network micropayments for autonomous agents?

Setting up Lightning Network micropayments for agents requires running an lnd node, funding payment channels, and configuring scoped credentials with controlled spend limits to enable safe autonomous transactions.

What is L402 and how does it work for fetching protected content?

L402 is a Lightning-based HTTP payment protocol that enables agents to fetch protected content by paying per request. Agents use lnget to automatically negotiate access and route micropayments through Lightning channels.

Can I host a paywalled API that other agents pay to access over the Lightning Network?

Yes, you can host paywalled APIs using aperture, which exposes your services behind a Lightning paywall so other agents can pay per request via L402 flows without manual account setup.

What do I need to run an end-to-end Lightning payment stack for agent commerce?

Running an end-to-end Lightning payment stack requires a configured wallet, funded Lightning channels via lnd, scoped credentials, token validation, and controlled spend limits to ensure safe micropayments between agents.

Are there spending limits when agents buy digital resources over the Lightning Network?

Yes, controlled spend limits are a core safety requirement. Agents must be configured with scoped credentials and token validation to prevent runaway costs when autonomously purchasing protected content or API access.

Why use the Lightning Network for agent commerce instead of traditional payment rails?

Lightning Network enables autonomous agents to buy and sell digital resources without manual payment rails or account setup, supporting instant micropayments for paywalled API access and protected content via L402 flows.