Menu

Explorer & Settings

Tempo Explorer Submit Project
Back to all projects

x402-claude-plugin

by arbuthnot-eth · Updated 5 months ago

Claude Code plugin for the x402 open payment standard — paywalled endpoints, paying agents, and paid MCP tools with Cloudflare Workers

In the AI payments ecosystem

x402-claude-plugin is an early-stage project in the AI payments / x402 ecosystem. It currently has 1 GitHub stars and 0 forks.

README.md View on GitHub →

x402 — Claude Code Plugin

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.

Install

claude plugin install x402

Or from this repo directly:

claude --plugin-dir ./x402-claude-plugin

Usage

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.

What it covers

  • Paywalled endpointsx402-hono middleware to gate routes with crypto payments
  • Paying agentsx402-fetch wrapper so agents automatically pay 402 responses
  • Paid MCP serversagents/x402 withX402 + paidTool registration
  • Paying MCP clientsagents/x402 withX402Client with human-in-the-loop confirmation
  • Combined patterns — full Worker + Agent setups with both server and client
  • Environment setup — wrangler secrets, .dev.vars, Durable Object bindings
  • Testnet/mainnet — base-sepolia for testing, base for production

Dependencies it knows about

x402-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

Move Registry

This plugin is also published on the Sui Move Registry at x402.sui.

See MOVE_REGISTRY.md for on-chain registration details.

Links

License

MIT

All Claude projects →