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

How Worried Should You Be About Climate Change?

https://mishaglouberman.substack.com/p/how-worried-should-you-be-about-climate
1•smartmic•50s ago•0 comments

PhysicsIntern: From an Autonomous Benchmark-Runner to a Research Sidekick

https://huggingface.co/blog/dlouapre/physics-intern
1•ForgotIdAgain•58s ago•0 comments

Jiff

https://lib.rs/crates/jiff
1•tosh•1m ago•0 comments

Viscribe – OSS image analysis tools for AI agents

https://github.com/itsperini/viscribe
1•itsperini•1m ago•0 comments

The secrets and truth inside Chungking Mansions

https://multimedia.scmp.com/chungking-mansions/index.html
1•keiferski•1m ago•0 comments

Israel expanded propaganda contract with Trump's former campaign manager

https://jackpoulson.substack.com/p/israel-expanded-propaganda-contract
2•untiledsource•2m ago•0 comments

Xbox CEO Says Current Margins 'Cannot Continue' in Public Letter to Staff

https://www.engadget.com/2191897/xbox-ceo-says-current-margins-cannot-continue-in-public-letter-t...
2•BeetleB•3m ago•0 comments

DDD: Dopamine Driven Development

https://johncodes.com/archive/2025/10-12-ddd/
1•jpmcb•4m ago•0 comments

Israel's Paid U.S. Influencer Network Exposed – – Imemc News

https://imemc.org/article/israels-paid-u-s-influencer-network-exposed/
2•untiledsource•5m ago•0 comments

Iran threatens Elon Musk's companies in Middle East: Iranian state media

https://www.cnbc.com/2026/06/11/iran-threatens-elon-musks-companies-in-middle-east-iranian-state-...
1•u1hcw9nx•5m ago•0 comments

The Post-Transformer Edge: LFM 2.5 vs. MT-LNN (AwareLiquid)

https://github.com/everest-an/M1
1•EverestAn•5m ago•0 comments

Debootstrapping without archeology: stacked implementations in Camlboot

https://arxiv.org/abs/2202.09231
1•fanf2•5m ago•0 comments

Euro-Office must default to ODF to be considered "genuinely European"

https://www.neowin.net/news/euro-office-must-default-to-odf-to-be-considered-genuinely-european-l...
1•bundie•6m ago•0 comments

VDBBench 2.0: now measures cost, not just performance

https://zilliz.com/blog/vdbbench-adds-cost-aware-benchmarking-for-vector-databases
1•Fendy•6m ago•1 comments

Velxio 3.0 – An AI hardware Agent that designs circuits an emulator

https://github.com/davidmonterocrespo24/velxio/releases/tag/v3.0.0
1•dmcrespo•6m ago•0 comments

AI Economics for Dummies

https://www.mcsweeneys.net/articles/ai-economics-for-dummies
1•amatheus•6m ago•0 comments

Right to Repair activist sues Samsung for not honouring warranty on a 4TB SSD

https://www.tomshardware.com/pc-components/ssds/louis-rossman-threatens-to-take-samsung-to-court-...
1•thisislife2•7m ago•0 comments

Rust-like compiler pipeline to resolve Matlab language semantics

https://runmat.com/blog/inside-runmat-runtime-compiler-pipeline
1•finbarr1987•8m ago•1 comments

Swift Runs Everywhere. I Checked

https://aleahim.com/blog/swift-runs-everywhere/
3•tracymiranda•11m ago•1 comments

Apple didn't revolutionize power supplies; new transistors did

https://www.righto.com/2012/02/apple-didnt-revolutionize-power.html
2•geerlingguy•12m ago•0 comments

Show HN: Real Job Check – paste a job post, get a cited real-or-scam verdict

https://realjobcheck.com/
1•biotechdude•13m ago•0 comments

GPT-4.1's sampling distribution for random numbers is not uniform

https://old.reddit.com/r/dataisbeautiful/comments/1tn5s18/oc_i_asked_gpt_to_pick_a_random_number_...
1•bear_with_me•13m ago•0 comments

Open source AI currency whitepaper

https://github.com/lehanepatrick148-cloud/cipher-whitepaper
1•ciphercphr•14m ago•1 comments

LLMs are not an acceptable high level language

https://federicopereiro.com/llm-not-high/
1•swah•14m ago•0 comments

There Is Life Before and After Main in Rust

https://grack.com/blog/2026/06/11/life-before-main/
1•mmastrac•15m ago•0 comments

The roof, the roof, the roof is on fire

https://unskippablecutscene.substack.com/p/the-roof-the-roof-the-roof-is-on
1•peoplelizard•16m ago•0 comments

Codex usage grows after Fable nerf model release

https://twitter.com/i/status/2064727949274955953
1•m3h•17m ago•0 comments

The Trouble with Font Previews

https://unsung.aresluna.org/the-trouble-with-font-previews/
2•abnercoimbre•18m ago•0 comments

Building Agents Without Harness-Engineering

https://rajitkhanna.com/agents/
2•rajit•18m ago•0 comments

Local firewall for AI Agents that cuts tokens usage and cost by 40–70%

https://github.com/ashp15205/guardian-runtime
3•developer_ash•19m ago•0 comments