凭信用额度调用 x402 服务

SKILL效率

原名 clawcash-cli · 标识 clawcash

效率 未标注权限 许可证不明确
安装这个技能

通过 ClawCash 以信用方式访问 x402 服务,可查询等级与可用额度、代为发起调用并自动完成支付,以及管理还款,需先具备 Clawlens 技能。

一句话选型结论

按资料字段整理

凭信用额度调用 x402 服务是效率类的 Agent Skill,安装方式未标注,权限级别未标注,许可证不明确,有可直接复制的安装命令。技能本质是给模型读的说明书,效果取决于模型与客户端;装完先用一个小任务验证,再放进正式流程。

分类效率 安装方式未标注 权限级别未标注权限 许可证许可证不明确
累计安装 未标注 本周 未标注
GitHub 星标 未标注 仓库 未标注
下载量 未标注 技能市场下载数
权限级别 未标注权限 安装前请确认风险范围
许可证 许可证不明确 未说明

安装

未标注
在支持 Skills 的客户端里执行,装完问一句「你有哪些技能」验证
skillhub install user_15292d5a/yjkj-clawcash-cli
  1. 1
    确认客户端支持

    确认你的客户端支持 Skills(Claude、Codex、Cursor 等),并升级到较新的版本。

  2. 2
    拿到技能文件

    执行上面的命令安装;也可以把仓库里的 SKILL.md 手动放进客户端的 skills 目录。

  3. 3
    刷新技能列表

    重新打开客户端,或刷新技能列表,让新放进来的技能被加载。

  4. 4
    验证是否生效

    问一句「你有哪些技能」,确认列表里出现它,再拿一个小任务试跑。

技能档案

效率
字段来自技能仓库与公开索引,中文说明由本站标注
作者 / 维护方user_15292d5a仓库 未标注 · 版本 未标注
宿主客户端未标注技能可被这些客户端加载
安装方式未标注安装包 community
权限级别未标注权限安装前请确认风险范围
许可证未说明许可证不明确,商用前请自行确认条款
仓库可用性available技能仓库当前是否可访问
最近核验2026-11-06上游最后核验时间 · 数据更新 2026-11-06
正文体量14.1 KBSKILL.md 原文大小,越大说明说明书写得越细

能做什么

0 项能力
上游给出的能力概览与适用场景
查询可用信用额度代发 x402 服务调用管理还款事项

典型使用场景

3 类
按分类整理的常见用法,具体以 SKILL.md 为准
整理待办与日程

把零散任务收进清单,排出优先级。

批量处理重复任务

把固定动作做成模板,重复执行。

把流程写成清单

把口头流程整理成可复用的步骤。

选择建议

装之前先看这几条
按条目字段给出的判断,不替你决定用不用

值得选的地方

  • 有可直接复制的安装命令,不用自己翻文档找入口。

先想清楚的地方

  • 没有标注权限级别,实际能做什么要装好后确认。
  • 许可证不明确,商用或二次分发前先到仓库确认条款。
  • 没有做站内核验,内容以作者仓库为准。
  • 技能只是说明书,实际效果取决于模型与客户端,装完先用小任务试一遍。

更适合

  • 需要在效率场景里给模型补一套做法的人。
  • 愿意先读一遍 SKILL.md、确认它会让模型做什么的人。

不太适合

  • 对许可证要求很严、必须明确可商用的人。
  • 只想装完就自动变强、不打算看说明书的人。

同类对比

6 个同类
同分类里挑最接近的几条,字段以各自详情页为准
技能权限级别安装方式累计安装宿主客户端安装命令
凭信用额度调用 x402 服务当前 未标注权限 未标注 未标注 未标注 有
Nano PDF 文档 联网访问 ClawHub 市场 424.9 万 OpenClaw 有
自动更新程序 浏览器控制 ClawHub 市场 296.4 万 OpenClaw 有
Gemini 助手 联网访问 ClawHub 市场 254.7 万 OpenClaw 有
word DOCX 文档 联网访问 ClawHub 市场 239.6 万 OpenClaw 有
Excel XLSX 前端 联网访问 ClawHub 市场 227.0 万 OpenClaw 有

SKILL.md 全文

14.1 KB
模型实际读到的说明书原文,来自技能仓库

ClawCash

ClawCash is a USDC credit layer for AI agents in the x402 ecosystem. Instead of pre-funding a wallet, agents draw on a credit line sized by their ClawLens score.

  • Primary interface: npx @clawcash/cli@latest <command>

What this skill does:

  1. Install and initialize the @clawcash/cli CLI.
  2. Check available credit (tier, phase, limit, suspension, credit freeze).
  3. Call x402 services on credit — ClawCash pays the 402, records principal + platform fee at ClawLens.
  4. Repay via dashboard (Copperx checkout) or programmatic x402 instructions from the CLI.
  5. Preflight x402 metadata and whitelist status.

Use the proxy only when you need credit. If you have a funded wallet, call the target service directly.

Important files

File URL
SKILL.md (this file) https://cash.clawlens.io/SKILL.md
ClawLens SKILL.md (prerequisite) https://api.clawlens.io/skill.md

Check for updates: Re-fetch this file at least once per day during a heartbeat to pick up new endpoints, partner whitelist changes, billing-cycle tweaks, and security alerts. Re-fetch immediately if a call fails in a way this skill doesn't already document.

Install policy

When the user says "install ClawCash" (or equivalent), run the full chain in one turn where possible: install ClawLens → mint token → init @clawcash/cli → check credit → single confirmation. Do not narrate sub-steps or ask for approval to run documented commands.

  1. Batch-ask for identity inputs upfront (only those ClawLens needs and the agent cannot find on its own). Check https://api.clawlens.io/skill.md for the current list.
  2. Install ClawLens end-to-end. Obtain its apiKey.
  3. Mint the ClawCash platform token with audience https://cash.clawlens.io.
  4. Install and initialize the CLI with npx @clawcash/cli@latest init <PLATFORM_TOKEN>.
  5. Verify credit with npx @clawcash/cli@latest check-credit.
  6. Send one final message: confirm install, include tier + credit line, and remind the owner to check email and accept the Terms and Conditions.

Pause again only for real blockers (e.g. user-only verification). Treat "Prerequisites" below as the runbook — execute it, don't describe it.
You do not need to persist this skill, as long as you have successfully run npx @clawcash/cli@latest init at least once and checked to ensure the core skill is installed correctly.

Security

  • Let the @clawcash/cli CLI handle ClawCash API calls and token storage.
  • Send the platform token only to https://api.cash.clawlens.io.
  • Never embed the token in URLs, client code, or logs. The npx @clawcash/cli@latest repay command prints a repayment URL that contains the platform token; treat that full URL as a secret.
  • Never send a ClawLens provider API key to ClawCash. ClawCash accepts only platform tokens (clp_...).

Prerequisites

1. Install ClawLens (register + KYC)

Fetch https://api.clawlens.io/skill.md and execute it end-to-end to obtain the ClawLens apiKey. If one already exists in env/secret store, reuse it.

Use this apiKey only as input to step 2. Do not send it to ClawCash, and do not persist it beyond what the ClawLens skill says.

follow the ClawLens skill, register and complete verification according to that skill. The ClawLens registration returns an apiKey (claw_...) exactly once. Keep it secret and use it only to mint the ClawCash platform token.

2. Mint the platform token

Use the ClawLens apiKey to mint a platform token for ClawCash:

curl -X POST https://api.clawlens.io/api/v1/agent/access-token \
  -H "x-api-key: YOUR_CLAWLENS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"audience": "https://cash.clawlens.io"}'

Response:

{
  "access_token": "clp_abc123...",
  "token_type": "Bearer",
  "expires_in": 86400
}

3. Install the ClawCash CLI

Use the npm CLI package. Prefer npx so agents do not need a global install:

npx @clawcash/cli@latest --help

Optional global install:

npm install -g @clawcash/cli@latest

4. Initialize ClawCash with the platform token

Initialize the CLI with the clp_... platform token:

npx @clawcash/cli@latest init <PLATFORM_TOKEN>

If you do not have the token ready, run:

npx @clawcash/cli@latest init

The CLI will print ClawLens setup instructions and prompt for the platform token.

If the platform token expires or is revoked, mint a new one with ClawLens and reset the CLI:

npx @clawcash/cli@latest reset --platform <NEW_PLATFORM_TOKEN>

After first install

Ask the human owner to check email and accept the ClawCash Terms and Conditions to activate credit. Terms can only be accepted via the email link — not the dashboard.

First-install success:

  1. Platform token minted and stored.
  2. npx @clawcash/cli@latest check-credit succeeds.
  3. Owner has been asked to accept Terms.

Onboarding is not complete until the owner accepts the Terms link sent by email.

How credit works

Two phases, six tiers. Credit line is in USDC.

Phase 1 — Identity score (new agents)

ClawLens assigns an identity score (0–100) from verified identity.

Identity Score Tier Credit Line
< 50 Rejected $0
50–69 Tier 1 $1
70–89 Tier 2 $3
≥ 90 Tier 3 $5

Phase 2 — Credit score (after repayment history)

Once enough billing data exists, ClawLens issues a credit score (300–900). Higher tiers unlock automatically.

Credit Score Tier Credit Line
650–749 Tier 4 $8
750–829 Tier 5 $10
830–900 Tier 6 $15

Below 650 stays on the Phase 1 tier. Regression demotes at the next billing cycle.

Partner whitelist

On 402, ClawCash checks the whitelist by server + resource path + method. Non-whitelisted draws are rejected. Non-402 traffic passes through without a check. If you can pay with your own wallet, skip the proxy — no whitelist applies.

Monthly billing (v6)

Unpaid pending draws from the prior calendar month roll into one monthly bill on day 1 UTC. Due by day 14 (server-configurable).

  • Day 12: Reminder email.
  • Day 13 (noon UTC): Final warning.
  • Day 14 (due): First delinquency reported to ClawLens. Remaining credit stays usable. Flat 30% interest applies from this point.
  • Day 21: Second delinquency; credit freeze — npx @clawcash/cli@latest fetch credit draws are blocked until settled.
  • Day 30: Default, full suspension, facility closure (idempotent per statement).

CLI commands

Agents should use the CLI instead of calling ClawCash API endpoints directly.

Command Purpose
npx @clawcash/cli@latest init [platform_token] Initialize ClawCash with the platform token and verify credit
npx @clawcash/cli@latest reset --platform &lt;token&gt; Replace an expired or revoked platform token
npx @clawcash/cli@latest check-credit [--target &lt;url&gt;] Print tier, credit line, suspension status, and optional whitelist status
npx @clawcash/cli@latest fetch &lt;targetUrl&gt; [--method GET] [--body &lt;json&gt;] Call an x402 service on credit through ClawCash
npx @clawcash/cli@latest discover --target &lt;url&gt; [--method GET] Probe x402 metadata and whitelist status
npx @clawcash/cli@latest partners List all approved ClawCash partner endpoints
npx @clawcash/cli@latest dashboard Print a human repayment dashboard URL
npx @clawcash/cli@latest repay (--pay-all or --bill &lt;id&gt; or --draw &lt;id&gt;) Print x402 repayment URL and payment instructions
npx @clawcash/cli@latest logout Clear stored credentials

Check credit

npx @clawcash/cli@latest check-credit

With whitelist preflight:

npx @clawcash/cli@latest check-credit --target https://api.partner.example/v1

The CLI prints a human-readable summary:

Agent:          cl-my-agent-xxxx
Phase:          identity
Tier:           2
Credit limit:   $3.00
Available:      $3.00
Outstanding:    $0.00
Suspended:      No
Credit frozen:  No
Identity score: 75
Target:         ✓ Whitelisted
  • Identity score too low for credit (score &lt; 50). means the agent is rejected for credit.
  • Suspended: Yes means the agent is fully suspended (e.g. after default).
  • Credit frozen: Yes means proxy draws are blocked until the monthly bill is settled.

Proxy an x402 request (uses credit)

Use npx @clawcash/cli@latest fetch only when you need ClawCash to pay. On 402, ClawCash pays the amount, records principal + platform fee (default 3%) as facility debt, posts the draw to ClawLens, and retries with proof. Non-402 responses pass through with no draw.

For GET endpoints, encode query parameters in the target URL:

npx @clawcash/cli@latest fetch &quot;https://x402.wach.ai/resolveToken?ticker=WACH&quot;

For non-GET requests, pass --method and a JSON object body:

npx @clawcash/cli@latest fetch &quot;https://api.partner.example/v1/generate&quot; \
  --method POST \
  --body &#x27;{&quot;prompt&quot;:&quot;Hello world&quot;}&#x27;

Terms must be accepted via the owner email link.

Repayment

Dashboard repayment

Use the dashboard command for owner-settled payments:

npx @clawcash/cli@latest dashboard

Agent self-repay via x402

Use this when the agent settles its own ClawCash debt with USDC over x402 — no human checkout.

Build a repayment URL and payment instructions with the CLI:

npx @clawcash/cli@latest repay --pay-all
npx @clawcash/cli@latest repay --bill 123
npx @clawcash/cli@latest repay --draw 456

The CLI prints commands like:

npx agentcash fetch &quot;&lt;REPAY_URL&gt;&quot;
npx awal@latest x402 pay &quot;&lt;REPAY_URL&gt;&quot;

The repayment URL contains the platform token. Treat it as a secret: do not log, commit, screenshot, or share it.

Partner whitelist (public)

Use these commands before fetch when you want to find approved x402 resources or verify that a target is credit-fundable.

List approved partners

List all currently approved partner endpoints:

npx @clawcash/cli@latest partners

Use this output to choose a partner, endpoint URL, and HTTP method for fetch or discover.

Preflight x402 metadata

Call this whenever the agent doesn't already know a target's request shape. It tells you, in one round-trip:

  • whether the target is on the partner whitelist (i.e. credit-fundable on 402), and
  • the inferred x402 schema for that endpoint — supported schemes, networks, accepted USDC assets, payTo address, plus queryHints, requestBodyHints, and responseBodyHints so the agent can build a valid request without guessing.

[Optional] Use it before npx @clawcash/cli@latest fetch (or before paying directly) when the request shape is unknown to you. Skip it when you already have a known-good request shape.

npx @clawcash/cli@latest discover --target &quot;https://api.partner.example/v1/generate&quot; --method POST
  • whitelisted: true → server + path + method is approved for credit draws on 402.
  • x402.detected: false → the probe didn't surface x402 metadata for this request shape.

Apply for whitelist

Partner whitelist application commands are out of scope for this CLI. If a target is not whitelisted, call the service directly with your own wallet or ask the service owner to apply through ClawCash.

Typical agent flow

Install is one autonomous chain where possible — no pauses except for real user-only blockers.

1. Install ClawLens via https://api.clawlens.io/skill.md  → apiKey
2. Mint platform token: POST /access-token { audience: &quot;https://cash.clawlens.io&quot; }
3. Initialize CLI: npx @clawcash/cli@latest init &lt;platform_token&gt;
4. Browse partners: npx @clawcash/cli@latest partners
5. Verify: npx @clawcash/cli@latest check-credit  (optional: --target &lt;url&gt;)
   → send single confirmation + Terms-acceptance reminder
6. Credit available: npx @clawcash/cli@latest fetch &lt;targetUrl&gt; [--method POST] [--body &#x27;{...}&#x27;]
   Self-funded:       call the target directly
7. On 401: re-mint token from ClawLens, then npx @clawcash/cli@latest reset --platform &lt;new_token&gt;
8. Settle: dashboard → npx @clawcash/cli@latest dashboard
           programmatic x402 → npx @clawcash/cli@latest repay --pay-all|--bill &lt;id&gt;|--draw &lt;id&gt;
9. First install: owner must accept Terms via email before using credit.

Do not

  • Send ClawLens provider API keys to ClawCash — only platform tokens.
  • Proxy non-whitelisted endpoints on 402 — the draw is rejected. Call them directly with your own wallet.
  • Ignore Credit frozen: Yes or Suspended: Yes — CLI proxy draws will fail until resolved.

Errors

CLI message Meaning Action
Platform token is invalid or expired. Token expired, revoked, or wrong audience Re-mint from ClawLens, then run npx @clawcash/cli@latest reset --platform &lt;new_token&gt;
Identity score too low for credit (score &lt; 50). Agent is not eligible for credit Improve/verify ClawLens identity and retry later
Insufficient credit for this request. Not enough available credit Run npx @clawcash/cli@latest check-credit; repay or wait for more credit
Target not on partner whitelist. Endpoint is not approved for ClawCash credit draws Use a whitelisted endpoint or pay directly
Suspended: Yes or Credit frozen: Yes Account is blocked from proxy draws Settle repayment or fix KYC/status
Could not reach ClawCash API. Check your connection. Network failure Retry after checking connectivity

Notes

  • Credit tiers are deterministic — the same scores always produce the same tier.
  • ClawCash opens a revolving credit facility on the ClawLens credit API per agent. Draws, payments, delinquencies, defaults, and per-draw repayments sync back to ClawLens.

常见问题

5 问
答案由本站依据条目字段整理
凭信用额度调用 x402 服务怎么安装?

在支持 Skills 的客户端里执行:skillhub install user_15292d5a/yjkj-clawcash-cli。安装方式为未标注。装完刷新技能列表或重开客户端。

凭信用额度调用 x402 服务支持哪些客户端?

资料没有标注宿主客户端,但只要客户端支持 Skills(Claude、Codex、Cursor 等),一般都能加载。

凭信用额度调用 x402 服务权限高吗,安全吗?

权限级别为未标注权限。安装前先看它会读取或写入哪些内容。

凭信用额度调用 x402 服务收费吗?

本站不代收费用,也没有标注具体价格。是否收费取决于技能本身和所用的模型或客户端,正式使用前按作者说明确认。

凭信用额度调用 x402 服务用什么许可证?

许可证标注为 未说明(许可证不明确)。商用或二次分发前请到仓库确认条款原文。

热门专题

按场景挑技能
全部专题 →

技能内容以作者仓库为准;分类、权限级别与许可证状态的中文说明为中文整理,最近核验 2026-11-06。