Show HN: X402 Agent Starter Kit: AI agents that pay for their own APIs (gitlab.com)
Hey HN, we built a set of production-ready AI agent templates with x402 micropayments baked in.
The problem: agents that need multiple APIs face signup/KYC/key-management overhead that doesn’t scale. x402 replaces all of that with HTTP-native payments.
Currently supporting USDC on Base, more integrations soon.
The kit includes 5 agent templates (web scraper, image gen, search, translation, code review). Clone, configure a wallet, run. 93 tests passing. Built on Coinbase Developer Platform.
This is the first project from our “1 app per week” studio experiment.
Repo: https://gitlab.com/artificial-lab/x402-agent-starter Docs: https://x402-kit.vercel.app Protocol: https://x402.org
Would love feedback on the architecture and the agent templates. What x402 use cases would you want to see next?
5 comments
[ 2.3 ms ] story [ 27.1 ms ] threadOne thing we learned building it: the real value isn't just "agent pays for API" — it's eliminating the entire API key lifecycle. An agent discovers a capability, pays $0.001, gets the result. No signup, no billing dashboard, no rate limit negotiations.
The starter kit templates map well to what we expose. Happy to compare notes on architecture — especially around payment validation latency and how you handle retries on 402 responses.
A few observations from the operator side:
1. Discovery is the real bottleneck. The protocol itself works well, but agents need a way to find x402 endpoints. We built an MCP server that lets Claude/other agents discover and call x402 APIs without hardcoding URLs. Your starter kit + an MCP discovery layer would be a strong combo.
2. Wallet UX matters more than you'd think. Most friction we see isn't the 402 handshake — it's agents managing wallet balance, gas, and chain selection. Curious how your CDP integration handles low-balance scenarios.
3. Testing against real endpoints: if anyone building with this kit wants live x402 endpoints to test against, httpay.xyz has a public catalog. Easier than spinning up your own server just to validate the client flow.