alby-bitcoin-payments-cli-skill
CLI for bitcoin lightning wallet operations using Nostr Wallet Connect (NIP-47). Use when the user needs to send/receive payments, check wallet balance, create invoices, convert between fiat and sats, or work with lightning addresses.
Why use this skill?
Integrate the Alby Bitcoin Lightning CLI with your AI agent to automate payments, check balances, create invoices, and handle sats directly via NIP-47 commands.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/rolznz/alby-bitcoin-payments-cli-skillWhat This Skill Does
The alby-bitcoin-payments-cli-skill acts as a powerful bridge between your AI agent and the Bitcoin Lightning Network. Leveraging the NIP-47 (Nostr Wallet Connect) protocol, this skill allows your agent to perform complex wallet operations securely via the command line. Whether you need to manage your personal funds, automate invoice generation, or perform currency conversions, this skill provides a robust interface to interact with your preferred Alby-compatible Lightning wallet.
Installation
To integrate this skill into your agent, run the following command in your terminal:
clawhub install openclaw/skills/skills/rolznz/alby-bitcoin-payments-cli-skill
Ensure you have Node.js installed, as the skill utilizes npx to execute the underlying Alby CLI tool. You will need to provide your NWC connection secret either via a local file (e.g., ~/.alby-cli/connection-secret.key) or the NWC_URL environment variable to enable wallet-based commands.
Use Cases
This skill is highly versatile. You can use it to:
- Automated Payments: Program your agent to pay invoices instantly upon receiving a request.
- Merchant Services: Automatically create and wait for payment on invoices for products or services.
- Budget Management: Frequently check your wallet balance or transaction history to stay within financial boundaries.
- Financial Calculations: Quickly convert between fiat currencies and satoshis without switching to a browser.
- Testing & Development: Use the provided faucet command to spin up a temporary wallet for testing your AI workflows.
Example Prompts
- "Check my current Alby wallet balance and list the last 5 transactions."
- "Create an invoice for 5000 sats and save it to my records."
- "Convert 10 USD into satoshis using the current market rate."
Tips & Limitations
- Security First: Never expose your connection secret in plain text within chat logs or share it with unauthorized users. The agent is configured to treat these as sensitive; ensure you follow the file-based storage recommendations.
- Unit Awareness: Always verify that amounts are in satoshis before executing commands, as the CLI tool expects raw units.
- Wallet Support: While this works with any NWC-compatible provider, Alby Hub is recommended for its robust multi-wallet and permission management features.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-rolznz-alby-bitcoin-payments-cli-skill": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: file-read, file-write, network-access, code-execution