X402-express. Pay-per-call HTTP 402 middleware for AI agents on Base L2
Well-built middleware betting on an agent payment economy that doesn't exist yet.

HTTP 402 Payment Required for autonomous agent micropayments in USDC.
AI agent developers, autonomous system builders
Coinbase Commerce · Stripe API · RapidAPI
Well-built middleware betting on an agent payment economy that doesn't exist yet.
On-chain agent payments eliminate API key hell, but adoption depends on Base adoption.
HTTP 402 finally meets crypto — agents pay micros without auth.
x402 micropayments are clever, but the API is a thin wrapper around existing crypto data sources.
They revive HTTP 402 so agents can automatically buy API calls — the repo ships PayingClient/WalletManager primitives, an @x402-kit/core package, five agent templates (web-scraper, image-gen, search, translation, code-review), a live demo and 93 tests. Smart infrastructure play with a clear demoable surface; the hard part will be UX and economics (wallet funding, gas/settlement, and convincing API operators to adopt x402 instead of existing billing).
Scoped spending mandates solve the private key problem better than x402 or pre-funded wallets.