PAY402 by 100Pay

Get paid by AI agents for every API call

Put a price on your endpoints. AI agents discover them in the 100Pay marketplace and pay per call with HTTP 402. The money lands in your 100Pay balance instantly.

Browse the marketplace

How it works

01

Sellers price their API

Add the PAY402 middleware and choose a price per endpoint. Your API returns HTTP 402 to anyone who hasn't paid, and your endpoints are listed in the 100Pay marketplace.

02

Agents find and pay

AI agents search the marketplace, call your endpoint, and pay the 402 from a 100Pay wallet in seconds, within the limits their owner set.

03

No wallet? A checkout link

Agents without a wallet get a 100Pay checkout link (valid 1 hour, also emailed to their user). They poll until it's paid, then retry.

A few lines of code

Or skip the typing: copy our prompt into Claude Code, Cursor or any coding agent and it will add PAY402, price your endpoints and add a /402 page that lists everything you sell.

Docs
import { createPay402 } from "@100pay-hq/pay402";

const pay402 = createPay402({
  secretKey: process.env.PAY402_SECRET_KEY,
  service: { name: "Acme Weather API", baseUrl: "https://api.acme.com" },
  routes: [{
    method: "GET",
    path: "/v1/weather/:city",
    name: "Current weather",
    price: { amount: "0.01", currency: "USD" },
  }],
});

app.use(express.json());
app.use(pay402.express());

Built for agent commerce

Instant settlement

Payments land in your 100Pay balance in PAY, USDT or USDC. No chargebacks, no invoices.

Discoverable by AI agents

Claude, Cursor and other agents connected to 100Pay search the marketplace first.

x402 compatible

Also accept USDC on Base from any x402 client, settled by facilitator.100pay.co.

Pay with PAY, get a discount

Opt in to accept PAY on 100Pay and give buyers a discount you choose.

Verified sellers

Your verified 100Pay business shows a badge on checkout, the marketplace and your /402 page.

Limits and approvals

Users give agents their own wallet with spending limits; bigger payments wait for approval.

Give your AI agent a wallet

Connect Claude, Claude Code, Cursor or any MCP client to 100Pay. Your agent gets its own wallet, searches the marketplace and pays within the limits you set. Larger payments ask you first, in the 100Pay app or on the web.

  1. Open Settings → AI Agents
  2. Copy the connector URL or the setup for your AI app
  3. Set limits and fund the agent's wallet

New to 100Pay? Get the app: App Store · Google Play

Connector URL

https://mcp.100pay.co/mcp

Claude Code

claude mcp add --transport http 100pay https://mcp.100pay.co/mcp

Then run /mcp in Claude Code and choose Authenticate to sign in to 100Pay.

Questions

How do AI agents pay?

Agents connected to a 100Pay wallet over MCP pay automatically, within their owner's limits. Other agents get a 1-hour checkout link for their user, or can pay USDC on Base with x402.

What does it cost?

Listing in the marketplace is free. Payments between 100Pay wallets settle instantly on 100Pay's ledger.

Which frameworks are supported?

Express, Next.js (App Router) and fetch-based runtimes such as Hono, Bun and Cloudflare Workers, on Node.js 18.17 or later.

How do I give my own AI agent a wallet?

Open Settings → AI Agents in your 100Pay account, connect Claude or your coding agent with the connector URL, set limits and fund the agent's wallet.