Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

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.

  • Score 61
  • 48 stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

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/cocod

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install cocod in Claude Code

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

A

No 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 →

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.

Add to stack

Loading.