Cloudflare Worker template

create-agent-gateway

Spin up a pay-per-call agent API in ~2 minutes. Bearer-key auth, mcent pricing, x402 crypto onramp, scoped keys, XP leaderboard, MCP server — all packaged as a scaffolder.

npx create-agent-gateway my-api cd my-api wrangler kv:namespace create KEYS wrangler secret put ADMIN_KEY wrangler deploy
View on GitHub →

What you get

Why this pattern

Agents need (1) auth — bearer keys beat OAuth dashboards, (2) a balance — mcents so $0.01 buys 100 calls, (3) self-serve onramp — x402 so strangers mint keys programmatically, (4) reputation — XP and badges so the market rewards quality, (5) discoverability — Agent Readiness + MCP so agents find you. Stripe and OAuth add friction agents can't traverse. This stack skips all of that.