xClaw02 for Openclaw

A developer-friendly skill for AI agents to make and receive instant stablecoin payments using the x402 open standard.

primer-dev
v0.1.0
Feb 3, 2026
1
2.2k
0

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install xclaw02

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 xclaw02 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 xClaw02?

xClaw02 is a specialized tool designed for the agentic web, providing a seamless way for AI agents to interact with the x402 protocol. By utilizing this addition to your collection of Openclaw Skills, agents can handle 402 Payment Required HTTP responses by paying for resources with USDC on the Base network. It bridges the gap between AI autonomy and the traditional pay-per-use economy.

Built by Primer, this skill simplifies the complex process of wallet management and on-chain settlement. Whether your agent needs to access a paid API or you want to monetize your own service, xClaw02 provides the CLI and SDK components necessary to implement robust payment workflows in Node.js or Python environments.

xClaw02 Use Cases

  • Resolving 402 Payment Required errors when accessing premium web resources.
  • Automating payments for API access using USDC stablecoins.
  • Creating and managing secure agent wallets directly from the CLI.
  • Checking token balances and managing transaction limits for AI-driven purchases.
  • Implementing paywalls for your own agent-ready APIs using provided middleware.

How xClaw02 Works

  1. The agent triggers a request to a URL and detects a 402 Payment Required status code.
  2. Using the probe command, the agent retrieves the cost, recipient, and network details from the response headers.
  3. The agent checks its local wallet balance and prompts the user for payment confirmation if required.
  4. A payment signature is generated and processed through a facilitator for on-chain settlement.
  5. The agent retries the original HTTP request with the required payment headers to successfully access the data.

xClaw02 Setup

To begin using this skill within your Openclaw Skills environment, choose your preferred runtime:

Node.js Installation

npx xclaw02 openclaw init

Python Installation

pip install xclaw02
xclaw02 openclaw init

After installation, you will need to fund your generated wallet address with USDC on the Base network to enable live payments.

xClaw02 Data Schema & Taxonomy

The skill organizes its local data and environment settings as follows:

Component Detail
Config Path ~/.openclaw/skills/xclaw02/
Key Variable XCLAW02_PRIVATE_KEY (0x + 64 hex characters)
Default Network eip155:8453 (Base)
Metadata Requires node, npx, python3, or pip binary dependencies
Supported Assets Primarily USDC for transactions across EVM chains

xClaw02 Advanced Features

  • Gasless transactions for payers, where the facilitator handles the network gas fees.
  • Comprehensive middleware support for Express.js and FastAPI to build paid endpoints.
  • Interoperability with multiple facilitators including Primer, Coinbase, and x402.org.
  • Spending limits via the max-amount flag to prevent unauthorized overspending.
  • Support for a wide range of EVM-compatible networks including Arbitrum, Optimism, and Polygon.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Requires
Github Stars: 0
forks: 0

Featured*