/x402-deploy:monetize-with-x402-deployfrom x402-deploy
Wraps an existing API or MCP server with x402 pay-per-call pricing using the @nirholas/x402-deploy CLI. Supports Express, Fastify, Next.js, FastAPI, Node, Python, and MCP servers. Includes local testing, simulation, benchmarking, and deployment to Railway, Fly.io, Vercel, or Docker.
Ships in x402-deploy. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
@nirholas/x402-deploy (npm, 0.1.3) adds an x402 payment gateway in front of an Express, Fastify, Next.js, FastAPI, generic Node or Python API, or an MCP server (@modelcontextprotocol/sdk). Bins: x402-deploy and x402. Run it from the root of the project to monetize.
npx -y -p @nirholas/x402-deploy x402-deploy init # or: npm install -g @nirholas/x402-deploy
init takes a receiving payment.wallet address (public address only). Never ask for or handle a private key or seed phrase.deploy publishes a public service on a paid provider and (unless --no-discovery) registers it with x402scan. withdraw moves earnings. Show the user the plan (project, provider, network, wallet, pricing) and get an explicit yes before running either. Run deploy --dry-run first.RAILWAY_TOKEN, FLY_API_TOKEN (and FLY_ORG), VERCEL_TOKEN (and VERCEL_TEAM_ID). Dashboard calls use X402_API_KEY. Tell the user to export them; never write them to files.x402-deploy init (flags: -y/--yes, --wallet <address>, --network <network> such as eip155:8453 for Base, --template <name>). It writes x402.config.json.x402-deploy pricing --route "GET /api/*" --price '$0.001'; also --list, --remove <route>, -i/--interactive.x402-deploy test --port 3402 runs the gateway locally; the discovery document is served at /.well-known/x402.x402-deploy simulate -r <route> -c <calls> -p <payers> projects revenue; x402-deploy benchmark -u http://localhost:3402 -n 100 -c 10 load-tests.x402-deploy doctor [--fix] diagnoses config problems.x402-deploy deploy --dry-run, then x402-deploy deploy -p railway|fly|vercel|docker [--env <name>].status, logs [-f] [-n 100], dashboard [--period day|week|month|all] [--json], analytics [-r route] [-e json|csv], watch, withdraw.Other commands: export, import, compare, completions, migrate --from stripe|paypal|razorpay|square, and marketplace list|view|search|publish|categories|review.
x402.config.json)Top-level keys include name, project (type, language, entryPoint, buildCommand, startCommand), payment (wallet, network, token, facilitator), pricing (model: "per-call", default.price, routes map of "METHOD /path" to a price like "$0.01", "$0" for free), deploy (provider, region, port, environment), discovery, dashboard. Validation uses the schema in src/types/config.ts; deploy fails with the Zod error when the file is invalid and requires payment.wallet.
Full docs live in the repo's docs/ (configuration, deployment, pricing, dashboard, api).
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
x402, pay-per-call, api-monetization, mcp-payments, deployment
npx claudepluginhub nirholas/x402-deploy --plugin x402-deployOther plugins' skills for the same job