# awesome-x402 — HTTP 402 Payments for Agents (x402) > Curated list of x402 (HTTP 402 Payment Required) resources for pay-per-call APIs and agent tools. Use it to evaluate metered access and payments. ## Install Merge the JSON below into your `.mcp.json`: ## Quick Use ```bash git clone https://github.com/xpaysh/awesome-x402 cd awesome-x402 rg -n "SDK|Python|TypeScript|MCP" README.md ``` ## Intro awesome-x402 helps you explore “agent payments”: find official specs, SDKs, and examples for pay-per-call tool access. **Best for:** Builders who want metered tool usage (pay-per-call) for APIs or agent utilities **Works with:** Any stack; pairs with HTTP services and tool-calling agents **Setup time:** 10–30 minutes ### Key facts (verified) - The list includes official x402 specs + multiple SDKs and community implementations (see README). - Useful for evaluating pay-per-call tool access patterns referenced in the directory entries. - GitHub: 208 stars · 290 forks; pushed 2026-05-08 (GitHub API verified). ## Main ### Where x402 fits in agent ops Gate expensive tools behind a per-call budget, and treat receipts as an audit log. ### README excerpt (verbatim) # Awesome X402 [![Awesome](https://awesome.re/badge.svg)](https://awesome.re) > ⚡ **The Ultimate x402 Resource Hub** - Everythng you need to build internet-native payments using HTTP 402. Perfect for AI agents, APIs, and micropayments. Build paywalls, monetize services, and enable autonomous agent payments with crypto/USDC. Zero fees, 2-second settlement. [![GitHub stars](https://img.shields.io/github/stars/xpaysh/awesome-x402?style=social)](https://github.com/xpaysh/awesome-x402) ## Contents - [🎯 Quick Start - Become an x402 Champion](#-quick-start---become-an-x402-champion) - [📚 Official Resources](#-official-resources) - [📖 Protocol Documentation](#-protocol-documentation) - [🚀 Quickstart Guides](#-quickstart-guides) - [⚙️ Protocol Implementations](#-protocol-implementations) - [🏭 Production Implementatdions](#-production-implementations) - [🛠️ SDKs & Client Libraries](#-sdks--client-libraries) - [🔧 Server Frameworks & Middleware](#-server-frameworks--middleware) - [🏗️ Facilitators](#-facilitators) - [💡 Example Applications](#-example-applications) - [🎨 Use Cases & Patterns](#-use-cases--patterns) - [🤖 AI Agent Integration](#-ai-agent-integration) - [🔨 Tools & Utilities](#-tools--utilities) - [🧪 Testing & Development](#-testing--development) - [📚 Tutorials & Learning Resources](#-tutorials--learning-resources) - [🎥 Videos & Talks](#-videos--talks) - [📝 Articles & Blog Posts](#-articles--blog-posts) - [👥 Community](#-community) - [🌟 Ecosystem Projects](#-ecosystem-projects) - [📊 Ecosystem Market Data](#-ecosystem-market-data) - [🚀 Migration Guides](#-migration-guides) - [🔒 Security & Audits](#-security--audits) - [🔗 Related Protocols](#-related-protocols) - [🤝 Contributing](#-contributing) - [Awesome Lists](#awesome-lists) The x402 protocol enables instant Blockchain payments over HTTP using the 402 "Payment Required" status code. This is your complete guide to mastering x402 and building the future of agent payments. 🚀 **Start building in 5 minutes** | ⚡ **2-second settlement** | 💰 **USDC on Base** --- ## 🎯 Quick Start - Become an x402 Champion **New to x402?** Follow this path to mastery: 1. [5-Minute Quickstart](https://docs.cdp.coinbase.com/x402/quickstart-for-sellers) - Accept your first payment. 2. Choose Your Stack - Find your language/framework. 3. Copy an Example - Working code you can run immediately. 4. Join the Community - Get help from other builders. **For AI Agents:** Start with [MCP Integration](#model-context-protocol-mcp) to enable Claude/other agents to make autonomous payments. --- ## 📚 Official Resources ### FAQ **Q: Is this an SDK?** A: No—it’s a curated list linking to official specs, SDKs, and examples. **Q: Do I need crypto to use x402?** A: Evaluate requirements in the linked official docs/specs referenced by the README. **Q: How should I start?** A: Pick one official implementation from the README and run a minimal buyer/seller demo first. ## Source & Thanks > Source: https://github.com/xpaysh/awesome-x402 > License: CC0-1.0 > GitHub stars: 208 · forks: 290 --- ## 快速使用 ```bash git clone https://github.com/xpaysh/awesome-x402 cd awesome-x402 rg -n "SDK|Python|TypeScript|MCP" README.md ``` ## 简介 awesome-x402 让你更快上手“Agent 支付”:从官方规范到 SDK 与示例一站式聚合,便于评估按次计费的工具调用与权限控制。 **最适合:** 想为 API 或 agent 工具引入“按次计费”的开发者 **适配:** 任意技术栈;适合与 HTTP 服务与工具调用型 agent 配合 **配置时间:** 10–30 分钟 ### 关键事实(已验证) - README 汇总官方 x402 规范与多个 SDK/社区实现,可用来做选型。 - 目录条目提供按次计费/支付流程的参考入口(以 README 为准)。 - GitHub:208 stars · 290 forks;最近更新 2026-05-08(GitHub API 验证)。 ## 正文 ### x402 在 Agent Ops 里能做什么 把昂贵工具放到按次预算后面,并把收据当作审计日志。 ### README 原文节选(verbatim) # Awesome X402 [![Awesome](https://awesome.re/badge.svg)](https://awesome.re) > ⚡ **The Ultimate x402 Resource Hub** - Everythng you need to build internet-native payments using HTTP 402. Perfect for AI agents, APIs, and micropayments. Build paywalls, monetize services, and enable autonomous agent payments with crypto/USDC. Zero fees, 2-second settlement. [![GitHub stars](https://img.shields.io/github/stars/xpaysh/awesome-x402?style=social)](https://github.com/xpaysh/awesome-x402) ## Contents - [🎯 Quick Start - Become an x402 Champion](#-quick-start---become-an-x402-champion) - [📚 Official Resources](#-official-resources) - [📖 Protocol Documentation](#-protocol-documentation) - [🚀 Quickstart Guides](#-quickstart-guides) - [⚙️ Protocol Implementations](#-protocol-implementations) - [🏭 Production Implementatdions](#-production-implementations) - [🛠️ SDKs & Client Libraries](#-sdks--client-libraries) - [🔧 Server Frameworks & Middleware](#-server-frameworks--middleware) - [🏗️ Facilitators](#-facilitators) - [💡 Example Applications](#-example-applications) - [🎨 Use Cases & Patterns](#-use-cases--patterns) - [🤖 AI Agent Integration](#-ai-agent-integration) - [🔨 Tools & Utilities](#-tools--utilities) - [🧪 Testing & Development](#-testing--development) - [📚 Tutorials & Learning Resources](#-tutorials--learning-resources) - [🎥 Videos & Talks](#-videos--talks) - [📝 Articles & Blog Posts](#-articles--blog-posts) - [👥 Community](#-community) - [🌟 Ecosystem Projects](#-ecosystem-projects) - [📊 Ecosystem Market Data](#-ecosystem-market-data) - [🚀 Migration Guides](#-migration-guides) - [🔒 Security & Audits](#-security--audits) - [🔗 Related Protocols](#-related-protocols) - [🤝 Contributing](#-contributing) - [Awesome Lists](#awesome-lists) The x402 protocol enables instant Blockchain payments over HTTP using the 402 "Payment Required" status code. This is your complete guide to mastering x402 and building the future of agent payments. 🚀 **Start building in 5 minutes** | ⚡ **2-second settlement** | 💰 **USDC on Base** --- ## 🎯 Quick Start - Become an x402 Champion **New to x402?** Follow this path to mastery: 1. [5-Minute Quickstart](https://docs.cdp.coinbase.com/x402/quickstart-for-sellers) - Accept your first payment. 2. Choose Your Stack - Find your language/framework. 3. Copy an Example - Working code you can run immediately. 4. Join the Community - Get help from other builders. **For AI Agents:** Start with [MCP Integration](#model-context-protocol-mcp) to enable Claude/other agents to make autonomous payments. --- ## 📚 Official Resources ### FAQ **它是 SDK 吗?** 答:不是。它是资源清单,会链接到官方规范、SDK 与示例。 **使用 x402 一定要上链吗?** 答:请以 README 链接的官方文档/规范为准进行评估。 **该怎么开始?** 答:先从 README 里挑一个官方实现,跑通最小 buyer/seller demo。 ## 来源与感谢 > Source: https://github.com/xpaysh/awesome-x402 > License: CC0-1.0 > GitHub stars: 208 · forks: 290 --- Source: https://tokrepo.com/en/workflows/awesome-x402-http-402-payments-for-agents-x402 Author: MCP Hub