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

Hex1bThe .NET Terminal Application Stack

https://hex1b.dev/
1•joshka•30s ago•0 comments

What If Everyone Saw Your Whole Digital Life?

https://nymag.com/intelligencer/article/your-digital-self-is-vulnerable.html
1•gaws•49s ago•0 comments

Ask HN: Would you want to know when and how you die?

1•JohnDSDev•2m ago•0 comments

The Technical Realities of Email Privacy

https://www.ivpn.net/privacy-guides/email-and-privacy/
3•jethronethro•2m ago•0 comments

Something Is Very Wrong in San Francisco

https://www.simplermachines.com/something-is-very-wrong-in-san-francisco/
1•danorama•3m ago•0 comments

Hubble tension, dark energy, and α from one number, zero free parameters

https://zenodo.org/records/19230547
1•yukky•5m ago•0 comments

All Gists Discussed on HN

https://news.ycombinator.com/from?site=gist.github.com&kind=comment
1•sillysaurusx•6m ago•1 comments

Discussion of GitHub repos on HN

https://news.ycombinator.com/from?site=github.com&kind=comment
1•sillysaurusx•7m ago•0 comments

"polarization" might, in part, be a proximity issue

https://justinjackson.ca/communication
2•YounesDz•7m ago•1 comments

France to ditch Palantir's AI data tools in favour of domestic provider

https://www.theguardian.com/world/2026/jun/16/france-ai-data-tools-palantir-chapsvision
6•devonnull•10m ago•0 comments

Property Graph Support in PostgreSQL 19

https://www.postgresql.org/docs/19/ddl-property-graphs.html
1•tharakam•10m ago•0 comments

How to Deploy Hermes AI Agent with Docker and HTTPS

https://devopness.com/blog/deploy-hermes-ai-agent-devopness/
1•Diegiwg•12m ago•0 comments

US moves to offer Iran sanctions relief

https://www.timesofisrael.com/liveblog_entry/us-to-allow-iran-to-begin-selling-oil-and-fuel-immed...
1•GreenSalem•12m ago•0 comments

Skill Fablize for Hermes

https://github.com/teixeirazeus/fablize-for-hermes
1•teixeirazeus•13m ago•0 comments

OBS Agentic Control Interface

https://github.com/DeepBlueDynamics/obsagent
1•kordlessagain•18m ago•0 comments

Trump admin tries to block Clean Air Act lawsuit over xAI's gas turbines

https://arstechnica.com/tech-policy/2026/06/trump-admin-helps-xai-fight-pollution-lawsuit-says-mi...
5•staplung•24m ago•1 comments

The Limits of Altruism

https://asindu.xyz/blog/the-limits-of-altruism/
1•asxndu•24m ago•0 comments

Web Search API for Agents 70x Cheaper Than Exa

https://www.searchspace.io/
2•carsonpoole•26m ago•0 comments

OpenAI spending hit $34B last year ahead of planned IPO, $21B losses

https://www.ft.com/content/e15b0d7e-ff6b-4f16-ba7a-4068feddb828
2•1vuio0pswjnm7•27m ago•0 comments

Building Production AI Apps on Claude Code and Cloudflare [video]

https://www.youtube.com/watch?v=rwkAksbNsTg
1•presengage•28m ago•0 comments

How HN: Nova BRAIN – STIG scanning and POA&M automation dashboard

https://dawitone.gumroad.com/l/fgwfzl
1•Butulove•30m ago•0 comments

GoJS – Interactive diagramming for every industry

https://gojs.net/latest/
1•simonsarris•30m ago•0 comments

How to make small models punch way above their weight with DeepClause

https://deepclause.substack.com/p/how-to-make-small-models-punch-way
1•schmuhblaster•30m ago•0 comments

Gravitational-wave detections double with new catalog

https://news.northwestern.edu/stories/2026/03/gravitational-wave-detections-double-with-new-catalog
1•wglb•31m ago•0 comments

Framer 3.0

https://www.framer.com/updates/framer-3
1•SpyCoder77•32m ago•0 comments

OpenAI's financials have leaked, showing $21B in losses against $13B in revenue

https://fortune.com/2026/06/16/openai-financials-leaked-losses-revenue-profit/
6•1vuio0pswjnm7•32m ago•1 comments

Spin separates giant planets from 'failed stars'

https://news.northwestern.edu/stories/2026/03/spin-separates-giant-planets-from-failed-stars
2•wglb•32m ago•0 comments

Show HN: I Built a Free Text Based Audio Editor

https://audioeditor.pro/
1•wbemaker•34m ago•0 comments

How SpaceX's arrival impacts the stock market

https://www.axios.com/2026/06/15/spacex-ipo-stock-retail
1•1vuio0pswjnm7•34m ago•0 comments

PP-OCRv6

https://huggingface.co/collections/PaddlePaddle/pp-ocrv6
3•gomizhuce•37m ago•0 comments