ClawCash for Openclaw

ClawCash provides a USDC revolving credit line for AI agents in the x402 ecosystem, eliminating the need to pre-fund agent wallets.

akshaydevh
v1.0.0
Jun 4, 2026
0
485
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install clawcash-cli

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install clawcash-cli using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is ClawCash?

ClawCash acts as a decentralized USDC credit layer tailored specifically for autonomous AI agents operating within the x402 ecosystem. Instead of requiring developers to manually pre-fund agent wallets with volatile crypto assets, agents can seamlessly draw upon a credit line sized dynamically based on their ClawLens identity and credit scores. This is one of the most innovative integration concepts in the Openclaw Skills ecosystem, enabling agents to execute paid API and web actions programmatically while deferring settlement to monthly billing cycles.

By proxying x402 service calls through the ClawCash CLI, agents can pay for API resources on credit. ClawCash automatically pays the x402 endpoint, records the outstanding principal plus a minimal platform fee, and reports the transaction to ClawLens. This allows AI agents to operate continuously and autonomously with minimal financial friction, scaling their spending capacity as they build up positive repayment histories.

ClawCash Use Cases

  • Autonomous Wallet Funding: Enabling AI agents to execute paid x402 calls even when their local wallet balances are empty.
  • Credit-Based API Execution: Accessing premium, paid microservices on credit without manual intervention.
  • Consolidated Expense Management: Streamlining micro-billing into one predictable, monthly calendar-based statement.
  • Self-Governing Agent Workflows: Allowing agents to self-repay debt programmatically using their own treasury structures via automated x402 protocols.

How ClawCash Works

  1. KYC & Scoring: The agent hooks into ClawLens to verify identity and retrieve either an identity score (Phase 1) or a transaction-based credit score (Phase 2).
  2. Access Minting: A short-lived platform token (clp_...) is minted for ClawCash via the ClawLens authorization endpoint.
  3. Verification & Preflight: The agent queries its current credit facility parameters, checks limits, and verifies if target endpoints are on the partner whitelist.
  4. Proxied Request Payment: The agent routes x402 requests through the CLI proxy. ClawCash settles the developer charge instantly, adds the fee to the agent's outstanding tab, and returns the resource response.
  5. Cycle Settlement: Every calendar month, outstanding balances roll into a bill. Payment is settled programmatically or via a human dashboard.

ClawCash Setup

Ensure you have curl and npx installed. Follow these configuration steps to register and initialize the agent:

  1. Obtain the ClawLens API Key by installing and configuring the prerequisite ClawLens skill.

  2. Mint the ClawCash platform token targeting the cash.clawlens.io audience:

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"}'
  1. Initialize the CLI with your newly generated platform token:
npx @clawcash/cli@latest init <PLATFORM_TOKEN>
  1. Check credit availability and preflight status to verify the environment is active:
npx @clawcash/cli@latest check-credit

Note: The agent owner must check their email and accept the Terms and Conditions to fully activate the credit line.

ClawCash Data Schema & Taxonomy

Credit Tiers & Score Mapping

Phase Score Range Tier Level Credit Line Limit
Phase 1: Identity Under 50 Rejected $0.00
Phase 1: Identity 50-69 Tier 1 $1.00
Phase 1: Identity 70-89 Tier 2 $3.00
Phase 1: Identity 90 or more Tier 3 $5.00
Phase 2: Repayment History 650-749 Tier 4 $8.00
Phase 2: Repayment History 750-829 Tier 5 $10.00
Phase 2: Repayment History 830-900 Tier 6 $15.00

Monthly Billing Lifecycle

  • Day 1 UTC: Monthly statement generated from the prior month's pending draws.
  • Day 14 UTC: Bill is due. Outstanding amounts generate a flat 30% late fee.
  • Day 21 UTC: Account is frozen; proxy draws are disabled until the balance is paid.
  • Day 30 UTC: Full account suspension and default status.

ClawCash Advanced Features

  • Interactive x402 Discover Engine: Probe request schemas, supported networks, and parameters for target APIs prior to execution with the discover command.
  • Autonomous Self-Repayment Engine: Programmatically request custom x402 payment scripts and single-use repayment tokens using the CLI.
  • Adaptive Session Restoration: Perform hot-swapping of expired platform tokens on the fly using automated reset scripting blocks.
  • Dynamic Whitelist Filtering: Live preflight checking during credit checks using target URL arguments to ensure successful proxy execution.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*