Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

x402

БесплатноБез исполняемых скриптовНе проверен

x402 open payment standard for HTTP-native crypto payments. Use for API monetization, AI agent payments, micropayments, and integrating USDC payments into web…

enunoот enuno★ 17 звёзд на GitHub16 установок в других каталогах

Об этом скилле

x402 Payment Protocol Skill

The open payment standard that enables services to charge for access to their APIs and content directly over HTTP using the 402 Payment Required status code. Developed by Coinbase as an open standard and backed by the x402 Foundation (co-founded with Cloudflare), x402 enables crypto-native payments without accounts or traditional payment processors.

Protocol Overview

x402 activates the long-reserved HTTP 402 "Payment Required" status code for programmatic cryptocurrency transactions. Key characteristics:

  • Zero Protocol Fees: Only nominal blockchain network fees
  • HTTP-Native: Built into existing HTTP request/response cycle
  • Instant Settlement: Stablecoin payments settle in seconds
  • Stateless: No sessions, accounts, or credentials required
  • Wallet-Based Identity: Crypto wallet address serves as identity
  • AI-Ready: Designed for machine-to-machine autonomous payments

Ecosystem Partners: AWS, Anthropic, Circle, NEAR, Cloudflare

Current Scale (as of 2025):

  • 75M+ transactions processed
  • $24M+ payment volume
  • 94K+ buyers
  • 22K+ sellers

When to Use This Skill

This skill should be triggered when:

  • Implementing paid APIs with cryptocurrency payments
  • Building AI agent payment capabilities (autonomous payments)
  • Setting up micropayment systems for web services
  • Integrating USDC payments into HTTP APIs
  • Working with HTTP 402 Payment Required responses
  • Building MCP servers with payment handling
  • Discovering or registering services on the x402 Bazaar
  • Creating machine-to-machine payment workflows
  • Monetizing APIs without traditional payment processors
  • Building Cloudflare Workers with x402 payments
  • Implementing deferred payment schemes
  • Installing Coinbase Payments MCP for AI agents (Claude, Gemini, Codex)
  • Using x402-mcp for Vercel AI SDK integration

Quick Reference

Installation

Comprehensive TypeScript/JavaScript:

# Full installation (all packages)
npm install @x402/core @x402/evm @x402/svm @x402/axios @x402/fetch \
  @x402/express @x402/hono @x402/next @x402/paywall @x402/extensions

Seller (Node.js):

# Express
npm install @x402/express @x402/core @x402/evm

# Next.js
npm install @x402/next @x402/core @x402/evm

# Hono (Cloudflare Workers)
npm install @x402/hono @x402/core @x402/evm

Buyer (Node.js):

# Minimal Fetch client
npm install @x402/core @x402/evm @x402/svm @x402/fetch

# Axios client
npm install @x402/core @x402/evm @x402/axios

Cloudflare Agents SDK:

# For Cloudflare Workers with x402 support
npm install @cloudflare/agents

Go:

go get github.com/coinbase/x402/go

Python:

pip install x402

Payments MCP (AI Agents):

# Interactive installation
npx @coinbase/payments-mcp

# Auto-configure for specific client
npx @coinbase/payments-mcp --client claude --auto-config
npx @coinbase/payments-mcp --client claude-code --auto-config
npx @coinbase/payments-mcp --client codex --auto-config
npx @coinbase/payments-mcp --client gemini --auto-config

x402-mcp (Vercel AI SDK):

npm install x402-mcp

Package Reference

Package Purpose
@x402/core Core protocol types and utilities
@x402/evm Ethereum/Base chain support (EIP-3009)
@x402/svm Solana chain support
@x402/fetch Fetch API wrapper with payment
@x402/axios Axios wrapper with payment
@x402/express Express.js middleware
@x402/hono Hono framework middleware
@x402/next Next.js integration
@x402/paywall Paywall utilities
@x402/extensions Additional protocol extensions
@coinbase/payments-mcp AI agent payments for Claude, Gemini, Codex
x402-mcp Vercel AI SDK MCP integration

Network Identifiers (CAIP-2)

Network Identifier
Base Mainnet eip155:8453
Base Sepolia (Testnet) eip155:84532
Solana Mainnet solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp
Solana Devnet solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1

Facilitator URLs

Environment URL
Testnet https://x402.org/facilitator
Mainnet (CDP) https://api.cdp.coinbase.com/platform/v2/x402

Payment Flow

┌────────┐                    ┌────────┐                    ┌─────────────┐
│ Client │                    │ Server │                    │ Facilitator │
└────┬───┘                    └────┬───┘                    └──────┬──────┘
     │                             │                               │
     │  1. GET /paid-resource      │                               │
     │─────────────────────────────>                               │
     │                             │                               │
     │  2. 402 Payment Required    │                               │
     │    PAYMENT-REQUIRED: {...}  │                               │
     │<─────────────────────────────
Полный SKILL.md на GitHub

Установить x402 в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

references/ai-agents.mdreferences/bazaar.mdreferences/buyer-integration.mdreferences/cdp-documentation.mdreferences/cloudflare-agents.mdreferences/deferred-payments.mdreferences/facilitator.mdreferences/github-repo.mdreferences/mcp-integration.mdreferences/payments-mcp.mdreferences/protocol-spec.mdreferences/seller-integration.md

FAQ

Что делает скилл x402?

x402 open payment standard for HTTP-native crypto payments. Use for API monetization, AI agent payments, micropayments, and integrating USDC payments into web services using HTTP 402 status code.

Как установить скилл x402?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл x402 запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить x402 с