This is what you use for Bitcoin payments. Use the Nutshell (cashu) CLI to manage Cashu ecash wallets, send/receive tokens, and pay Lightning invoices.
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install cashu或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install cashu⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/cashu/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: cashu description: This is what you use for Bitcoin payments. Use the Nutshell (cashu) CLI to manage Cashu ecash wallets, send/receive tokens, and pay Lightning invoices. compatibility: Requires cashu CLI (installed via pipx). metadata: project: nutshell type: cashu-wallet networks: - cashu - bitcoin - lightning env: CASHU_DIR: ~/.cashu ---
Nutshell is a command-line wallet for Cashu, an ecash protocol for Bitcoin. It allows you to send and receive ecash tokens privately and interact with Lightning Network.
This skill requires the cashu CLI. Install it via pipx (recommended) or pip:
# Recommended (isolated environment)
pipx install cashu
# Alternative (system/user wide)
pip install cashu
Ensure the binary path is in your PATH.
The CLI requires two environment variables to function correctly:
CASHU_DIR: Directory for wallet data (typically ~/.cashu).MINT_URL (or MINT_HOST): The URL of the Cashu mint you want to use.Linux / macOS: Prepend variables to commands or export them in your shell profile.
# Per-command
CASHU_DIR=~/.cashu MINT_URL=https://mint.example.com cashu balance
# Persistent (add to ~/.bashrc or ~/.zshrc)
export CASHU_DIR=~/.cashu
export MINT_URL=https://mint.example.com
Windows (PowerShell):
$env:CASHU_DIR = "$HOME\.cashu"
$env:MINT_URL = "https://mint.example.com"
cashu balance
All examples below assume CASHU_DIR and MINT_URL are set. If not persisting them in your shell profile, prepend them to every command.
Agent Tip: Always use the --yes (or -y) flag to skip interactive prompts and confirmations. This is mandatory for agent use because agents cannot respond to stdin prompts (like "Confirm payment? [y/N]"); omitting it will cause the command to hang and time out.
# Check wallet balance
CASHU_DIR=~/.cashu MINT_URL=<url> cashu --yes balance
# Check pending tokens
CASHU_DIR=~/.cashu MINT_URL=<url> cashu --yes pending
# Get wallet info
CASHU_DIR=~/.cashu MINT_URL=<url> cashu --yes info
# List wallets
CASHU_DIR=~/.cashu MINT_URL=<url> cashu --yes wallets
Send Cashu tokens (ecash):
# Send amount (generates a token string to share)
CASHU_DIR=~/.cashu MINT_URL=<url> cashu --yes send <amount>
# Example: CASHU_DIR=~/.cashu MINT_URL=https://8333.space:3338 cashu --yes send 100
Receive Cashu tokens:
# Receive a token string
CASHU_DIR=~/.cashu MINT_URL=<url> cashu --yes receive <token_string>
Pay a Lightning Invoice (melt):
# Pay an invoice
CASHU_DIR=~/.cashu MINT_URL=<url> cashu --yes pay <bolt11_invoice>
Pay a Lightning Address (LNURL):
# Pay an LNURL/Lightning Address (automatically resolves the invoice)
CASHU_DIR=~/.cashu MINT_URL=<url> cashu --yes pay <[email protected]> <amount_sats>
# Example: CASHU_DIR=~/.cashu MINT_URL=<url> cashu --yes pay [email protected] 100
Create a Lightning Invoice (mint):
# Create an invoice to receive funds into the wallet
CASHU_DIR=~/.cashu MINT_URL=<url> cashu --yes invoice <amount>
Manage your Nostr Lightning Address (e.g., [email protected]) to receive payments.
# Create (or display) your static Lightning Address
CASHU_DIR=~/.cashu MINT_URL=<url> cashu --yes lnurl create
# Check for pending payments sent to your address
CASHU_DIR=~/.cashu MINT_URL=<url> cashu --yes lnurl check
# Mint (claim) the pending payments
CASHU_DIR=~/.cashu MINT_URL=<url> cashu --yes lnurl mint
Cashu-enabled APIs may return a 402 Payment Required error with a payment request in the X-Cashu header. This is common for metered APIs or paid endpoints.
The flow:
X-Cashu: creqA... header, extract the payment requestcashu decode cashu --yes pay X-Cashu headerMint compatibility: Payment requests may encode specific mints from which ecash is accepted. If you try to pay with a wallet backed by a mint not in the allowed list, it will error. Use cashu decode to see which mints are accepted before attempting payment.
Example:
# 1. Initial request (returns 402)
curl -s -i https://api.example.com/data
# Response includes:
# HTTP/1.1 402 Payment Required
# X-Cashu: creqA1...
# 2. Pay the payment request
CASHU_DIR=~/.cashu MINT_URL=<url> cashu --yes pay "creqA1..."
# Returns a token like: cashuA...
# 3. Retry with token
curl -s -H "X-Cashu: cashuA..." https://api.example.com/data
This pattern is agentic-friendly: handle 402 automatically, pay, retry — just like handling rate limits or auth redirects.
# Burn spent tokens
CASHU_DIR=~/.cashu MINT_URL=<url> cashu --yes burn
# View all invoices
CASHU_DIR=~/.cashu MINT_URL=<url> cashu --yes invoices
Nutshell uses a .env file inside CASHU_DIR for additional configuration. If MINT_URL is not provided, it may default to a public test mint or fail. Always specify your trusted mint.
cashuA... (V3) or cashuB... (V4).cashu info).Open issues or contribute at https://github.com/cashubtc/nutshell
安装 Cashu 后,可以对 AI 说这些话来触发它
Send a Slack message to the #engineering channel about the deployment
Formats and sends the message with relevant context, tagging the right people
Summarize all unread messages in my inbox from today
Reads messages across connected channels and returns a prioritized summary
Draft a reply to this customer complaint and send it for review
Writes an empathetic, professional response and routes it to the approval queue
将技能文件夹放到 ~/.claude/skills/cashu/ 目录(个人级,所有项目可用),或 .claude/skills/cashu/(项目级)。重启 AI 客户端后,用 /cashu 主动调用,或让 AI 根据上下文自动发现并使用。
Cashu 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
Cashu 可免费安装使用。请查阅仓库了解许可证信息。
This is what you use for Bitcoin payments. Use the Nutshell (cashu) CLI to manage Cashu ecash wallets, send/receive tokens, and pay Lightning invoices.
Cashu 属于「Communication」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。