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

Gravitre, an MCP server with memory that tells you what it didn't do

https://gravitre.app/
1•cesarbohorquezj•7m ago•0 comments

Nikita Bier Steps Down as Head of Product at X

https://twitter.com/nikitabier/status/2085105586966827343/
5•DearAll•8m ago•0 comments

Anyone who installed ecto 5.0.1 should consider that environment compromised

https://github.com/jaredwray/ecto/issues/391
2•trelane•10m ago•2 comments

Robotaxis granted licence to operate in London

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

Prime Agent: A self-improving RLM agent

https://www.primeintellect.ai/blog/prime-agent
4•Xeophon•12m ago•0 comments

'All hands on deck': Oil industry rallies to keep Trump from stopping export

https://www.politico.com/news/2026/08/05/oil-industry-prevent-trump-stopping-exports-01025641
2•mapping365•13m ago•2 comments

AI models breaking contraints has industry concerned

https://www.rnz.co.nz/news/world/901880/ai-models-breaking-contraints-has-industry-concerned-hele...
4•billybuckwheat•15m ago•0 comments

A Fed official is asking whether AI is becoming 'too big to fail'

https://thenextweb.com/news/a-fed-official-is-asking-whether-ai-is-becoming-too-big-to-fail
3•cdrnsf•16m ago•0 comments

Turn a protein PDB structure into a 3D print

https://pdb2print.org/
1•mihaitodor•16m ago•0 comments

Virus reactivation in acute and long Covid-19

https://www.nature.com/articles/s41586-026-10740-z
1•sbulaev•17m ago•0 comments

'She was almost a Batman figure': Mexico's avenging Mother Courage

https://www.theguardian.com/news/ng-interactive/2026/jul/21/she-was-almost-a-batman-figure-mexico...
1•gmays•17m ago•0 comments

We're debating the next feature for StateGuard. Would you trust this?

https://www.indiehackers.com/post/were-debating-the-next-feature-for-stateguard-would-you-trust-t...
1•doodlebyte•19m ago•0 comments

These Employees Like Their A.I. Boss. Its Shop Is Kind of a Disaster

https://www.nytimes.com/2026/08/04/us/ai-boss-san-francisco-andon-market.html
2•paulpauper•19m ago•0 comments

The A.I. Giants Weren't Prepared for This

https://www.nytimes.com/2026/08/04/opinion/ezra-klein-podcast-jasmine-sun.html
1•paulpauper•19m ago•0 comments

OpenAI says my prepaid credits were consumed, refuses to show any record

https://community.openai.com/t/how-openai-lost-a-paying-customer-over-160-it-refuses-to-explain/1...
2•ppavlyuk•20m ago•1 comments

Lemmings (Video Game)

https://en.wikipedia.org/wiki/Lemmings_(video_game)
1•soupspaces•21m ago•0 comments

Show HN: Thunderbird addon for displaying message excerpt next to subject line

https://github.com/michael-markl/thunderbird-message-excerpts
1•michael-markl•22m ago•0 comments

Keeping yesterday's computers ticking takes more than nostalgia

https://www.theregister.com/offbeat/2026/08/05/keeping-yesterdays-computers-ticking-takes-more-th...
3•rbanffy•24m ago•0 comments

When online commenters detect my art as AI

https://www.davidrevoy.com/article1164/when-online-commenters-detect-my-art-as-ai
2•Jare•25m ago•0 comments

Pre-commit vs. CI quality gates

https://blog.codacy.com/pre-commit-vs-ci-quality-gates-when-fast-shipping-moves-the-checks-upstream
1•ARayOutOfBounds•27m ago•0 comments

Time travellers are using LinkedIn to teach us about artificial intelligence

https://www.ft.com/content/4a4b442c-7ae4-4553-bcab-d744d8d46c79
1•JumpCrisscross•27m ago•0 comments

A Polish architect rotated his house to hide it in the hill

https://www.yankodesign.com/2026/07/30/a-polish-architect-rotated-his-house-to-hide-it-in-the-hill/
1•andrewstetsenko•28m ago•0 comments

Hank Green found the AI problem that YouTube labels can't catch

https://arstechnica.com/ai/2026/08/hank-green-found-the-ai-problem-that-youtube-labels-cant-catch/
2•CharlesW•29m ago•0 comments

Fragplay – Download and play music easily

https://codeberg.org/micro4scopic/fragplay
1•holeinwall•30m ago•1 comments

Pam Bondi Implicated in as Much as $5.5M in Insider Trading

https://cmarmitage.substack.com/p/pam-bondi-implicated-in-as-much-as
21•JumpCrisscross•32m ago•3 comments

Muse Spark 1.2 (Xhigh) Intelligence, Performance and Price Analysis

https://artificialanalysis.ai/models/muse-spark-1-2
2•theanonymousone•33m ago•0 comments

Animals that self-medicate (2014)

https://www.pnas.org/doi/10.1073/pnas.1419966111
1•EndXA•35m ago•0 comments

Call for Ideas: Autonomous Software Experiments on Hera

https://ideas.esa.int/core/servlet/hype/IMT?documentTableId=8527279057944083272&userAction=Browse...
2•Carbonhell•36m ago•1 comments

Mexico's top univ orders 58k students to retake entrance exam:suspected cheating

https://www.theguardian.com/world/2026/aug/05/mexico-top-university-unam-resit-entrance-exam-chea...
2•bookofjoe•37m ago•0 comments

Reddit signals ominous upcoming "changes" for old.reddit.com

https://arstechnica.com/gadgets/2026/08/reddit-signals-ominous-upcoming-changes-for-old-reddit-com/
7•CharlesW•38m ago•3 comments