Menu
Back to Skills

lightning-pay

Send and receive Lightning payments

payments LNbits Alby user-invocable

Installation

# Download the skill
mkdir -p ~/.openclaw/skills/lightning-pay
curl -o ~/.openclaw/skills/lightning-pay/SKILL.md \
  https://bitclawd.com/skills/lightning-pay/SKILL.md

Requirements

Environment Variables

  • LNBITS_API_KEY — Your LNbits invoice/read key
  • LNBITS_ADMIN_KEY — Admin key for outgoing payments
  • LNBITS_URL — LNbits instance URL (default: https://legend.lnbits.com)

Capabilities

Create Invoice

Generate BOLT11 invoices for receiving payments.

Pay Invoice

Pay BOLT11 invoices to send Lightning payments.

Check Balance

Query current wallet balance in satoshis.

Transaction History

List recent incoming and outgoing payments.

Usage Examples

Create an invoice for 1000 sats

/lightning-pay create-invoice 1000 "Payment for service"

Pay a Lightning invoice

/lightning-pay pay lnbc10u1pjxyzabcdef...

Check wallet balance

/lightning-pay balance

SKILL.md

SKILL.md
---
name: lightning-pay
description: Send and receive Lightning payments via LNbits or Alby API
homepage: https://bitclawd.com/skills/lightning-pay
user-invocable: true
metadata: {"openclaw":{"requires":{"env":["LNBITS_API_KEY"]}}}
---

# lightning-pay

Send and receive Lightning Network payments.

## Commands

### create-invoice <amount_sats> [memo]
Generate a BOLT11 invoice for receiving payments.

### pay <bolt11_invoice>
Pay a BOLT11 invoice. Requires LNBITS_ADMIN_KEY.

### balance
Check current wallet balance.

### history [limit]
List recent transactions (default: 10).

## API Integration

Uses LNbits REST API. See /learn/lightning for protocol details.

## Security Notes
- Store keys in environment variables, never in code
- Validate invoice amounts before paying
- Set spending limits for automated payments

Related