Cashu Wallet
Manages a Cashu ecash wallet via CLI: send/receive Lightning payments, handle ecash tokens, and connect to multiple mints.
What this file does
Manages a Cashu ecash wallet via CLI: send/receive Lightning payments, handle ecash tokens, and connect to multiple mints.
When to use it
- You need a privacy-focused Bitcoin wallet for Lightning payments
- You want to send or receive Cashu ecash tokens
- You need to manage multiple mints from one wallet
- You want to restore a wallet from a seed phrase
Assumes this stack
name: Cashu wallet description: Manage Bitcoin and Cashu ecash. Send/receive via Lightning, manage multiple mints, and transact privately with ecash tokens. read_when:
- User wants to pay for a service using Bitcoin or Lightning
- User wants to receive Bitcoin or Lightning payments
- User wants to check their wallet balance or transaction history
- User wants to send or receive Cashu ecash tokens
- User wants to add or manage Cashu mints
- User wants to restore their wallet from a seed metadata: {"clawdbot":{"emoji":"š„„","requires":{"bins":["node","npm"]}}}
Cashu Wallet
Cashu Wallet is a lightweight, privacy-focused Bitcoin wallet powered by Cashu ecash. It allows you to send and receive payments instantly using the Lightning Network or by exchanging ecash tokens directly.
š Key Features
- Bitcoin over Lightning: Seamlessly send and receive Lightning payments.
- Cashu Ecash: Privacy-preserving ecash tokens.
- Multi-Mint Support: Connect to multiple mints to diversify risk or support different currencies (sats, usd, eur, etc., depending on the mint).
š¦ Installation & Setup
The wallet is a Node.js CLI application located in this directory.
-
Install Dependencies:
cd cli npm install -
Create Alias (Optional but Recommended): To make commands easier to run, you can create an alias:
alias cashu='node cli/wallet.mjs'
š Usage Guide
All commands can be run using node cli/wallet.mjs <command> (or cashu <command> if aliased).
1. Managing Mints
Before you can do anything, you need to trust a Mint. A mint exchanges Bitcoin (Lightning) for ecash tokens.
- List Mints: View connected mints and their status.
node cli/wallet.mjs mints - Add a Mint: connect to a new mint URL.
node cli/wallet.mjs add-mint https://mint.url # Example (Testnut): node cli/wallet.mjs add-mint https://testnut.cashu.space
2. Receiving Money (In)
-
Via Lightning (Deposit): Create a Lightning invoice to swap BTC for ecash.
# Usage: invoice <amount> [mint_url] node cli/wallet.mjs invoice 1000This command will generate an invoice and wait for payment. Once paid, it automatically mints the tokens.
-
Via Ecash Token: Receive a Cashu token string sent by someone else.
# Usage: receive <token> node cli/wallet.mjs receive "cashuA..."
3. Sending Money (Out)
-
Via Lightning (Pay Invoice): Pay a BOLT11 Lightning invoice using your ecash balance.
# Usage: pay-invoice <bolt11_invoice> [mint_url] node cli/wallet.mjs pay-invoice lnbc10u... -
Via Ecash Token: Generate a token to send to someone else off-chain.
# Usage: send <amount> [mint_url] node cli/wallet.mjs send 500Output: A
cashuA...token string that you can share.
4. Wallet Management
-
Check Balance: See your total balance across all mints.
node cli/wallet.mjs balance -
Transaction History: View past deposits, withdrawals, and transfers.
node cli/wallet.mjs history -
Check Pending Invoice: If you created an invoice but closed the CLI before it confirmed, check it manually.
# Usage: check-invoice <quote_id> [mint_url] node cli/wallet.mjs check-invoice "quote_id_here" -
Restore Wallet: Recover funds from a specific mint using your seed (stored in
~/.cashu-wallet/seed.txt).node cli/wallet.mjs restore https://mint.url
š ļø Troubleshooting
- Logs & Data: Data is stored in
~/.cashu-wallet/wallet.db. - Recommended Mint:
https://mint.coinos.io
What's inside
7 command groups, 10 CLI examples, 2 setup steps, and troubleshooting notes
Change this for your project
- Replace
https://testnut.cashu.spacewith your preferred test mint URL - Replace
https://mint.coinos.iowith your recommended production mint - Replace
cli/wallet.mjspath if your project structure differs
Where it goes
Save as SKILL.md inside a skill folder. Loaded when the agent selects that skill.
Worth borrowing
- Alias creation for frequent CLI commands
- Separate mint management from wallet operations
Related Documents
Video Script
Guides an AI to write ready-to-film two-column AV scripts with hooks, segment breakdowns, B-roll cues, text overlays, timing estimates, and shot lists.
Image Generation Skill
Provides Python functions for generating, editing, and transforming images via DALL-E 3, FLUX (Replicate/fal.ai), and local Stable Diffusion, plus utilities and prompt engineering helpers.
AI Artist ā Engineering Specification
Defines a 21-section engineering specification for a prompt construction skill, covering contracts, deterministic design, error taxonomy, and production readiness.
Karis
Turns an AI agent into a marketing CMO with brand analysis, SEO audits, Reddit monitoring, and viral tweet optimization via CLI or API.