← Back to Skills Marketplace
kiagentkronos-cell

Alby Lightning Payments

by kiagentkronos-cell · GitHub ↗ · v1.1.2 · MIT-0
cross-platform ⚠ suspicious
103
Downloads
0
Stars
0
Active Installs
3
Versions
Install in OpenClaw
/install alby-lightning
Description
Send, receive, and manage Bitcoin Lightning payments through Alby Hub's Nostr Wallet Connect, including balance checks and invoice handling.
README (SKILL.md)

Alby Lightning Payments Skill

Overview

Easily send, receive, and manage Bitcoin Lightning payments via Alby Hub's Nostr Wallet Connect (NWC).

Features

  • Check wallet balance
  • Pay Lightning invoices
  • Send to Lightning addresses
  • Generate receive invoices

Setup

Prerequisites

  • Alby Hub account
  • NWC (Nostr Wallet Connect) URL

Installation

mkdir -p ~/.openclaw/workspace/skills/alby-lightning
cd ~/.openclaw/workspace/skills/alby-lightning
npm init -y
npm install @getalby/sdk

Configuration

Add to openclaw.json:

{
  "env": {
    "ALBY_NWC_URL": "nostr+walletconnect://..."
  }
}

⚠️ Security

Your NWC URL contains your wallet's private key. Anyone with this URL can spend your funds.

  • NEVER commit it to git or share it publicly
  • ALWAYS set spending limits in Alby Hub before use
  • Store it only in openclaw.json (not in code files)
  • Rotate the NWC URL immediately if you suspect it was leaked

Gotchas

  • Always specify amount for zero-amount invoices
  • Use result.invoice, not result.payment_request
  • Set spending limits in Alby Hub

Contributing

Improvements welcome! Open issues at GitHub.

Usage Guidance
This skill appears to implement the advertised Alby/NWC payment functionality, but there are important red flags you should address before installing: (1) The registry metadata does not declare the ALBY_NWC_URL env var the code requires — assume the NWC URL will be needed and treat it as extremely sensitive (contains spending capability). (2) package.json's test script runs scripts/wallet.js which executes payment actions immediately; do not run npm test unless you want those actions to execute. Audit the code (especially scripts/wallet.js), and consider removing or editing the test script before running any package scripts. Only set ALBY_NWC_URL in a secure location (openclaw.json as recommended), ensure spending limits are set in Alby Hub, and consider running the skill in an isolated environment or sandbox first. Verify the @getalby/sdk version and source and prefer installing dependencies manually after inspection. If you need higher confidence, ask the publisher for a homepage/source repository (none is listed) or request that they update the registry metadata to declare ALBY_NWC_URL as the primary credential and remove/modify the auto-running test script.
Capability Assessment
Purpose & Capability
The skill's functionality (sending/paying Lightning invoices via an Alby NWC URL) is coherent with the name/description, and the code expects a single env var ALBY_NWC_URL — which is necessary. However the registry metadata lists no required env vars or primary credential, which is incorrect and misleading. That mismatch (code+SKILL.md requiring ALBY_NWC_URL vs registry declaring none) is material and could cause users to accidentally provide credentials in the wrong place or miss the sensitivity of the NWC URL.
Instruction Scope
SKILL.md fairly narrowly instructs installing @getalby/sdk and setting ALBY_NWC_URL in openclaw.json; the send_sats.mjs and pay_bolt11.mjs scripts implement SSRF protections, amount checks, timeouts, and avoid logging secrets. However scripts/wallet.js immediately performs balance-checks, makes a hardcoded payInvoice call, pays a lightning address, and creates an invoice on import — and package.json defines "test": "node scripts/wallet.js". That means running npm test (or some automated test hooks) could execute payment-related actions unexpectedly. SKILL.md does not warn that the included test script performs network/payment actions.
Install Mechanism
No install spec is declared in the registry (instruction-only), yet package.json has a runtime dependency on @getalby/sdk and SKILL.md instructs users to run npm install @getalby/sdk. This is a moderate risk (npm package download/execution) but not unusual for Node skills. The inconsistency between 'no install spec' in metadata and explicit npm-based install instructions should be fixed or made explicit to users.
Credentials
The only secret the code needs is ALBY_NWC_URL (the private-key-containing Nostr Wallet Connect URL), which is proportionate to the stated payment functionality. However the registry does not declare this required env var or mark a primary credential, which is misleading and increases the risk that users will misconfigure where they store the secret. The SKILL.md appropriately warns users about the sensitivity of the NWC URL.
Persistence & Privilege
The skill does not request always:true or other elevated platform privileges. It does not attempt to modify other skills or system-wide agent settings. Autonomy (disable-model-invocation=false) is platform default and not a standalone concern here.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install alby-lightning
  3. After installation, invoke the skill by name or use /alby-lightning
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.1.2
Added GitHub source: github.com/kiagentkronos-cell/alby-lightning
v1.1.1
Expanded README: explains network access, LNURL protocol, security measures — for transparency review
v1.1.0
Security hardened: SSRF protection, invoice amount verification, input validation, timeouts, path traversal fix
Metadata
Slug alby-lightning
Version 1.1.2
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 3
Frequently Asked Questions

What is Alby Lightning Payments?

Send, receive, and manage Bitcoin Lightning payments through Alby Hub's Nostr Wallet Connect, including balance checks and invoice handling. It is an AI Agent Skill for Claude Code / OpenClaw, with 103 downloads so far.

How do I install Alby Lightning Payments?

Run "/install alby-lightning" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Alby Lightning Payments free?

Yes, Alby Lightning Payments is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Alby Lightning Payments support?

Alby Lightning Payments is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Alby Lightning Payments?

It is built and maintained by kiagentkronos-cell (@kiagentkronos-cell); the current version is v1.1.2.

💬 Comments