| name | cocod |
| description | A Cashu ecash wallet CLI for Bitcoin and Lightning payments. Use when managing Cashu tokens, sending/receiving payments via Lightning (bolt11) or ecash, or viewing wallet history. |
| compatibility | Requires cocod CLI to be installed. Supports Cashu ecash protocol and Lightning Network payments. |
| metadata | {"project":"cocod","type":"cashu-wallet","networks":["cashu","bitcoin","lightning"]} |
Cocod - Cashu Wallet CLI
Cocod is a Cashu wallet for managing ecash tokens and making Bitcoin/Lightning payments. It uses the Cashu protocol for privacy-preserving ecash transactions.
What is Cashu?
Cashu is a Chaumian ecash protocol that lets you hold and transfer Bitcoin-backed tokens privately. It enables unlinkable transactions using blind signatures.
Installation
bun install -g cocod
Quick Start
cocod init
cocod init --mint-url https://mint.example.com
cocod balance
Commands
Core Wallet
cocod status
cocod init [mnemonic] [--passphrase <passphrase>] [--mint-url <url>]
cocod unlock <passphrase>
cocod balance
cocod ping
Receiving Payments
cocod receive cashu <token>
cocod receive bolt11 <amount> [--mint-url <url>]
Sending Payments
cocod send cashu <amount> [--mint-url <url>]
cocod send bolt11 <invoice> [--mint-url <url>]
Mints
cocod mints add <url>
cocod mints list
cocod mints info <url>
Lightning Address (NPC)
Lightning Addresses are email-style identifiers (like name@npubx.cash) that let others pay you over Lightning. If you have not purchased a username, NPC provides a free address from your Nostr npub; purchasing a username gives you a human-readable handle. Buying a username is a two-step flow so you can review the required sats before confirming payment.
cocod npc address
cocod npc username <name>
cocod npc username <name> --confirm
History
cocod history
cocod history --offset 0 --limit 20
cocod history --watch
cocod history --limit 50 --watch
Daemon Control
cocod daemon
cocod stop
Examples
Initialize with encryption:
cocod init --passphrase "my-secret"
Receive via Lightning:
cocod receive bolt11 5000
Pay a Lightning invoice:
cocod send bolt11 lnbc100u1p3w7j3...
Send Cashu to a friend:
cocod send cashu 1000
Check status and balance:
cocod status
cocod balance
View recent history:
cocod history --limit 10
Concepts
- Cashu: Privacy-preserving ecash protocol using blind signatures
- Mint: Server that issues and redeems Cashu tokens
- Token: Transferable Cashu string representing satoshi value
- Bolt11: Lightning Network invoice format
- NPC: Lightning Address service for receiving payments
- Mnemonic: Seed phrase for wallet recovery