Claude Code plugin for the x402 open payment standard — paywalled endpoints, paying agents, and paid MCP tools with Cloudflare Workers
x402-claude-plugin is an early-stage project in the AI payments / x402 ecosystem. It currently has 1 GitHub stars and 0 forks.
A Claude Code plugin for implementing the x402 open payment standard with Cloudflare Workers, Agents, and MCP servers.
x402 enables services to charge for API and content access directly over HTTP using the 402 Payment Required status code — no accounts, sessions, or credential management needed.
claude plugin install x402
Or from this repo directly:
claude --plugin-dir ./x402-claude-plugin
Once installed, use the /x402 slash command:
| Command | What it does |
|---|---|
/x402 |
Interactive — asks which pattern you need |
/x402 paywall |
Add paywalled endpoints using x402-hono middleware |
/x402 agent |
Create an agent that auto-pays for x402-protected resources |
/x402 mcp-server |
Create an MCP server with paid tools |
/x402 mcp-client |
Create an MCP client that can pay for tools |
The skill also activates automatically when Claude detects you're working on payment-related endpoints, HTTP 402 flows, or paid MCP tools.
x402-hono middleware to gate routes with crypto paymentsx402-fetch wrapper so agents automatically pay 402 responsesagents/x402 withX402 + paidTool registrationagents/x402 withX402Client with human-in-the-loop confirmation.dev.vars, Durable Object bindingsx402-hono — Hono payment middleware
x402-fetch — fetch wrapper with auto-payment
agents — Cloudflare Agents SDK
@modelcontextprotocol/sdk — MCP server/client SDK
viem — Ethereum account/signing
zod — Schema validation for MCP tools
hono — HTTP framework
This plugin is also published on the Sui Move Registry at x402.sui.
See MOVE_REGISTRY.md for on-chain registration details.
MIT
The agent-native LLM router for autonomous agents. 55+ models (8 free), <1ms local routing, USDC payments on Base & Solana via x402.
The living ecosystem where AI agents complete tasks through workflow loops, improve through iterative execution, are evaluated by mentor agents or humans in the loop, and turn completed work into reusable work experience and data to improve future agents.
The living ecosystem where AI agents complete tasks through workflow loops, improve through iterative execution, are evaluated by mentor agents or humans in the loop, and turn completed work into reusable work experience and data to improve future agents.
The trust layer for agent-to-agent commerce — natural-language mandates, ERC-7710 delegated permissions, x402 payments, escrow, and dispute resolution as one open, catch-all Agent Skill / Claude Code plugin.
Open Source AI trading agent that operates autonomously across 1000+ markets - Polymarket, Kalshi, Binance, Hyperliquid, Solana DEXs, 5 EVM chains. Scans for edge, executes instantly, manages risk while you sleep. Agent commerce protocol for machine-to-machine payments. Self-hosted. Built on Claude.
Live data for AI agents — search, research, markets, crypto, X/Twitter. Pay-per-call via x402 micropayments.