cocodA Cashu ecash wallet CLI for Bitcoin and Lightning payments. Use when managing Cashu tokens, sending/receiving payments via Lightning (bolt11) or ecash, hand...
Install via ClawdBot CLI:
clawdbot install Egge21M/cocodCocod is a Cashu wallet for managing ecash tokens and making Bitcoin/Lightning payments. It uses the Cashu protocol for privacy-preserving ecash transactions.
If a web/API request returns HTTP 402 Payment Required with an X-Cashu header, use this skill to parse and settle the request with cocod.
Cashu is a Chaumian ecash protocol that lets you hold and transfer Bitcoin-backed tokens privately. It enables unlinkable transactions using blind signatures.
# Install cocod CLI
bun install -g cocod
This skill is version-pinned to an exact cocod CLI release.
skill_version must match the npm package version.requires_cocod_version is pinned to that exact same version.Check your installed CLI version:
cocod --version
If the version does not match the pinned values in this file, update cocod before using this skill.
# Initialize your wallet (generates mnemonic automatically)
cocod init
# Or with a custom mint
cocod init --mint-url https://mint.example.com
# Check balance
cocod balance
# Check daemon and wallet status
cocod status
# Initialize wallet with optional mnemonic
cocod init [mnemonic] [--passphrase <passphrase>] [--mint-url <url>]
# Unlock encrypted wallet (only required when initialised with passphrase)
cocod unlock <passphrase>
# Get wallet balance
cocod balance
# Test daemon connection
cocod ping
# Receive Cashu token
cocod receive cashu <token>
# Create Lightning invoice to receive
cocod receive bolt11 <amount> [--mint-url <url>]
# Create Cashu token to send to someone
cocod send cashu <amount> [--mint-url <url>]
# Pay a Lightning invoice
cocod send bolt11 <invoice> [--mint-url <url>]
Use these commands when a server responds with HTTP 402 and an X-Cashu payment request.
# Parse an encoded X-Cashu request from a 402 response header
cocod x-cashu parse <request>
# Settle the request and get an X-Cashu payment header value
cocod x-cashu handle <request>
Typical flow:
X-Cashu from the 402 response.cocod x-cashu parse to inspect amount and mint requirements.cocod x-cashu handle to generate payment token header value.X-Cashu: cashuB... header.# Add a mint URL
cocod mints add <url>
# List configured mints
cocod mints list
# Get mint information
cocod mints info <url>
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.
# Get your NPC Lightning Address
cocod npc address
# Reserve/buy an NPC username (two-step)
cocod npc username <name>
cocod npc username <name> --confirm
# View wallet history
cocod history
# With pagination
cocod history --offset 0 --limit 20
# Watch for real-time updates
cocod history --watch
# Limit with watch
cocod history --limit 50 --watch
# Start the background daemon (started automatically when not running when required)
cocod daemon
# Stop the daemon
cocod stop
Initialize with encryption:
cocod init --passphrase "my-secret"
Receive via Lightning:
cocod receive bolt11 5000
# Returns: lnbc50u1... (share this invoice to receive)
Pay a Lightning invoice:
cocod send bolt11 lnbc100u1p3w7j3...
Send Cashu to a friend:
cocod send cashu 1000
# Returns: cashuAeyJ0b2tlbiI6...
# Friend receives with: cocod receive cashu cashuAeyJ0b2tlbiI6...
Check status and balance:
cocod status
cocod balance
View recent history:
cocod history --limit 10
AI Usage Analysis
Analysis is being generated⦠refresh in a few seconds.
Connect Claude to Clawdbot instantly and keep it connected 24/7. Run after setup to link your subscription, then auto-refreshes tokens forever.
ERC-8004 Trustless Agents - Register, discover, and build reputation for AI agents on Ethereum. Use when registering agents on-chain, querying agent registries, giving/receiving reputation feedback, or interacting with the AI agent trust layer.
Autonomous crypto trading on Base via Bankr. Use for trading tokens, monitoring launches, executing strategies, or managing a trading portfolio. Triggers on "trade", "buy", "sell", "launch", "snipe", "profit", "PnL", "portfolio balance", or any crypto trading task on Base.
Deploy ERC20 tokens on Base using Clanker SDK. Create tokens with built-in Uniswap V4 liquidity pools. Supports Base mainnet and Sepolia testnet. Requires PRIVATE_KEY in config.
Query DeFi portfolio data across 50+ chains via Zapper's GraphQL API. Use when the user wants to check wallet balances, DeFi positions, NFT holdings, token prices, or transaction history. Supports Base, Ethereum, Polygon, Arbitrum, Optimism, and more. Requires ZAPPER_API_KEY.
Interact with Solana blockchain via Helius APIs. Create/manage wallets, check balances (SOL + tokens), send transactions, swap tokens via Jupiter, and monitor addresses. Use for any Solana blockchain operation, crypto wallet management, token transfers, DeFi swaps, or portfolio tracking.