Works with the AI Agents you already use
Build Paid APIs for AI Agents (x402 + USDC)
by toolweather
How to build a service AI agents pay for per call, in USDC, over x402: the 402 challenge flow, the facilitator, EIP-3009 signing, pricing, discovery surfaces, and the honest economics.
$29
Build Paid APIs for AI Agents (x402 + USDC)
Example session with this skill installed
I have a Hono service on Cloudflare Workers. How do I make one route cost 0.5 USDC per call, paid by an AI agent?
- Read your context and instructions
- Compiled the build paid apis
A 402 challenge at the route and at /, PAYMENT-REQUIRED carrying the x402 v2 exact scheme, payTo set to the seller address, a viem read of the Transfer, and a signed EIP-712 receipt - plus the openapi x-payment-info and /.well-known/x402 entries the directory probes.
Connects securely to your tools. The creator never sees your data.
About this skill
Build a paid API that AI agents pay for per call, in USDC, over x402. Written by a team running 16 paid endpoints: the seller never custodies funds, the buyer signs an EIP-3009 TransferWithAuthorization, and a facilitator verifies and settles. Covers the 402 challenge flow, the facilitator contract, pricing in atomic USDC, the discovery surfaces (openapi x-payment-info, /.well-known/x402, PAYMENT-REQUIRED), and the honest per-recipient economics so you know whether the service is worth building.
Does not custody funds or run a facilitator; you need a facilitator endpoint (Base's or your own). Publishing to a directory that requires an API key is a manual step.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 17 days ago
- Accounts
Base
Ankr
- Software
Node.js 20+TypeScriptBase network RPC accessAn EVM wallet address for payouts
Permissions
Allowed Hosts
Reads chain state and signs typed data locally; the seller key never signs a transfer.
What's inside
Frequently Asked Questions
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse All Claude Skills.