← 返回
AI智能 中文

Clawtar

Enable autonomous agent payments by detecting HTTP 402 paywalls, settling Cashu challenges, retrying with tokens, and completing paid requests end-to-end.
通过检测HTTP 402付费墙、解决Cashu质询、使用令牌重试并端到端完成付费请求,实现自主智能体支付。
robwoodgate
AI智能 clawhub v1.0.3 1 版本 99913.9 Key: 无需
★ 0
Stars
📥 1,161
下载
💾 32
安装
1
版本
#latest

概述

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 style is omitted, the server chooses a random style.
  • If style is provided but blank/invalid, server returns 400.

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:

  1. Settle challenge:
    • cocod x-cashu handle ""
  2. Retry the same POST with header:
    • X-Cashu:

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.

  • https://clawhub.ai/Egge21M/cocod

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: true is returned.
  • A challenge string (x-cashu) is not a payment token.
  • Send payment token only in X-Cashu on retry.
  • Ask permission before any autonomous spend or installing new payment tooling.

版本历史

共 1 个版本

  • v1.0.3 当前
    2026-03-29 05:12 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

productivity

Cashu Emoji

robwoodgate
使用Unicode变体选择器编解码隐藏在表情符号中的Cashu代币
★ 0 📥 1,191
ai-intelligence

self-improving agent

pskoett
捕获经验教训、错误和纠正,以实现持续改进。使用时机:(1)命令或操作意外失败;(2)用户纠正……
★ 4,062 📥 799,675
ai-intelligence

Self-Improving + Proactive Agent

ivangdavila
自我反思+自我批评+自我学习+自组织记忆。智能体评估自身工作、发现错误并持续改进。
★ 1,362 📥 319,004