← 返回 Skills 市场
robertclarkson

Bitcoin Wallet using Breez Spark SDK

作者 robertclarkson · GitHub ↗ · v1.0.0
cross-platform ⚠ suspicious
1735
总下载
4
收藏
1
当前安装
1
版本数
在 OpenClaw 中安装
/install bitcoin-wallet
功能描述
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.
使用说明 (SKILL.md)

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

Tool Description
wallet_status Check wallet exists and connection state
wallet_connect Connect or create wallet from mnemonic
wallet_balance Get balance in sats and BTC
wallet_receive Generate payment request
wallet_prepare_send Prepare payment with fee estimate
wallet_send Execute confirmed payment
wallet_transactions List transaction history
wallet_info Detailed wallet info
wallet_backup Retrieve mnemonic (sensitive!)
wallet_disconnect Clean 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 [email protected]" → resolve LNURL → wallet_prepare_send → confirm → wallet_send
安全使用建议
Before installing: (1) verify and inspect the GitHub repo (review the code/build scripts) — do not blindly run npm install. (2) Prefer pinning to a specific commit or release and check repository reputation. (3) Store the Breez API key securely (consider using environment variables or a secrets manager rather than a plaintext openclaw.json), and limit who/what can read that config file. (4) Treat mnemonic retrieval (wallet_backup) as highly sensitive — only enable that functionality after code review and only with explicit, auditable user consent. (5) If you do not trust or cannot audit the repo, do not install it; consider using an audited/official wallet plugin instead. Finally, consider restricting autonomous invocation of this plugin or requiring manual confirmation for any spend operations.
功能分析
Type: OpenClaw Skill Name: bitcoin-wallet Version: 1.0.0 The skill bundle is classified as benign. While it provides access to sensitive cryptocurrency wallet operations, including retrieving a mnemonic via `wallet_backup`, the `SKILL.md` file contains explicit security instructions for the AI agent. These instructions actively mitigate risks by requiring two-step confirmation for payments and explicitly stating, 'Never expose mnemonic unless explicitly requested.' This demonstrates a clear intent to operate securely and prevent prompt injection or unauthorized actions, aligning with the stated purpose of a self-custodial wallet.
能力评估
Purpose & Capability
The name/description match the SKILL.md: it's a Breez SDK-based self-custodial wallet. Requesting a Breez API key is expected. However the registry metadata declares no primary credential or required env vars while the instructions explicitly require a Breez API key/config change — an inconsistency between declared metadata and the actual configuration steps.
Instruction Scope
SKILL.md instructs the user to clone a third-party GitHub repo into ~/.openclaw/extensions, run npm install and npm run build, edit ~/.openclaw/openclaw.json to add a breezApiKey, and restart the gateway. It documents a wallet_backup tool that retrieves the wallet mnemonic (sensitive). While most steps are plausible for a plugin, they grant the plugin persistent access to wallet files (~/.openclaw/breezclaw/) and the ability to expose mnemonic data if misused. The instructions do not require code review, pinning to a commit, or guidance to store secrets securely.
Install Mechanism
There is no formal install spec in the registry, but SKILL.md tells users to git clone a GitHub repo and run npm install/build. Running npm install on arbitrary repository code can execute arbitrary install/build scripts and pull untrusted dependencies. The repo URL is a third‑party source (onesandzeros-nz) and the instruction does not pin a commit or provide integrity checks.
Credentials
Registry metadata lists no required env vars or primary credential, yet the instructions require a Breez API key to be placed in ~/.openclaw/openclaw.json. That mismatch is an omission in metadata. Additionally, the skill exposes a wallet_backup capability to retrieve mnemonic data — access to that secret is proportionally high for a plugin and must be protected; instructions do not prescribe secure storage or limiting exposure of the API key or mnemonic.
Persistence & Privilege
The skill is not marked always:true (good). Enabling the plugin via openclaw.json and installing it creates a persistent plugin on the agent that can be invoked by the model (disable-model-invocation is false). This is expected for a wallet plugin, but combined with the installation of external code and the ability to retrieve mnemonics, it increases the blast radius if the plugin is malicious or contains vulnerabilities.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install bitcoin-wallet
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /bitcoin-wallet 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release of BreezClaw, a self-custodial Bitcoin and Lightning wallet for AI agents. - Supports checking Bitcoin balance, sending/receiving payments, generating Lightning invoices, and managing wallet operations. - Integration with Breez SDK Spark; requires BreezClaw plugin and Breez API key. - Offers a range of wallet tools: status, connect, balance, receive, send, transactions, info, backup, and disconnect. - Provides multiple receive methods: Spark, Lightning (BOLT11), and on-chain Bitcoin. - Secure two-step payment flow with fee estimation and explicit confirmation before sending. - Emphasizes user security: never exposes mnemonic unless requested, always displays fees, and requires confirmation for all sends.
元数据
Slug bitcoin-wallet
版本 1.0.0
许可证
累计安装 1
当前安装数 1
历史版本数 1
常见问题

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. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 1735 次。

如何安装 Bitcoin Wallet using Breez Spark SDK?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install bitcoin-wallet」即可一键安装,无需额外配置。

Bitcoin Wallet using Breez Spark SDK 是免费的吗?

是的,Bitcoin Wallet using Breez Spark SDK 完全免费(开源免费),可自由下载、安装和使用。

Bitcoin Wallet using Breez Spark SDK 支持哪些平台?

Bitcoin Wallet using Breez Spark SDK 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Bitcoin Wallet using Breez Spark SDK?

由 robertclarkson(@robertclarkson)开发并维护,当前版本 v1.0.0。

💬 留言讨论