Runs it
x402 Foundation
Projects
20
Official
1
Stars checked
2026-11-08
20 Projectsx402 directory

x402 SDKs and Payment Tools: 20 open-source projects compared

Charge per API call or let your agent pay for one. Compare 20 open-source x402 SDKs, facilitators and paywalls by stars, licence and activity, and ship pay-per-request in days, not months.

Compare x402 projects

These 20 open-source projects implement or support x402. 1 are maintained by the official project and the rest by the community. Sort by stars or recent activity, or filter by type. These projects are listed from public GitHub data and are not scanned by AgenticMart.

x402

x402-foundation/x402
OfficialApache-2.0Last push 2026-11-06

Reference specification and SDKs for the x402 payments protocol

SpecTypeScript 6.8k

ClawRouter

BlockRunAI/ClawRouter
CommunityMITLast push 2026-11-06

LLM router for agents with optional USDC payment through an x402 wallet

ToolTypeScript 6.7k

vapi-network

vAPI-Network/vapi-network
CommunityApache-2.0Last push 2026-11-07

TypeScript client for paying x402 APIs in USDC on Base

SDKTypeScript 3.1k

pay

solana-foundation/pay
CommunityMITLast push 2026-11-08

Solana Foundation command-line tool for agent payments over x402

ToolRust 1.8k

Daydreams

daydreamsai/daydreams
CommunityMITLast push 2026-10-09

Agent commerce toolkit with x402 pay-per-use model access

SDKTypeScript 624

A2A x402 Extension

google-agentic-commerce/a2a-x402
CommunityApache-2.0Last push 2026-08-04

Extension bringing x402 crypto payments to the A2A protocol

SpecPython 572

Franklin

BlockRunAI/Franklin
CommunityApache-2.0Last push 2026-11-08

AI agent that pays for its work in USDC through x402

AgentTypeScript 563

x402scan

Merit-Systems/x402scan
CommunityNo licence detectedLast push 2026-10-27

Explorer for the x402 ecosystem

ToolTypeScript 403

BlockRun MCP

BlockRunAI/blockrun-mcp
CommunityMITLast push 2026-11-08

MCP server selling live data per call through x402 micropayments

ServerTypeScript 389

x402-rs

x402-rs/x402-rs
CommunityApache-2.0Last push 2026-07-13

Rust libraries to verify, settle and monitor x402 payments

SDKRust 292

openai-python (qntx)

qntx/openai-python
CommunityMITLast push 2026-11-02

OpenAI Python client with x402 payment handling added

SDKPython 262

x402 Starter Kit

dabit3/x402-starter-kit
CommunityMITLast push 2026-03-02

Starter kit for building paid APIs with x402 v2

ExampleTypeScript 181

Vybe x402 Client

vybenetwork/x402-client
CommunityMITLast push 2026-05-13

Client SDK for pay-per-call access to the Vybe API over x402

SDKTypeScript 160

r402

qntx/r402
CommunityApache-2.0Last push 2026-09-14

Rust SDK for the x402 payment protocol

SDKRust 155

openai (qntx)

qntx/openai
CommunityMITLast push 2026-11-07

OpenAI TypeScript client with x402 payment handling added

SDKTypeScript 154

facilitator

qntx/facilitator
CommunityApache-2.0Last push 2026-09-15

x402 facilitator server that verifies payloads and settles on-chain

ServerRust 150

a2a-x402 TypeScript

dabit3/a2a-x402-typescript
CommunityNo licence detectedLast push 2026-07-07

TypeScript port of the A2A x402 payment extension

SDKTypeScript 104

x402 Gateway Template

azep-ninja/x402-gateway-template
CommunityMITLast push 2026-05-02

Self-hosted payment gateway template implementing x402

ExampleJavaScript 94

MCPay

microchipgnu/MCPay
CommunityNo licence detectedLast push 2026-01-21

Infrastructure for charging for MCP servers using x402

ToolTypeScript 90

Faremeter

faremeter/faremeter
CommunityLGPL-3.0Last push 2026-07-06

Framework for machine payments with pluggable x402 schemes

SDKTypeScript 70

Stars and activity checked 2026-11-08. These projects are listed from public GitHub data and are not scanned by AgenticMart. Built one? List it free now, paid selling opens soon.

What is x402?

x402 is an open standard for internet-native payments built on the HTTP 402 Payment Required status code. A server can require payment for a request, and a client that receives a 402 response pays and retries. Coinbase created the protocol and contributed it to the x402 Foundation at the Linux Foundation, announced on April 2, 2026.

Runs it: x402 Foundation, hosted by the Linux Foundation; contributed by CoinbaseStatus: Described as production-ready in the FAQ on x402.org

x402 vs AP2: what is the difference

x402 moves a payment over HTTP, while AP2 focuses on proving that a user authorized what an agent buys. AP2 is designed to work across payment types, and its samples include scenarios that pay with x402. The separate a2a-x402 project, listed below, combines A2A with x402, and its maintainers plan to align it with AP2. New to MCP? Read what an MCP server is.

What an x402 message looks like

When a paid resource is requested without payment, the server answers HTTP 402 with a base64-encoded PAYMENT-REQUIRED header, shown here decoded. It tells the client which payment schemes, network, asset, amount and recipient address it will accept.

Decoded PAYMENT-REQUIRED header on a 402 responsejson
{
  "x402Version": 2,
  "error": "PAYMENT-SIGNATURE header is required",
  "resource": {
    "url": "https://api.example.com/premium-data",
    "description": "Access to premium market data",
    "mimeType": "application/json"
  },
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:84532",
      "amount": "10000",
      "asset": "0x036CbD53842c5426634e7929541eC2318f3dCF7e",
      "payTo": "0x209693Bc6afc0C5328bA36FaF03C514EF312287C",
      "maxTimeoutSeconds": 60,
      "extra": {
        "name": "USDC",
        "version": "2"
      }
    }
  ]
}

From the official specification, checked 2026-11-12.

x402 questions

What is x402?

x402 is an open standard that lets a service charge for an API or web content directly over HTTP. It builds on the 402 Payment Required status code, so a buyer does not need an account or API key. It is licensed under Apache-2.0, and the protocol itself adds no fees beyond the payment network's own costs.

x402 vs AP2: what is the difference?

x402 moves a payment over HTTP, while AP2 focuses on proving that a user authorized what an agent buys. AP2 is designed to work across payment types, and its samples include scenarios that pay with x402. The separate a2a-x402 project, listed below, combines A2A with x402, and its maintainers plan to align it with AP2.

Which blockchains and tokens does x402 support?

As of November 2026, x402 covers EVM chains and Solana along with networks such as TON, Algorand, Stellar, Aptos, Hedera, NEAR, XRPL, Cardano and Sui. On EVM chains it works with ERC-20 tokens through EIP-3009 or Permit2. Protocol support is not the same as production support, because you also need a facilitator path for that network.

How do I get started with x402?

Add x402 payment middleware to an existing API, set the routes to charge for and give it a wallet address to receive funds. The seller quickstart in the docs tests on Base Sepolia or Solana devnet with the x402.org facilitator. Packages are available for TypeScript, Python and Go.

How does x402 work?

A server answers an unpaid request with a 402 response that says what it accepts, and the client pays and retries. The retry carries a signed payment in a PAYMENT-SIGNATURE header. The server then verifies and settles the payment, on its own or through a facilitator, and returns the resource.

Who created x402?

x402 was incubated at Coinbase, which contributed it to the x402 Foundation at the Linux Foundation on April 2, 2026. The foundation became fully operational on July 14, 2026. As of November 2026, it is run under open governance with members that include Coinbase, Google, Visa and Stripe.

Is x402 production-ready?

The x402.org FAQ describes x402 as production-ready as of November 2026, but that is the project's own statement. The same page says it has been audited and has processed millions of transactions, without giving supporting data there. Check the facilitator and network you plan to use, since production coverage varies.

Other agent protocols