cocod
Skill by cashubtc
Cocod is a Cashu ecash wallet CLI for sending and receiving Bitcoin and Lightning payments. It suits agents that manage Cashu tokens, handle HTTP 402 X-Cashu payment requests, or review wallet history.
Install cocod
Built from the published package, never by AI.
git clone --depth 1 https://github.com/cashubtc/coco /tmp/coco && mkdir -p ~/.claude/skills && cp -r /tmp/coco/packages/cocod ~/.claude/skills/cocodRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/cashubtc/coco /tmp/coco && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/coco/packages/cocod ~/.gemini/antigravity-cli/skills/cocodAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
Cocod is a Cashu wallet command line tool for managing ecash tokens and making Bitcoin and Lightning payments. It covers receiving and sending Cashu tokens and Lightning bolt11 invoices, settling HTTP 402 X-Cashu payment requests under NUT-24, managing mints, viewing wallet history, and getting a Lightning Address through NPC. The source describes Cashu as a privacy-preserving ecash protocol that uses blind signatures.
The skill explains how an AI agent should run the cocod CLI. It requires explicit user permission before any command that can spend wallet funds, and it recommends preview commands such as cocod x-cashu parse before cocod x-cashu handle. The skill is aimed at people who manage Cashu tokens, pay or receive Lightning payments, or handle 402 payment requests from web services. It is pinned to cocod version 0.0.17.
Written from the project's SKILL.md and checked against it.
What it can do
- wallet initializeCreates a wallet and returns host-generated Wallet Recovery Material.
- balanceShows the current wallet balance.
- receive cashuReceives a Cashu token into the wallet.
- receive bolt11Creates a Lightning invoice to receive a given amount.
- send cashuCreates a Cashu token to send to someone.
- send bolt11Pays a Lightning invoice from the wallet.
- x-cashu parseInspects amount and mint requirements of an X-Cashu request before paying.
- x-cashu handleSettles an X-Cashu request and returns the payment header value.
- mintsAdds, lists and shows information for configured mint URLs.
- historyShows wallet history, with pagination and a watch mode for updates.
What you need
- cocod CLI, from the workspace source or the npm release
- Bun for installing and building the workspace package
Try asking
- Check my cocod wallet balance and show recent history
- Parse this X-Cashu 402 request before paying it
- Create a Lightning invoice for 5000 sats with cocod
Good to know
- The cocod package is private and runs from workspace source in this repository.
- Spend actions such as send, handle and npc username --confirm require explicit user permission.
- The skill is version-pinned, so the installed cocod must match version 0.0.17.
- Unsupported or malformed NUT-10 spending conditions fail with a 400 before any proofs move.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: packages/cocod/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to cocod
All alternatives →Lists live launchpad token feeds and AI-detected hot topics for meme tokens on BSC, Solana and Base. Covers new, finalizing and just-migrated tokens on launchpads such as Pump.fun and Four.meme.
The okx-market skill lets an AI assistant retrieve cryptocurrency market data from the OKX V5 REST API. It is aimed at users who want spot, derivatives and index data in Python without an account.
Calculates key SaaS health metrics such as ARR, churn, LTV and CAC from raw business numbers, then gives prioritized advice. Built for founders and finance leads who share revenue or customer figures.
Fetches U.S. SEC EDGAR data for research. It resolves a ticker to its CIK, lists recent filings with primary-document URLs, and pulls XBRL financial series. Built for analysts who need free, U.S.-only filing data.
Provides free, no-auth access to Eastmoney market data for A-shares, Hong Kong stocks and US stocks. It covers fund flows, dragon-tiger lists, financial statements and stock screening.
Reads and manages a user's QuickBooks business through Intuit's official MCP server. It answers finance questions from reports, invoices, customers, products and benchmarks, and completes approved actions.
Compare with meme-rush, okx-market or saas-metrics-coach
cocod: common questions
Does cocod support HTTP 402 payment requests?
Yes. The source says cocod accepts creqA and creqB X-Cashu requests and supports the NUT-24 HTTP 402 flow.
Can an agent spend wallet funds with this skill without asking?
No. The skill says an agent must ask for explicit permission before spending, unless the user has already clearly instructed the spend.
What is the Lightning Address feature in cocod?
The source says NPC gives a Lightning Address based on a Nostr npub, and buying a username gives a human-readable handle in a two-step flow.
How do I install cocod?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is cocod free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is cocod safe to use?
It scores 61 of 100. Grades: maintenance A, licence A, quality C. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to cocod?
Similar skills: meme-rush, okx-market, saas-metrics-coach, sec-edgar.
