Xpersona
A

Alby Bitcoin Payments Skill

CLAWHUB · Unverified

teaches agents how to use @getalby/cli to operate a bitcoin lightning wallet via Nostr Wallet Connect (NIP-47). Use whenever the user wants to send or receiv...

62
Rank
84
Safety
1.3k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.3K downloads reported by the source. Last updated 10/10/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s171vv5mzsh8expedtpkh7mfd583yxp6:alby-bitcoin-payments
  1. Install using `clawhub skill install s171vv5mzsh8expedtpkh7mfd583yxp6:alby-bitcoin-payments` in an isolated environment before connecting it to live workloads.
  2. No published capability contract is available yet, so validate auth and request/response behavior manually.
  3. Review the upstream CLAWHUB listing at https://clawhub.ai/rolznz/alby-bitcoin-payments before using production credentials.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-rolznz-alby-bitcoin-payments/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

58,547 characters of source documentation, loaded on request.

Extracted files

4 files captured from the source.

SKILL.md

---
name: alby-bitcoin-payments
description: teaches agents how to use @getalby/cli to operate a bitcoin lightning wallet via Nostr Wallet Connect (NIP-47). Use whenever the user wants to send or receive money, pay an invoice, check wallet balance, create invoices, convert between fiat and sats, retry an HTTP request that returned 402 Payment Required, or discover paid API services. Beyond lightning, it can pay to any on-chain cryptocurrency/stablecoin address (e.g. USDC/USDT) by automatically swapping from the bitcoin balance.
license: MIT-0
metadata:
  author: getAlby
  version: "1.3.8"
  openclaw:
    requires:
      env:
        - NWC_URL
      bins:
        - npx
      config:
        - ~/.alby-cli/
    primaryEnv: NWC_URL
    emoji: "🐝"
    homepage: https://getalby.com
---

# Usage

> **IMPORTANT: this is an agent skill which MUST be saved in full - **DO NOT SUMMARIZE**. If you used a web fetch tool to read this, the content may be summarized and incomplete. Make sure you fetch the full unabridged content.**

```bash
npx -y @getalby/cli@0.8.0 [options] <command>
```

## Global Options

### Connection Secret (Optional)

`-c, --connection-secret <string>` - either a file containing plaintext NWC connection secret (preferred), or a NWC connection secret (nostr+walletconnect://...). This argument is required for wallet commands.

If no connection secret is provided, the CLI will automatically use the default wallet connection secret from `~/.alby-cli/connection-secret.key`.

##### Named Wallets (preferred for multi-wallet setups)

Use `-w, --wallet-name <name>` to select a named wallet. This is the preferred option over `-c` when working with multiple wallets:

```bash
npx -y @getalby/cli@0.8.0 -w alice get-balance
npx -y @getalby/cli@0.8.0 -w bob receive
```

Named wallets are stored at `~/.alby-cli/connection-secret-<name>.key`.

#### Connection Secret File

Use `-c` to point directly to a connection secret file or pass a raw NWC URL:

`-c ~/.alby-cli/connection-secret.key`

#### Environment Variable

Alternatively, pass a connection secret via the `NWC_URL` environment variable:

```txt
NWC_URL="nostr+walletconnect://..."
```

#### Resolution Order

The CLI resolves the connection secret in this order:
1. `--connection-secret` / `-c` flag
2. `--wallet-name` / `-w` flag
3. `NWC_URL` environment variable
4. `~/.alby-cli/connection-secret.key` (default)

## Commands

**Flag names are not guessable.** Before constructing any command, run `npx -y @getalby/cli@0.8.0 <command> --help` and use only the flags it lists.

**Setup:**
auth, connect

**Common Wallet operations:**
- `pay` — send to a lightning address, BOLT-11 invoice, crypto/stablecoin address (0x…, funded from your lightning wallet), or via keysend. Supports native fiat conversion.
- `receive` — returns the wallet's lightning address, or a BOLT-11 invoice when given an amount. Supports native fiat conversion.
- `get-balance` — check wallet balance
- `list-transactions` — list recent tr

README.md

# Alby Bitcoin Payments Skill

Give your agent its own [NWC](https://nwc.dev) wallet interface - and let it operate independently.

Perfect for autonomous agents like OpenClaw that need to send, receive, and manage sats on their own.

This skill uses the [Alby CLI](https://github.com/getAlby/cli)

## Getting Started

### 🚀 Install with single command

```bash
npx skills add getAlby/payments-skill
```

### 🦞 OpenClaw

1. Tell your agent to install the skill:

```txt
Install this skill as a custom skill: https://getalby.com/payments/SKILL.md
```

2. Connect your wallet. The preferred method is the `auth` command if your wallet supports it (e.g. Alby Hub):

   ```bash
   npx @getalby/cli auth https://my.albyhub.com --app-name MyApp
   ```

   Then confirm in the browser and run any wallet command to finalize. Alternatively, save a connection secret directly:

   ```bash
   npx @getalby/cli connect "nostr+walletconnect://..."
   ```

   For multiple wallets, use the `-w <name>` flag (e.g. `npx @getalby/cli -w alice get-balance`).

   > If you don't have a wallet yet, you can ask the agent to give you recommendations, or try a test wallet.

3. Verify it's working. ask "What's your wallet balance"?

## Test Wallets

You can also tell your agent to create a test wallet to try the CLI.

### Example prompt

```txt
make 2 test wallets for me and save them. Call them alice and bob. Then send 1000 sats from alice to bob.
```

_meta.json

{
  "ownerId": "kn7cxdpw6ev628ye3fzq1c8sh580fehw",
  "slug": "alby-bitcoin-payments",
  "version": "1.3.8",
  "publishedAt": 1780658489563
}

skill-card.md

## Description:

Teaches agents how to use @getalby/cli to operate a bitcoin lightning wallet via Nostr Wallet Connect (NIP-47), including sending and receiving payments, checking balances, creating invoices, converting fiat and sats, handling paid HTTP 402 requests, discovering paid API services, and paying supported on-chain crypto or stablecoin addresses by swapping from a bitcoin balance.

This skill is ready for commercial/non-commercial use.

## Publisher:

[rolznz](https://clawhub.ai/user/rolznz)

### License/Terms of Use:

MIT-0

## Use Case:

External developers and agent operators use this skill to let an agent interact with an Alby-compatible bitcoin lightning wallet for wallet setup, balance checks, invoices, payments, fiat/sats conversion, paid HTTP 402 requests, and paid service discovery.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: The skill gives an agent ongoing authority to operate a real bitcoin wallet.

Mitigation: Use a low-balance or budget-limited wallet and require explicit confirmation for every payment, swap, or paid fetch.

Risk: Connection secrets may be exposed if pasted into chat, logs, or command history.

Mitigation: Prefer named or file-based credentials, never print or read secret contents, and revoke any secret that was exposed.

Risk: The skill executes an npm-distributed CLI through npx.

Mitigation: Pin and verify the CLI or install source before use.

## Reference(s):

- [ClawHub Skill Page](https://clawhub.ai/rolznz/skills/alby-bitcoin-payments)
- [Alby](https://getalby.com)
- [Alby CLI](https://github.com/getAlby/cli)
- [Nostr Wallet Connect](https://nwc.dev)
- [402index](https://402index.io)

## Skill Output:

**Output Type(s):** [Text, Markdown, Shell commands, Configuration guidance]

**Output Format:** [Markdown with inline shell commands and configuration guidance]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [May produce payment, wallet, invoice, fetch, and service-discovery command guidance; user confirmation is required for payment or swap actions.]

## Skill Version(s):

1.3.8 (source: frontmatter and server release metadata)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.

Sponsored

Ads related to Alby Bitcoin Payments Skill and adjacent AI workflows.