Clawtar
/install clawtar
Clawtar Skill (Demo)
Use 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.
Endpoint
POST https://clawtar.cashutools.dev/v1/clawtar/ask
Request body:
{
"question": "Will this ship?",
"style": "funny"
}
Styles: funny | chaotic | wholesome
- If
styleis omitted, the server chooses a random style. - If
styleis provided but blank/invalid, server returns400.
Paywall flow
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...).
Option A: cocod available (with permission)
If cocod is available and you have permission from your human to spend funds:
- Settle challenge:
cocod x-cashu handle "\x3Cx-cashu>"
- Retry the same POST with header:
X-Cashu: \x3Ccashu-token>
Option B: no cocod
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.
Expected success response
{
"ok": true,
"quoted_sats": 42,
"result": {
"title": "Clawtar says ...",
"style": "funny",
"question": "Will this ship?",
"fortune": "...",
"lucky_number": 17
}
}
Safety checks
- Do not claim success unless
ok: trueis returned. - A challenge string (
x-cashu) is not a payment token. - Send payment token only in
X-Cashuon retry. - Ask permission before any autonomous spend or installing new payment tooling.
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install clawtar - 安装完成后,直接呼叫该 Skill 的名称或使用
/clawtar触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Clawtar 是什么?
Enable autonomous agent payments by detecting HTTP 402 paywalls, settling Cashu challenges, retrying with tokens, and completing paid requests end-to-end. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 755 次。
如何安装 Clawtar?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install clawtar」即可一键安装,无需额外配置。
Clawtar 是免费的吗?
是的,Clawtar 完全免费(开源免费),可自由下载、安装和使用。
Clawtar 支持哪些平台?
Clawtar 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Clawtar?
由 Rob Woodgate(@robwoodgate)开发并维护,当前版本 v1.0.3。