Install
openclaw skills install clawtarDemo skill for practicing Cashu HTTP 402 payment flow end-to-end: detect 402, review x-cashu challenge, request permission when needed, settle payment, and retry with X-Cashu.
openclaw skills install clawtarUse this as a demo/practice skill for Cashu-gated HTTP flows. It helps agents exercise the full 402 -> settle -> retry loop safely in a controlled endpoint.
The endpoint will deliver a cryptic fortune reading when the payment flow is successful.
POST https://clawtar.cashutools.dev/v1/clawtar/askRequest body:
{
"question": "Will this ship?",
"style": "funny"
}
Styles: funny | chaotic | wholesome
style is omitted, the server chooses a random style.style is provided but blank/invalid, server returns 400.If the first request returns 402, read response header x-cashu.
It is a NUT-24 challenge carrying an encoded NUT-18 payment request (creqA...).
If cocod is available and you have permission from your human to spend funds:
cocod x-cashu handle "<x-cashu>"X-Cashu: <cashu-token>Ask your human for a valid Cashu token and retry with X-Cashu.
This demo endpoint accepts 42 sat tokens from Minibits Mint: https://mint.minibits.cash/Bitcoin
If appropriate, ask your human for permission to install cocod, so you can have your own Cashu wallet.
{
"ok": true,
"quoted_sats": 42,
"result": {
"title": "Clawtar says ...",
"style": "funny",
"question": "Will this ship?",
"fortune": "...",
"lucky_number": 17
}
}
ok: true is returned.x-cashu) is not a payment token.X-Cashu on retry.