x402 Kit

x402 Kit

v1.0Free

x402 Kit lets AI agents pay for API calls, MCP tool calls, and file downloads per use.

1 downloads104 views0 likes
Published Nov 5, 2026

Website: https://www.npmjs.com/package/@scriptmasterlabs/create-x402

The payment layer your agent-facing service is missing. x402 Kit lets AI agents pay for API calls, MCP tool calls, and file downloads per use — no accounts, no API keys, no invoices. One command (npm create @scriptmasterlabs/x402 my-api) scaffolds a paid MCP server, wraps an existing API in a paywall, or creates a paid file store on Express, Hono, Next.js, Cloudflare Workers, or FastAPI. When an agent calls a paid route, the server answers HTTP 402 with a price; the agent signs a USDC payment on Base and retries; the payment settles directly to the seller's own wallet, and a call that fails is never charged. Built for agent builders: every project includes an AGENTS.md so Claude Code or Cursor can install and wire it, a public receipts page with transaction hashes, a live 'paid calls' badge, and automatic facilitator failover. Default facilitator OMNIGATE (https://mcp-x402.onrender.com) takes a 0.005 USDC fee only as an optional leg — standard payments settle with the fee waived inside a published daily budget (500/day across all payTos, 100/day per payTo, UTC) — and the facilitator is changeable in one line of config. Proven with the stock x402 client on every stack and a real $0.01 USDC settlement on Base through a kit-built app (self-proof — both wallets were the maker's; it verifies the payment path end to end). Free, MIT.

Included Files (1)

Installation Guide

How to Install

  1. Run npm create @scriptmasterlabs/x402 my-api
  2. Choose what to build: a paid MCP server, a paywall around an existing API, or a paid file store.
  3. Follow the prompts — the kit scaffolds the project on Express, Hono, Next.js, Cloudflare Workers, or FastAPI.
  4. Set your seller wallet as the payment recipient, so USDC payments on Base settle directly to you.
  5. Start the server and call a paid route: the server answers HTTP 402 with a price, the agent signs a USDC payment on Base and retries, and a call that fails is never charged.

Website: https://www.npmjs.com/package/@scriptmasterlabs/create-x402

Free, MIT.

Earned distribution

Remix this kit or publish the earned trust badge

The fastest loop here is creator-to-creator: remix the kit into your own version, or publish a badge anywhere you showcase work built with it. The badge is stronger once the kit has real showcases and remix history behind it.

Badge HTML

Embed this earned badge on your site, portfolio, docs, or launch post.

<a href="https://aiagentstore.ai/claw-setup-files/kit/x402-kit?gm=claw_starter_kit&gl=claw_starter_kit_badge&gat=claw_starter_kit&gaid=qt5uehNlDXZDnoI4w52y&ge=user%3AYNl5jYPLyCaNeADv8Mksc3phGU93&gs=badge_embed&gc=embed" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:10px;padding:12px 16px;border-radius:18px;background:linear-gradient(135deg,#0f172a,#111827);color:#ffffff;text-decoration:none;font-family:Inter,Arial,sans-serif;font-size:13px;font-weight:700;box-shadow:0 12px 30px rgba(15,23,42,0.16);"><span style="display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:999px;background:#34d399;color:#052e16;font-weight:800;">✓</span><span>Built with Claw Starter Kit: x402 Kit</span></a>

Badge Markdown

Use this in README files, forum posts, launch notes, or case studies.

[Built with Claw Starter Kit: x402 Kit](https://aiagentstore.ai/claw-setup-files/kit/x402-kit?gm=claw_starter_kit&gl=claw_starter_kit_badge&gat=claw_starter_kit&gaid=qt5uehNlDXZDnoI4w52y&ge=user%3AYNl5jYPLyCaNeADv8Mksc3phGU93&gs=badge_embed&gc=embed)

Public showcase

Examples built with this kit

Public examples convert better than feature lists. If you bought or built this kit, publish a concise showcase and share the proof.

No public showcases yet. The first good example here can do a lot of selling.

Customer Ratings

0.0

0 ratings

5 star
0%
4 star
0%
3 star
0%
2 star
0%
1 star
0%

Reviews

Loading reviews...

Related Claw Starter Kits

Agent Teams

Turn setup files into a running hosted agent

Launch OpenClaw or Hermes from setup files, use the native harness UI or connect WhatsApp, Telegram, or Slack, then stop and resume with memory and workspace preserved.