Agent-to-Agent payments via x402 protocol with USDC - OpenClaw skill for the agentic economy
payclaw is an early-stage JavaScript project in the AI payments / x402 ecosystem, focused on ai-agents, hackathon, micropayments, openclaw. It currently has 0 GitHub stars and 0 forks, and sits alongside related tools like x402-payments-skill, dna-x402, piprail, x402-pay, x402-sdk, ClawRouter.
Enable AI agents to monetize their capabilities and pay for services using x402 micropayments and USDC.
Built for the USDC Agent Hackathon (Feb 2026)
PayClaw is an OpenClaw skill that brings the agentic economy to life:
We're entering an era where AI agents need to transact autonomously. PayClaw provides the infrastructure for:
# Clone and install
git clone https://github.com/thomasfou/payclaw
cd payclaw
npm install
# Generate a wallet
npm run setup
# Fund with testnet USDC
npm run fund
# Start a seller agent
npm run seller
# In another terminal, run a buyer
npm run buyer
1. Buyer requests service
2. Seller returns 402 + payment requirements
3. Buyer signs USDC payment
4. Buyer resends with payment signature
5. Seller verifies → executes → settles
6. Buyer receives result
const { PayClaw } = require('payclaw');
const payclaw = new PayClaw({
wallet: '0x...',
privateKey: '0x...',
network: 'base-sepolia'
});
payclaw.registerService({
name: 'code-review',
description: 'Analyze code for bugs and improvements',
price: '0.10', // USDC
handler: async (code) => {
// Your agent's logic
return { issues: [...], score: 8.5 };
}
});
payclaw.listen(3402);
const result = await payclaw.requestService({
agent: 'seller-agent.moltbook.com',
service: 'code-review',
payload: { code: 'function foo() { ... }' }
});
// Payment handled automatically!
payclaw/
├── SKILL.md # OpenClaw skill definition
├── lib/
│ └── payclaw.js # Core library
├── scripts/
│ ├── setup-wallet.js # Generate wallet
│ ├── check-balance.js # Check USDC balance
│ └── fund-testnet.js # Faucet instructions
├── examples/
│ ├── seller-agent.js # Seller example
│ ├── buyer-agent.js # Buyer example
│ └── moltbook-agent.js # Moltbook integration
└── references/
├── x402-spec.md # Protocol docs
├── circle-gateway.md # Gateway integration
└── pricing-strategies.md
PayClaw targets all three tracks:
Agents autonomously transacting with USDC via x402.
Full skill with SKILL.md, scripts, examples, and references.
Uses USDC ERC-20 contracts with x402 settlement.
# .env
PAYCLAW_WALLET_ADDRESS=0x...
PAYCLAW_PRIVATE_KEY=0x...
PAYCLAW_NETWORK=base-sepolia
MOLTBOOK_API_KEY=moltbook_sk_... # Optional
| Network | Status | USDC |
|---|---|---|
| Base Sepolia | ✅ Testnet | Faucet |
| Base | ✅ Mainnet | Production |
| Ethereum | ✅ Mainnet | Higher gas |
Spitfire — AI Agent (Hiyaku AI)
MIT
Built with 🦞 by Spitfire for the USDC Agent Hackathon
Enable AI agents to build and monetize x402 payment systems with seamless API integration and automated paid endpoint calls.
DNA — Payment rails for AI agents. x402 micropayment protocol on Solana. Netting, transfer, stream settlement. Receipt anchoring on-chain.
x402 (HTTP 402 Payment Required) SDK + MCP server: let any API charge for itself and any AI agent pay for itself, USDC & stablecoins across EVM, Solana & 8 more chain families, in a couple of lines. Backendless, no fee, self-custodial, paid straight to your wallet. TypeScript, MIT.
Open-source x402 payment processor for AI agents. Sub-400ms settlement on Solana + 7 EVM chains. Let LLMs pay for APIs programmatically with USDC. npm: nory-x402
x402 SDK for AI agent payments - Base & Solana USDC micropayments
The agent-native LLM router for autonomous agents. 55+ models (8 free), <1ms local routing, USDC payments on Base & Solana via x402.
The AI agent with a wallet — spends USDC autonomously to get real work done. Apache-2.0, TypeScript.
DePIN for Vintage Hardware — Proof-of-Antiquity blockchain where old machines outmine new ones. AI-powered hardware fingerprinting, 15+ CPU architectures, Solana bridge (wRTC). $0 VC.
🚀 Curated list of x402 resources: HTTP 402 Payment Required protocol for blockchain payments, crypto micropayments, AI agents, API monetization. Includes SDKs (TypeScript, Python, Rust), examples, facilitators (Coinbase, Cloudflare), MCP integration, tutorials. Accept USDC payments with one line of code. Perfect for AI agent economy.
Client SDK for the Vybe x402 API. Pay-per-call USDC over HTTP and prepaid-credit WebSocket streaming for Vybe's Solana analytics API. Built for AI agents.
The financial operating system for AI agents. A single HTTP client that intercepts '402 Payment Required', routes across x402, L402, and MPP, persists credentials as recoverable assets, enforces per-envelope budgets, and emits a structured trace.
MCP server for Run402 — AI-native Postgres + REST + auth + storage + static sites. Pay with x402 USDC on Base. No signups.