Commerce Toolkit for Openclaw

An end-to-end toolkit for agentic commerce using the Lightning Network and L402 protocol to enable autonomous micropayments.

roasbeef
v1.0.0
Feb 11, 2026
0
1.9k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install lightning-agent-commerce

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install lightning-agent-commerce using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Commerce Toolkit?

The Commerce Toolkit is a comprehensive suite designed for autonomous agents to engage in the digital economy. By leveraging the Lightning Network and the L402 protocol, this skill allows Openclaw Skills to handle micropayments for data and services with high efficiency. It bundles three critical components: lnd for node management, lnget for purchasing data, and aperture for selling data through a reverse proxy. This allows developers to create agents that can independently manage wallets, open payment channels, and settle transactions without human oversight.

Commerce Toolkit Use Cases

  • Automated purchasing of real-time data or API access via L402-protected endpoints.
  • Monetizing agent-generated content or proprietary data by hosting paid API endpoints.
  • Enabling seamless agent-to-agent value transfers and service settlements.
  • Establishing a full-stack Lightning Network environment for automated financial workflows.

How Commerce Toolkit Works

  1. Deploy the core stack consisting of Lightning Terminal (litd), the lnget client, and the aperture proxy.
  2. Initialize the Lightning Network node and create an encrypted wallet to manage funds.
  3. Fund the wallet and open payment channels to provide the necessary liquidity for transactions.
  4. Utilize lnget to fetch paid resources, where the agent automatically handles the 402 Payment Required challenge.
  5. Optionally use aperture to protect local services, requiring other agents to pay in satoshis before accessing data.

Commerce Toolkit Setup

Component Installation

# Install the necessary commerce components
skills/lnd/scripts/install.sh
skills/lnget/scripts/install.sh
skills/aperture/scripts/install.sh

Node and Wallet Initialization

# Start the Lightning node and create a wallet
skills/lnd/scripts/start-lnd.sh
skills/lnd/scripts/create-wallet.sh --mode standalone

# Check node status
skills/lnd/scripts/lncli.sh getinfo

Configuration

# Initialize the L402 client configuration
lnget config init

Commerce Toolkit Data Schema & Taxonomy

The Commerce Toolkit for Openclaw Skills organizes data across several directories to ensure security and operational persistence:

Component Information Managed Default Path
lnd Macaroons and node data ~/.lnd/data/chain/
lnget L402 tokens per domain ~/.lnget/tokens/
aperture Transaction and paywall database ~/.aperture/aperture.db
Security Wallet seeds and passphrases ~/.lnget/lnd/

Commerce Toolkit Advanced Features

  • Support for the L402 protocol which combines Lightning payments with Macaroon-based authentication.
  • Granular cost management allowing agents to set maximum spending limits per request.
  • Integration with the litd bundle including loop, pool, and tapd for advanced liquidity and asset management.
  • Capability to preview paywalled content cost without executing a payment.
  • Support for watch-only security modes to protect significant funds in production environments.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*