frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Show HN: X402 – an open standard for internet native payments

https://www.x402.org/
16•__erik•1y ago
Hi HN – excited to announce x402, initially developed by Coinbase (YC 12)

x402 lets any HTTP API charge per request without issuing API keys or storing credit cards. Buyers (humans or AI agents) keep funds in their own wallet and dynamically discover compatible endpoints, call them as usual, and automatically pay a microtransaction in USDC or other tokens to settle.

90 second demo: https://www.youtube.com/watch?v=PV-L2AfLhJg

Problem: Every time we want to use a new API we have to: find the service online create a developer account, copy a secret key into env vars, pre-fund or hand over a credit card

This flow blocks agents even more. They can’t solve CAPTCHAs or enter credit cards. It also hurts sellers: fraud, chargebacks, onboarding friction, and marketing to humans are huge pain points.

Why buyers care Zero setup – Hit a new endpoint immediately. Runtime discovery – Because every x402 service exists in a common registry, an agent can search, compare, and invoke in one loop. Self-assembling agents become practical. Easily create proxy servers – Want an endpoint that isn’t supported? You can use our proxy server template to spin up an x402-compatible instance yourself using traditional API keys, and monetize it for others wanting access.

Why sellers care Reach incremental demand – Long-tail bots, side projects, one-off scripts, all of which too small for an account/signup flow, can now pay you. Micropayments without fraud – All payments settle onchain, nothing for stolen credit cards or chargebacks to reverse. Embedded distribution – instead of marketing to humans, create a compelling service meeting demand for agents and watch the requests roll in.

How we got here Last year we launched AgentKit (wallets for AI agents). Tens of thousands of agents now hold onchain balances, but they can’t pay for most web services. We revived the long-unused HTTP 402 (“Payment Required”) status code and wrote a spec to make it real. Marc Andresseen calls the lack of native value transfer “the original sin of the internet,” and we see x402 as the absolution of this sin.

How it works: x402 specifies a standard response body to accompany a 402 status code. This response body contains machine understandable instructions for how to pay. Payments are signature based an included as an `X-PAYMENT` header in a subsequent request to the same API endpoint. The accepting server can verify and settle payment themselves, or delegate the onchain settlement to what we call a facilitator. This means you don't have to touch crypto as a developer, you can just integrate a middleware and start receiving stablecoin payments in as little as 1 line of code. Because x402 natively traverses your existing client / server requests, it can be implemented in any language, and doesn't require webhooks, or any other complex integration. Its literally this simple: `paymentMiddleware("0xYourAddress", {"/your-endpoint": "$0.01"})`

Ask HN API providers – does the one-line integration fit your stack? What’s missing? Agent / infra builders – if a service isn’t available is the proxy server template sufficient? File issues, PRs welcome Everyone – poke holes in the trust and fee model; we’d love to iterate with your feedback

Curious to learn more? Check out our documentation and repo for more information, and please don’t hesitate to reach out to get onboard.

https://github.com/coinbase/x402 https://x402.org https://x402.gitbook.io/x402/getting-started/quickstart-for-...

Comments

danxkim•1y ago
Time to kill the API key.
pestatije•1y ago
standard X.402 (ISO/IEC 10021-2) does already exist
xinbenlv•1y ago
Congrats Erik. We are launching something that support x402 soon. DM'ed you on LinkedIn
ruiseal•1y ago
So it's an "open standard" and you can use any chain that meets Coinbase's "acceptance criteria". So under this guise, their whole goal is to make themselves centralizing force.
__erik•1y ago
we will happy accept PRs the add support for any chains that can perform the payment flows in a safe, non-custodial way for the client, resource server and faciliator. Currently x402 works with any EVM chain, and we're working with several chains on integrating.
ricochet11•1y ago
this looks great, gonna look into writing something to use with fastapi

Show HN: Mentionkit – Track your brand mentions across LinkedIn, X and more

https://mentionkit.com/
1•shash7•1m ago•0 comments

3D-printed metal wristwatch with LED matrix display

https://old.reddit.com/r/Watches/comments/1ui3lvy/project_my_brother_and_i_designed_our_own/
1•huhtenberg•6m ago•0 comments

Turning Strava data and gym photos into a training recap with my coding agent

https://www.akashtandon.in/ai/2026-06-29-strava-photos-training-recap-coding-agent/
1•akashtndn•7m ago•0 comments

Show HN: AI agent for software user community support

2•Daniel-Pan•9m ago•1 comments

White working-class children failed by education system, says inquiry

https://www.bbc.co.uk/news/articles/cq51j10q601o
1•mmarian•11m ago•0 comments

Would Claude Refuse an Illegal Military Order?

https://www.theatlantic.com/national-security/2026/06/claude-anthropic-ai-warfare-orders/687581/
1•abdelhousni•11m ago•1 comments

Show HN: Nearest-neighbor, a dating app for AI agents

https://nearest-neighbor.replygirl.club/
1•replygirl•15m ago•0 comments

Israel deployed troops to Somaliland after recognition, source says

https://www.middleeasteye.net/news/israel-deployed-troops-somaliland-after-recognition-official
1•littlexsparkee•19m ago•0 comments

Squish – The fastest way to run local LLMs on Apple Silicon

https://squish.run/
2•jscohn85•19m ago•0 comments

Moving Car-Free as a Parent

https://maxmautner.com/2026/06/27/moving-as-a-parent.html
2•mslate•19m ago•0 comments

Names in the USA (1880-2025)

https://liorsinai.github.io/coding/2026/06/21/names.html
1•the_origami_fox•20m ago•0 comments

InnerRipple, on device health scoring against your own Apple Watch baseline

https://apps.apple.com/us/app/innerripple-know-your-health/id6774995186
1•stillraft•21m ago•0 comments

About Walt Disney

https://d23.com/about-walt-disney/
1•teleforce•23m ago•0 comments

Ask HN: What's one thing you wish AI did well?

1•akashwadhwani35•30m ago•1 comments

RedNote Xiaohongshu is said to ready Hong Kong IPO filing this month

https://www.bloomberg.com/news/articles/2026-06-15/xiaohongshu-is-said-to-ready-hong-kong-ipo-fil...
3•teleforce•34m ago•1 comments

AI coding agents(Claude, Cursor) ask questions, share learnings, and blueprints

https://agents.stackoverflow.com/recent
1•rushil_b_patel•35m ago•0 comments

Prompt Injection Defense

https://pypi.org/project/prompt-injection-defense/
1•rghosh8•38m ago•0 comments

You aren't ready to be your own boss until you read this

https://comuniq.xyz/post?t=1330
3•01-_-•39m ago•0 comments

85% of kids are still using social media despite ban

https://theconversation.com/85-of-kids-are-still-using-social-media-despite-ban-but-we-need-a-new...
2•01-_-•39m ago•0 comments

Trump's U-Turn on Iran Sanctions Would Unravel Decades of Curbs

https://www.bloomberg.com/news/articles/2026-06-28/trump-s-u-turn-on-iran-sanctions-would-unravel...
1•petethomas•40m ago•0 comments

Reinforcement learning towards broadly and persistently beneficial models

https://alignment.openai.com/beneficial-rl/
2•spicypete•44m ago•0 comments

Is Sunscreen the New Margarine?

https://www.outsideonline.com/health/wellness/sunscreen-sun-exposure-skin-cancer-science/
4•markgavalda•45m ago•0 comments

Show HN: WinPodX – run Windows apps on Linux, VM looks like real hardware

https://www.winpodx.org/
1•kernalix7•48m ago•0 comments

In 5 years, nobody will give a damn about AI-detectors

https://www.joanwestenberg.com/p/in-5-years-nobody-will-give-a-damn
2•Ariarule•48m ago•1 comments

Why Your Production RAG System Slowly Gets Worse

https://aiworkflowreliability.com/blog/reliability-framework-for-ai-engineers/
1•leiishta•50m ago•0 comments

It's Always the Learning Rates

https://ianbarber.blog/2026/06/28/its-always-the-learning-rates/
1•matt_d•52m ago•0 comments

Some Simple Economics of AGI

https://papers.ssrn.com/sol3/papers.cfm?abstract_id=6298838
23•reasonableklout•1h ago•5 comments

AI Bust Risks Ripple Effects from Growth to Credit, BIS Says

https://www.bloomberg.com/news/articles/2026-06-28/ai-bust-risks-ripple-effects-from-growth-to-cr...
2•thm•1h ago•0 comments

My Favorite Keyboards

https://fabiensanglard.net/keyboards/index.html
2•tmach32•1h ago•0 comments

Lore – give your coding agent the decisions your team made

https://github.com/itsthelore/rac-core
5•tcballard•1h ago•0 comments