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

The Night Feeling

https://cleberg.net/blog/the-night-feeling.html
1•meysamazad•21s ago•0 comments

Terraforming Mars: Mass, Forcing, and Industrial Throughput Constraints

https://arxiv.org/abs/2603.00402
1•iljah•1m ago•0 comments

How I'm using CSS View Transitions on this blog

https://blog.omgmog.net/post/how-im-using-css-view-transitions-on-this-blog/
1•meysamazad•2m ago•0 comments

JellyFil ReviEwS (2026): We Tried It My Honest Review

https://gamma.app/embed/JellyFil-ReviEwS-2026-We-Tried-It-My-Honest-Review-1w1wv6vumlzptys
1•taqihays•2m ago•0 comments

The future of work: AI, juniors, and expectations

https://www.zeitgeistofbytes.com/p/the-future-of-work-ai-juniors-and
1•meysamazad•2m ago•0 comments

Tlbic v8.0 Appendix: Examining Bottom-Up Governance

https://drive.google.com/file/d/1cmTacZ9ruEVEr7I8ZEuzJ7od-7Yx40t-/view?usp=drive_link
1•michikawa59•7m ago•1 comments

OpenClaw vs. KiloClaw vs. Hermes Agent

https://3hcloud.com/blog/openclaw-vs-kiloclaw-vs-hermes-agent
1•Liriel•9m ago•0 comments

Xring: Crashing XQUIC with spec-compliant QPACK instructions

https://foxio.io/blog/xring-crashing-xquic-with-spec-compliant-qpack-instructions
1•PranaFlux•10m ago•0 comments

Promise Theory

https://en.wikipedia.org/wiki/Promise_theory
1•dmonay•10m ago•0 comments

Why Europe's tech ecosystem collapses in simulation (a causal-loop analysis)

https://hebelai.substack.com/p/why-europes-tech-ecosystem-collapses
2•bastbuch•14m ago•0 comments

Negative squaring – pre-tilted 3-bit quantization beat naive 4-bit

https://github.com/elpinyeknom/negative-squaring-/tree/main
1•faDOOM•17m ago•0 comments

Show HN: Airline pilot's interactive guide to aviation radio

https://jameshard.ing/posts/aviation-radio/
1•jamesharding•21m ago•1 comments

Ask your data in plain English

https://tablitsa.app/blog/ask-your-data-in-plain-english
1•valerko•21m ago•0 comments

Nearly half of U.S. retail spending comes from top 10% of earners

https://www.marketplace.org/story/2025/09/17/top-10-of-earners-make-up-half-of-us-retail-spending
2•akyuu•22m ago•0 comments

EasyJet is essential British travel infrastructure

https://revman.substack.com/p/easyjet-is-essential-british-travel
1•edward•22m ago•0 comments

Pgrust – Postgres, Rewritten in Rust

https://pgrust.com/
2•jonbaer•23m ago•0 comments

A Committee of Identical Agents Is Still One Mind

https://bugmedaily.substack.com/p/a-committee-of-identical-agents-is
1•enesunal•24m ago•0 comments

Comparing ML models in small molecule drug discovery

http://fbdd-lit.blogspot.com/2026/04/comparing-ml-models-in-small-molecule.html
1•surprisetalk•27m ago•0 comments

Late Bronze Age Collapse

https://acoup.blog/2026/01/30/collections-the-late-bronze-age-collapse-a-very-brief-introduction/
2•dmonay•27m ago•0 comments

Codex Chronicle

https://learn.chatgpt.com/docs/customization/chronicle
1•dmonay•28m ago•0 comments

Show HN: MCP Gateway – Turn existing APIs and databases into MCP servers

https://swaggertomcp.com
1•mhmt_dmr•28m ago•0 comments

Microcosm Industries: simulation toys and software microcosms

https://microcosm.industries/
1•arbesman•31m ago•0 comments

China's 'Silicon Valley' in Hangzhou: Home of DeepSeek, Alibaba and Ant Group [video]

https://www.youtube.com/watch?v=aEx7DvR5fZE
2•binyu•31m ago•0 comments

Hardening stb libraries using AI agents

https://mrunix.me/posts/stb-hardening/
2•mrunix•31m ago•0 comments

AI Slop by Robobun

https://github.com/oven-sh/bun/pull/33864
1•struanr•32m ago•0 comments

Show HN: Intel Desk, a geopolitical desk that scores sources and tracks Hormuz

https://www.inteldesk.app/
2•wudwerd01•34m ago•0 comments

Google DeepMind workers in UK vote to unionize amid deal with US Military

https://www.theguardian.com/us-news/2026/may/04/google-deepmind-uk-workers-union
2•nervai•34m ago•0 comments

Q1 2026 Innovation: Open-source collaboration is accelerating worldwide

https://github.blog/news-insights/policy-news-and-insights/q1-2026-innovation-graph-update-open-s...
1•AtroGi•35m ago•0 comments

Designing a Distributed Anti-Cheat Architecture

https://medium.com/@www.ahadprogamer/designing-a-distributed-anti-cheat-pipeline-14f13410d3e5
1•Ahadprogamer•38m ago•0 comments

Testing GPT 5.6 [video]

https://www.youtube.com/watch?v=SettwwX2cCI
1•mgh2•44m ago•0 comments