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.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/wpank/configure-x402What 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
- 'Set up x402 payments for my agent so I can start charging 0.005 USDC for every search query performed by my research tool.'
- '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.'
- '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
maxSpendPerHourwhen 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
supportedToolsparameter to ensure you only pay for what you actually use.
Metadata
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 skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-wpank-configure-x402": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: external-api
Related Skills
mermaid-diagrams
Create software diagrams using Mermaid syntax. Use when users need to create, visualize, or document software through diagrams including class diagrams, sequence diagrams, flowcharts, ERDs, C4 architecture diagrams, state diagrams, git graphs, and other diagram types. Triggers include requests to diagram, visualize, model, map out, or show the flow of a system.
api-design-principles
Skill by wpank
auto-context
Automatically read relevant context before major actions. Loads TODO.md, roadmap.md, handoffs, task plans, and other project context files so the AI operates with full situational awareness. Use when starting a task, implementing a feature, refactoring, debugging, planning, or resuming a session.
clear-writing
Write clear, concise prose for humans — documentation, READMEs, API docs, commit messages, error messages, UI text, reports, and explanations. Combines Strunk's rules for clearer prose with technical documentation patterns, structure templates, and review checklists.
track-performance
Track the performance of Uniswap LP positions over time — check which positions need attention, are out of range, or have uncollected fees. Use when the user asks how their positions are doing.