xpaysh/awesome-x402 logo

xpaysh/awesome-x402

Free

x402 支付协议资源目录,包含 MCP 服务器、SDK 和工具,用于基于 HTTP 402 的 USDC 支付(支持 Base、Arbitrum 等 EVM 链)。

FreeFree tier
Type
Open Source

About xpaysh/awesome-x402

awesome-x402 is a comprehensive curated list of resources for the x402 protocol, which enables instant blockchain payments over HTTP using the 402 'Payment Required' status code. It includes official protocol specifications, SDKs (TypeScript, Python, Rust), server frameworks, client libraries, example applications, integration guides for AI agents (including MCP integration), facilitators like Coinbase and Cloudflare, tutorials, and community resources. The protocol supports USDC on EVM chains (Base, Arbitrum) with zero fees and 2-second settlement, designed for AI agents, API monetization, micropayments, and paywalls. This repository serves as a complete hub for developers to build internet-native payments.

Key Features

Comprehensive resource hub with official x402 protocol documentation, specs, and whitepapers
SDKs and client libraries in TypeScript, Python, and Rust for easy integration
Server frameworks and middleware for building payment-enabled APIs and paywalls
AI agent integration via MCP (Model Context Protocol) for autonomous payments
Facilitators including Coinbase Developer Platform and Cloudflare integration
Example applications and quickstart guides for immediate use
Zero fees and 2-second settlement on USDC payments over EVM chains (Base, Arbitrum)
One-line integration option for adding payment middleware

Pros & Cons

Pros
  • Free and open-source resource collection
  • Comprehensive coverage from specs to production implementations
  • Supports multiple programming languages (TypeScript, Python, Rust)
  • Fast settlement (2 seconds) and zero transaction fees
  • Designed for AI agent economy with MCP integration
  • One-line code integration option reduces development time
  • Backed by Coinbase protocol specification
Cons
  • Limited to EVM-compatible chains (primarily Base and Arbitrum)
  • Requires technical knowledge of blockchain and HTTP protocols
  • As a curated list, some resources may become outdated without maintenance
  • Dependency on USDC stablecoin may limit user base in some regions

Best For

Monetizing APIs and services with per-request paymentsEnabling autonomous AI agents to make and receive paymentsBuilding paywalls for digital content and subscriptionsProcessing crypto micropayments for streaming or pay-per-use modelsIntegrating blockchain payments into existing web applications via HTTP 402

FAQ

What is the x402 protocol?
x402 is an open-source protocol that enables instant blockchain payments over HTTP using the 402 'Payment Required' status code. It allows accepting USDC payments with zero fees and 2-second settlement on EVM chains like Base and Arbitrum.
How do I get started with x402?
You can start by following the 5-minute quickstart guide in the awesome-x402 repository. Choose your preferred language/framework, copy an example, and run it. For AI agents, start with MCP integration.
What programming languages are supported?
The awesome-x402 list includes SDKs and client libraries in TypeScript, Python, and Rust.
Can I use x402 for AI agent payments?
Yes, x402 is designed for AI agents. The repository provides MCP (Model Context Protocol) integration to enable Claude and other agents to make autonomous payments.
What are the fees and settlement times?
x402 protocol claims zero fees and 2-second settlement for USDC payments on EVM chains.