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

A simple self-hosted service to generate per-serving macros of online recipes

https://github.com/harrisonfaulkner/recipe-macros-scraper
1•entitledosprey•56s ago•1 comments

While the World Scrambles for Oil, China Sits on Full Tanks

https://www.nytimes.com/2026/06/21/business/china-oil-iran.html
1•mikhael•4m ago•0 comments

The Inevitable Weakness of Metrics

https://www.technologyreview.com/2026/06/19/1138778/inevitable-weakness-metrics-quantified-life-b...
1•joozio•7m ago•0 comments

Tell HN: Happy Fathers Day to all the fathers, uncles, anyone in that role!

3•consumer451•8m ago•0 comments

Designing Teams for an Agentic World

https://www.anup.io/designing-teams-for-an-agentic-world/
1•zdw•9m ago•0 comments

Show HN: Hands on tutorial for open source contribution

https://github.com/firstcontributions/first-contributions
1•Mohamed-Edeeb•12m ago•0 comments

Burnout Is Real in the OSS World, Says John-David Dalton, Creator of Lodash

https://openjsf.org/blog/burnout-is-real-for-open-source-maintainers
3•theanonymousone•12m ago•0 comments

DokuWiki Markdown Support

https://www.patreon.com/dokuwiki/posts/dokuwiki-support-158080793
2•thunderbong•13m ago•0 comments

The Disappearance of Japan's Animators

https://economist.com/interactive/1843/2026/06/19/the-strange-disappearance-of-japans-animators
2•andsoitis•17m ago•0 comments

Some Favorite Quotes

https://www.cs.virginia.edu/~evans/quotes.html
2•jruohonen•18m ago•0 comments

AI is a mass psychotic delusion [video]

https://www.youtube.com/watch?v=WNiSUGCC-gY
12•jmount•20m ago•2 comments

Show HN: I built notion to docs website generator

https://volta-docs.myurll.in/
2•nookeshkarri7•20m ago•0 comments

What Does OO Afford? (2018)

https://sandimetz.com/blog/2018/21/what-does-oo-afford
3•mooreds•22m ago•0 comments

Show HN: A Browser Built for Browser Automation

https://github.com/tilework-tech/nori-browser/
2•theahura•25m ago•0 comments

Beyond Visibility: The Linkage Gap

https://zenodo.org/records/20761232
2•tas101•26m ago•0 comments

NVFP4 Blockscaled GEMM on NVIDIA RTX Pro Blackwell GPUs (SM12x)

https://research.colfax-intl.com/cutlass-tutorial-nvfp4-blockscaled-gemm-on-nvidia-rtx-pro-blackw...
1•matt_d•27m ago•0 comments

The Minimum Viable Unit of Saleable Software

https://brandur.org/minimum-viable-unit
2•brandur•27m ago•0 comments

Thoughts

https://felleisen.org/matthias/Thoughts/index.html
2•jruohonen•29m ago•0 comments

OpenDroneMap's Documentation

https://docs.opendronemap.org/
2•mooreds•29m ago•0 comments

Show HN: Zither – paste JSON/CSV/a spreadsheet table, stats instantly, no AI

https://zither-zeta.vercel.app/
1•bluecomputing•29m ago•0 comments

Bonfires in the Dark: Ritual, Science, and AI as Compression Interfaces

https://bartoszlenart.com/blog/bonfires-in-the-dark
1•grasant•31m ago•0 comments

Can I offer "login with yahoo" using FusionAuth?

https://fusionauth.io/community/forum/topic/3013/can-i-offer-login-with-yahoo-using-fusionauth
1•mooreds•33m ago•0 comments

Show HN: Fupio – Social RSS Reader

https://fupio.com/
1•mehmetkose•33m ago•0 comments

Electrek Drives the Sun-Powered EV from Aptera

https://electrek.co/2026/06/17/we-finally-got-to-drive-the-aptera-solar-electric-car/
2•TeaVMFan•33m ago•0 comments

Seth Larson on Making Things

https://digitalseams.com/blog/seth-larson-on-making-things
1•bobbiechen•34m ago•0 comments

Designing a Better strcpy (2020)

https://saagarjha.com/blog/2020/04/12/designing-a-better-strcpy/
1•GalaxySnail•39m ago•0 comments

Trained a small language model for just generating question

https://huggingface.co/aungkomyint/tara1.2-quest
1•aungkomyint•41m ago•0 comments

Peter H. Diamandis, MD on X: "The Next 5 Years: A Supersonic Tsunami" / X

https://twitter.com/PeterDiamandis/status/2068716115941834885
2•bilsbie•43m ago•0 comments

Show HN: Open-Source Legends

https://opensourcelegends.com/
1•buffer_overlord•44m ago•0 comments

The Next Generation of Distrobox

https://distrobox.it/posts/announcing_distrobox_next/
2•birdculture•44m ago•0 comments