x402-foundation/x402
A payments protocol for the internet. Built on HTTP. observed · 2026-08-28
Health v2 · maintenance only
65/100
- Activity 99
- Release rhythm 35
- Longevity 39
Flags: no_releases
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 559
- days_rel: n/a
- days_push: 7
- n_releases_24m: 0
Adoption not part of the score
6543 stars · 1967 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
x402 is an open standard and SDK suite for internet-native payments built on the HTTP 402 status code, letting servers charge for API or content access with a single line of middleware. It supports multiple blockchains (EVM, Solana, and others) and fiat rails, and is designed for both human developers and AI agents making machine-to-machine payments.
Use cases
- monetize an api with per-request micropayments
- add a paywall to http endpoints with one line of middleware
- let ai agents pay for api access programmatically without accounts
- accept stablecoin payments for web services
- charge for content over http using the 402 status code
- build machine-to-machine payment flows for agents
When to choose
- you want usage-based or micropayment monetization of an API without accounts or subscriptions
- you need programmatic payments suitable for AI agents and machine-to-machine traffic
- you want a network-agnostic, open standard with SDKs for TypeScript, Python, and Go
- you prefer zero protocol fees and crypto-native settlement
When to avoid
- you need traditional subscription billing, invoicing, or card checkout flows
- your users cannot or will not use crypto wallets or stablecoins
- you require full regulatory/compliance features like KYC built into the payment layer
- your stack has no supported SDK and you cannot implement the HTTP 402 flow yourself
Facets
library · maturity active
middleware http-client api-framework sdk cryptography fintech apis web-development large-language-models blockchain developer-tools python go cross-platform payments http-402 micropayments stablecoins crypto-payments agentic-payments paywall monetization open-standard usdc ai-agents nodejs typescript web-server
6 sources
- readme: https://github.com/x402-foundation/x402 · fetched 2026-08-28 · 0a83adc94f90
- homepage: https://x402.org · fetched 2026-08-29 · 56d7b9dec7bd
- site_page: https://docs.x402.org/ · fetched 2026-08-29 · 58ea3997cc30
- site_page: https://docs.x402.org/getting-started/quickstart-for-buyers · fetched 2026-08-29 · 8979507ee9e9
- site_page: https://docs.x402.org/getting-started/quickstart-for-sellers · fetched 2026-08-29 · b74958feb8e0
- registry_npm: https://registry.npmjs.org/x402 · fetched 2026-08-29 · cafc159f960b
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| x402-foundation/x402 | main | 65 |
For agents
markdown · JSON · MCP: product_card(name="x402-foundation/x402")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem