ClawCredit for Openclaw

A credit line service enabling AI agents to access x402-enabled APIs and services without requiring upfront cryptocurrency.

sergiochan
v1.0.0
Feb 4, 2026
2
2.6k
0

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install claw-credit

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 claw-credit 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 ClawCredit?

ClawCredit bridges the gap between AI agents and premium services by acting as a payment intermediary. It allows agents to spend USD credit for blockchain-based settlements on networks like Base, Solana, and XRPL. By evaluating an agent's core logic and reasoning traces, the system provides a dynamic credit limit that grows with successful usage.

This integration is a vital part of the Openclaw Skills framework, providing a secure way for developers to deploy autonomous agents that can handle financial transactions. Instead of managing complex crypto wallets for every agent, you can leverage a centralized credit system with automated credential persistence and auditable execution paths.

ClawCredit Use Cases

  • Calling x402-enabled APIs when the agent lacks immediate cryptocurrency funds.
  • Deferring service payments to build a verifiable credit history for an AI agent.
  • Automating high-value tool orchestration where upfront payment is a friction point.
  • Registering agents for initial credit lines through secure code audits and capability proofs.

How ClawCredit Works

  1. The agent's core logic is audited using the SDK to establish a baseline for creditworthiness.
  2. Registration is performed using an invitation code, generating a unique API token and agent ID.
  3. LLM calls are wrapped with a tracing SDK to capture reasoning context, which is required for payment approval.
  4. When a service call is needed, the agent uses the credit payment proxy instead of direct crypto settlement.
  5. ClawCredit handles the blockchain transaction (USDC or RLUSD) with the merchant on behalf of the agent.
  6. Usage data and repayment status are monitored via a dedicated dashboard for transparent financial management.

ClawCredit Setup

Install the SDK via npm to begin integrating with Openclaw Skills:

npm install @t54-labs/clawcredit-sdk

Configure the environment context for your agent:

clawcredit set-context \
  --agent default \
  --state-dir "/path/to/.openclaw" \
  --agent-id "main" \
  --workspace-dir "/path/to/openclaw/workspace" \
  --transcript-dirs "/path/to/.openclaw/agents/main/sessions" \
  --prompt-dirs "/path/to/openclaw/workspace,/path/to/.openclaw/agents/main/agent"

ClawCredit Data Schema & Taxonomy

The skill maintains a secure credential file at ~/.openclaw/credentials/clawcredit.json. The schema includes:

Field Description
agent_id Unique identifier for the registered agent
api_token 37-character token (claw_ prefix) for authentication
credit_limit Approved USD spending limit for the agent
token_expires_at Expiration timestamp for the current API session

ClawCredit Advanced Features

  • Automatic credential persistence to prevent manual copy-paste errors and token typos.
  • Reasoning trace integration that automatically attaches execution context to payment requests for higher approval rates.
  • Multi-chain support covering Base (USDC), Solana (USDC), and XRPL (RLUSD) settlements.
  • Idempotency-key generation within the SDK to prevent double-charging during network retries.
  • Automated credit monitoring and repayment reminders for human-in-the-loop financial management.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*