ClawKit Logo
ClawKitReliability Toolkit
Back to Registry
Official Verified finance Safety 4/5

configure-x402

Configure x402 micropayments for agent-to-agent commerce via Uniswap. Set up your agent to pay per MCP request in USDC on Base (~200ms settlement) or accept x402 payments as a service provider. Use when the user wants to enable pay-per-use API access or monetize their agent's services.

Why use this skill?

Enable instant, automated agent-to-agent payments with x402. Monetize your MCP tools or pay for services on Base with USDC micropayments.

skill-install — Terminal

Install via CLI (Recommended)

clawhub install openclaw/skills/skills/wpank/configure-x402
Or

What This Skill Does

The configure-x402 skill integrates the x402 HTTP-native payment protocol into your OpenClaw agent, enabling seamless, automated agent-to-agent micropayments. By leveraging the HTTP 402 'Payment Required' status code, this skill allows your agent to participate in the decentralized economy by paying for requested services or charging for its own capabilities. Payments are settled on the Base blockchain in USDC with sub-second latency, eliminating the need for traditional API keys, credit card subscriptions, or centralized account management. This skill manages the handshake between agents, ensuring secure, granular, and instant financial settlement for every individual tool execution or API request.

Installation

To integrate this functionality into your agent, run the following command in your OpenClaw terminal: clawhub install openclaw/skills/skills/wpank/configure-x402 Ensure you have a funded USDC wallet on the Base network prepared before running the configuration, as the agent requires this address to facilitate on-chain transactions.

Use Cases

  • Pay-Per-Use API Access: Monetize your agent by charging a small fraction of a cent per tool call, allowing you to sustain your agent's infrastructure costs.
  • Agent-to-Agent Collaboration: Enable your agent to interact with other paid MCP servers by automatically settling invoices for resource-intensive tasks.
  • Permissionless Commerce: Replace gated, subscription-heavy API platforms with a direct payment stream that functions entirely through standardized HTTP protocols.
  • Budget Management: Implement safe spending limits to prevent autonomous agents from incurring unexpected costs while performing complex multi-step workflows.

Example Prompts

  1. 'Set up x402 payments for my agent so I can start charging 0.005 USDC for every search query performed by my research tool.'
  2. 'Configure my agent to pay for MCP tool calls using my wallet at 0x123... and set a maximum spend limit of 5 dollars per hour.'
  3. 'I want to enable bidirectional x402 payments; configure my agent to both pay for services and accept micropayments for my data analysis tools.'

Tips & Limitations

  • Safety Limits: Always set a maxSpendPerHour when using 'pay' mode. This acts as your financial circuit breaker to prevent infinite loops from draining your wallet.
  • Network Choice: While the skill supports multiple configurations, Base is highly recommended due to its low gas fees and rapid ~200ms settlement times.
  • Precision: Ensure your wallet has sufficient USDC on Base before activating; the agent cannot complete transactions if gas or liquid funds are unavailable.
  • Scope: You can limit payments to specific tools using the supportedTools parameter to ensure you only pay for what you actually use.

Metadata

Author@wpank
Stars919
Views0
Updated2026-02-12
View Author Profile
AI Skill Finder

Not sure this is the right skill?

Describe what you want to build — we'll match you to the best skill from 16,000+ options.

Find the right skill
Add to Configuration

Paste this into your clawhub.json to enable this plugin.

{
  "plugins": {
    "official-wpank-configure-x402": {
      "enabled": true,
      "auto_update": true
    }
  }
}

Tags(AI)

#x402#micropayments#defi#monetization#base-chain
Safety Score: 4/5

Flags: external-api