跳至主要内容
小龙虾小龙虾AI
🤖

Bitcoin Wallet using Breez Spark SDK

Self-custodial Bitcoin and Lightning wallet for AI agents. Send and receive sats via Lightning Network, Spark, or on-chain Bitcoin. Use when: checking bitcoin balance, sending/receiving payments, generating Lightning invoices, managing wallet operations. Requires the BreezClaw plugin and a Breez API key.

下载1.4k
星标2
版本1.0.0
金融财务
安全通过
💬Prompt

技能说明


slug: breezclaw name: BreezClaw description: "Self-custodial Bitcoin and Lightning wallet for AI agents. Send and receive sats via Lightning Network, Spark, or on-chain Bitcoin. Use when: checking bitcoin balance, sending/receiving payments, generating Lightning invoices, managing wallet operations. Requires the BreezClaw plugin and a Breez API key." version: 1.0.0 author: onesandzeros-nz keywords: bitcoin, lightning, wallet, breez, spark, sats, payments, self-custodial, breezclaw homepage: https://github.com/onesandzeros-nz/BreezClaw

BreezClaw

Self-custodial Bitcoin and Lightning wallet for AI agents. Powered by Breez SDK Spark.

Install

# Clone plugin
cd ~/.openclaw/extensions
git clone https://github.com/onesandzeros-nz/BreezClaw.git breezclaw

# Install dependencies and build
cd breezclaw
npm install
npm run build

Configure

1. Get Breez API Key

Sign up at https://breez.technology/sdk/

2. Add to OpenClaw Config

Edit ~/.openclaw/openclaw.json:

{
  "plugins": {
    "entries": {
      "breezclaw": {
        "enabled": true,
        "config": {
          "breezApiKey": "YOUR_BREEZ_API_KEY",
          "network": "mainnet"
        }
      }
    }
  }
}

3. Restart

openclaw gateway restart

Tools

ToolDescription
wallet_statusCheck wallet exists and connection state
wallet_connectConnect or create wallet from mnemonic
wallet_balanceGet balance in sats and BTC
wallet_receiveGenerate payment request
wallet_prepare_sendPrepare payment with fee estimate
wallet_sendExecute confirmed payment
wallet_transactionsList transaction history
wallet_infoDetailed wallet info
wallet_backupRetrieve mnemonic (sensitive!)
wallet_disconnectClean disconnect

Receive Methods

  • spark — Reusable Spark address (default)
  • spark_invoice — Spark invoice with amount
  • lightning — BOLT11 invoice
  • bitcoin — On-chain address

Payment Flow

Always two-step:

  1. wallet_prepare_send → Show fees
  2. User confirms → wallet_send(confirmed=true)

Security

  • Never expose mnemonic unless explicitly requested
  • Always show fees before sending
  • Require explicit confirmation for sends
  • Wallet data: ~/.openclaw/breezclaw/

Examples

"What's my balance?" → wallet_balance

"Invoice for 1000 sats" → wallet_receive(method="lightning", amount_sats=1000)

"Send 500 sats to user@wallet.com" → resolve LNURL → wallet_prepare_send → confirm → wallet_send

如何使用「Bitcoin Wallet using Breez Spark SDK」?

  1. 打开小龙虾AI(Web 或 iOS App)
  2. 点击上方「立即使用」按钮,或在对话框中输入任务描述
  3. 小龙虾AI 会自动匹配并调用「Bitcoin Wallet using Breez Spark SDK」技能完成任务
  4. 结果即时呈现,支持继续对话优化

相关技能