Open payment rails / x402 standard

A wallet for
every agent.

USDC payments in one line of code. Self-custodial, multi-chain, open standard.

Works withClaude·GPT·Gemini·LangChain·CrewAI
$0.0001
Run
$ curl https://api.openusdc.ai/v1/echo \    -H "Accept: text/x-402-payment" \    -d '{"prompt":"hello"}' 402 Payment RequiredX-USDC-Amount: 0.0042X-USDC-Chain: baseX-USDC-PayTo: 0xA1f3…7C2d ✓ Settled in 1.2s · receipt: ousdc_3f9a…
Connected · base-mainnetx402 · openusdc-gateway 0.6.2
Built on x402
Base· Solana· Arbitrum· Optimism
Use cases

The things your agents can buy when money is an API call.

A short list of what agents already do in production with Openusdc. Bring your own use case — the gateway doesn't care what the resource is, only that it's priced.

LLM inference

Call a paid LLM API

Your agent hits a metered inference endpoint and pays per token, with no API key issued in advance.

> agent.call("gpt-omni://summarize", { text })
Web scraping

Scrape rate-limited data

Pay 0.001 USDC per request to a content publisher's x402 endpoint and skip the captcha gauntlet entirely.

> fetch("nyt://article/2026/05/12", { pay: true })
Agent-to-agent

Pay another agent

Agent-to-agent settlement with cryptographic receipts. No invoices, no chargebacks, no Stripe Connect.

> agent.pay("agent://research.bot", "0.10 USDC")
Commerce

Buy a domain

Your shopping agent purchases the .com it just brainstormed for you, settles in stablecoin, hands you the keys.

> agent.buy("opencharm.ai", "12.00 USDC")
The new agent stack

What you stop building when payments are a protocol.

Agents shouldn't carry static API keys, fill in sign-up forms, or wait on Net-30 invoicing to be useful. Move the floor.

Old way
With Openusdc
Sign-up forms
USDC wallet address
API keys per service
One x402 endpoint
Stripe + KYC for agents
Open, permissionless rails
Net-30 invoicing
Instant on-chain settlement
Hardcoded rate limits
Pay-per-call pricing
How it works

Three steps from idea to first settled payment.

1

Drop in the gateway

One line of middleware turns any HTTP endpoint into a metered, USDC-priced resource. Express, Fastify, FastAPI, Go, Rust — all native.

$ app.use(openusdc.gateway({ price: "0.001 USDC" }))
2

Agents pay automatically

When the agent sees a 402, the SDK signs a payment, retries, and includes a receipt. Your code never sees the wallet plumbing.

$ const data = await openusdc.fetch(url)
3

See it on-chain

Every payment is a normal on-chain USDC transfer. Verify in any block explorer — no portal required.

$ curl https://api.openusdc.ai/v1/payments?since=24h
For agent developers

Give your agent a wallet, not an API key drawer.

  • Drop-in middleware for Node, Python, Go, Rust, Deno, and Cloudflare Workers
  • Policy-bound agent wallets with spend caps, allow-lists, and revocation
  • Signed payment receipts and idempotency keys on every settlement
  • Local sandbox with deterministic chain simulator for tests
Pricing

Pay as your agents pay.

No seats. No minimums. One simple rate per settled payment.

Usage
$0.05
per settled payment
  • Unlimited agents per workspace
  • All supported chains
  • First 100 payments free each month

High-volume? Talk to us — rates drop with sustained throughput.

FAQ

Questions builders ask.

Don't see yours? Open a thread in our community Discord or email support@openusdc.ai.

x402 is the HTTP 402 Payment Required status code, originally reserved in the HTTP spec and recently revived as a payment standard by Coinbase and a community of contributors. It lets any server quote a price for a resource and any client (especially an AI agent) pay that price programmatically in seconds, without API keys or contracts. Openusdc is the open-source reference gateway and SDK suite for x402 over USDC.

Give your agents
money.

The first 100 payments per workspace per month are free. Get started in minutes.