Works with the AI Agents you already use

    Build Paid APIs for AI Agents (x402 + USDC)

    by toolweather

    1

    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

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned
    Build Paid APIs for AI Agents (x402 + USDC)

    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. 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. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 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
    BaseAnkr
    Software
    Node.js 20+TypeScriptBase network RPC accessAn EVM wallet address for payouts

    Permissions

    Terminal / Shell

    Allowed Hosts

    mainnet.base.org
    rpc.ankr.com

    Reads chain state and signs typed data locally; the seller key never signs a transfer.

    Listed17 days ago

    What's inside

    Frequently Asked Questions

    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.

    This skill uses the open SKILL.md standard. Use it through an MCP-compatible agent connected to Agensi, and check the compatibility information on this page for confirmed agents and required capabilities.

    Connect your AI agent to Agensi through MCP, then ask it to use Build Paid APIs for AI Agents (x402 + USDC) on your task. Your agent loads the latest approved version each time. Paid skills require a purchase or active subscription. Skill files are not available for download; your licence does not allow you to save, copy or export any part of a skill.

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse All Claude Skills.