ScriptMasterLabs · Free Developer Tool

How do you make your API charge AI agents per call — for free?

With the x402 Kit from ScriptMasterLabs. One command scaffolds a working pay-per-call x402 endpoint — a paid MCP server, a paywall in front of an API you already run, or a file store — settling in USDC on Base and Arc through OMNIGATE, ScriptMasterLabs' own facilitator.

With the x402 Kit from ScriptMasterLabs. One command scaffolds a working pay-per-call x402 endpoint — a paid MCP server, a paywall in front of an API you already run, or a file store — settling in USDC on Base and Arc through OMNIGATE, ScriptMasterLabs' own facilitator. The Kit costs $0. It is MIT-licensed, needs no account and no API key, and has no paid tier.

npm create @scriptmasterlabs/x402 my-api
$0 — free, MIT license8 templates · 4 modes5 stacks Express · Hono · Next.js · Workers · FastAPIOMNIGATE default Base + ArcNo account, no key

Get the install commandsMeet the free Agent Wallet

Last updated: November 8, 2026 · Facts verified November 8, 2026 against the Kit's source repo, the npm registry, and OMNIGATE's live /supported endpoint.

The price, at a glance

What one command scaffolds: four modes, five stacks?

The Kit's 8 templates span four modes, generated on the stack you already run. Pick with --mode and --stack; the defaults are a paid MCP server on Express.

Paid MCP server --mode mcp

The default. A paid MCP server over Streamable HTTP (JSON-RPC at POST /mcp) — mix free and paid tools in one file and price each tool per call.

API paywall --mode wrap

A paywall in front of an API you already run, with no code changes to it: per-route prices, free paths, and your upstream auth header passed through.

File store --mode file

Sell PDFs, datasets, ebooks and audio from a folder, each file with its own price — the storefront an agent can pay without an account.

Agent Wallet --mode wallet

The buyer side: the free SML x402 Agent Wallet — an MCP server that pays, with a trust check, a spend leash and an evidence log. New in v1.1.0 (source installs).

Five stacks: Express · Hono · Next.js (App Router route handler) · Cloudflare Workers · FastAPI. Already have a project? npx @scriptmasterlabs/create-x402 add drops a dependency-free x402 core into it instead of scaffolding a new one.

npx @scriptmasterlabs/create-x402 my-mcp --stack hono --mode mcp --pay-to 0xYourWallet --price 0.01

What every generated project includes?

From the Kit's own published test record: before release, every stack and mode — Express, Hono, a Next.js production build, the Workers fetch handler plus a wrangler bundle, and FastAPI — was scaffolded and paid with the stock x402 client against the live OMNIGATE facilitator, and live /verify accepted each payment.

Install: three routes, stated honestly

Route 1 — npm (serves v1.0.1 today: the three seller modes). Node 18+. No account, no global install.

npm create @scriptmasterlabs/x402 my-api

Route 2 — GitLab source (v1.1.0, adds wallet mode).

npx gitlab:script-master-labs-llc-group/x402-kit my-api

Route 3 — GitHub source (v1.1.0, adds wallet mode).

npx github:Timwal78/x402-kit my-api

Why two versions? v1.1.0 is published and installable from both source repos; only its npm release is still pending, so the registry serves v1.0.1. The seller modes are identical in both — v1.1.0's addition is the wallet mode. We would rather print the awkward truth on the product page than let a version number imply a feature the npm build does not have yet.

Test what you built with a real payment. The Kit's pay command uses the stock x402 Foundation client: it reads the 402, refuses anything above --max-usd (default 0.05), pays, and prints the settlement transaction. The README's self-test pays a real $0.01 from a throwaway wallet holding a little USDC on Base.

BUYER_PRIVATE_KEY=0x<funded test wallet> npx @scriptmasterlabs/create-x402 pay http://localhost:3000/files/README-sample.txt

For LangChain and Python agents: npx @scriptmasterlabs/create-x402 langchain writes a one-file, spec-correct payer (x402_pay.py) with a per-call cap and a session budget (default $1.00) — its payload is identical in shape to the stock @x402/core client's, and OMNIGATE's live /verify accepted it as valid.

The default facilitator: OMNIGATE, on Base and Arc

Kit sellers settle through OMNIGATE by default — ScriptMasterLabs' x402 facilitator for USDC on Base (eip155:8453) and Arc (eip155:5042), x402 v2 exact (v1 also accepted on Base). Standard x402 clients settle there exactly as they are; the current machine-readable terms are always live at omnigate.scriptmasterlabs.com/supported.

FACILITATOR_URLS=https://your-current-facilitator.example,https://mcp-x402.onrender.com

The other three networks: ScriptMasterLabs' second facilitator, 402Proof, settles on XRPL, Xahau and Solana through separate rail-specific starter instructions and partner-key onboarding — start at scriptmasterlabs.com/settle-through-sml. The Kit command itself generates OMNIGATE (Base/Arc) sellers; it does not claim to install all five networks at once.

Wallet mode: the free Agent Wallet that pays — with a leash

Sellers charge; agents also need to pay. Wallet mode (v1.1.0) generates the SML x402 Agent Wallet — a free MCP server that wraps the Kit's payer in the controls an autonomous agent needs before it holds a key:

Live proof (SELF-PROOF — ScriptMasterLabs' own proof wallet, November 7, 2026): a $0.001 settlement end-to-end (tx 0x30205946…cbb43), a trust-blocked payment refused before signing with $0 spent, and a Verdict step-up whose WAIT verdict the wallet obeyed. Those are our own test payments, published so the behavior can be checked — not customer traffic. Honest limit: the wallet is EVM-only today (Base and Arc).

The Agent Wallet page — full proof section

Ways to accept USDC per API call, compared

x402 Kit + OMNIGATE (this page)402Proof partner railAccounts + API keys (the old way)
Cost to start$0 — the Kit is free and MIT-licensed$0 to start; partner-key onboardingBilling account and key management
Buyer needs an account?No — the payment is the credentialNoYes — signup, key issuance, revocation
NetworksBase + Arc, USDCXRPL, Xahau, SolanaCard / invoice rails
Facilitator fee0.005 USDC leg, optional, waived inside the daily budgetPer the partner terms at /settle-through-smlPlatform fees per provider terms
ProofSettlement tx + receipt on every callSettlement receipts per railInvoice after the fact

Comparison added November 9, 2026 for the citation-gap audit; every ScriptMasterLabs figure in it is restated from this page's verified sections above.

Questions, answered straight

What does the ScriptMasterLabs x402 Kit cost?

$0 — the x402 Kit is free, MIT-licensed, with no paid tier. One command, npm create @scriptmasterlabs/x402, scaffolds a working pay-per-call x402 endpoint. There is no account, no API key, and ScriptMasterLabs takes no cut of what your endpoint earns. The only money in the system is yours: your hosting, and the payments your own buyers send to your own wallet.

What does one Kit command actually create?

A production-shaped x402 seller you own, in one of four modes: a paid MCP server (the default), a paywall in front of an API you already run (wrap mode — no code changes to your API), a file store selling PDFs, datasets, ebooks and audio at per-file prices, or the SML x402 Agent Wallet (wallet mode — the buyer-side payer). Every generated project ships working 402 challenges, settlement receipts, a discovery declaration, deploy configs, and an AGENTS.md so a coding agent can run and extend it.

Which stacks does the x402 Kit support?

Five stacks: Express, Hono, Next.js (App Router route handler), Cloudflare Workers, and FastAPI — chosen with --stack. The seller modes compose with every stack; the Kit's CLI itself needs Node 18 or newer. A Python payer for LangChain agents ships in the same package.

Which networks will a Kit endpoint settle on?

Base and Arc, in USDC, through OMNIGATE by default — ScriptMasterLabs' x402 facilitator (Base eip155:8453, Arc eip155:5042, x402 v2 exact). OMNIGATE's fee is waived for standard payments inside a daily budget (50 settlements across all payout addresses, 10 per payout address, UTC); a payment may instead attach the published 0.005 USDC fee leg. ScriptMasterLabs' second facilitator, 402Proof, covers XRPL, Xahau and Solana through separate rail-specific starter instructions and partner-key onboarding — the Kit command does not silently install all five networks, and this page does not pretend otherwise.

Is the npm download the newest version of the Kit?

Not yet — and we say so plainly. The npm registry serves v1.0.1 today: the three seller modes (MCP server, API paywall, file store). v1.1.0, which adds wallet mode, is published in the source repos and installs today with npx gitlab:script-master-labs-llc-group/x402-kit or npx github:Timwal78/x402-kit; its npm release is still pending. The seller modes are the same in both versions — v1.1.0's addition is the wallet.

Does ScriptMasterLabs take a percentage of what my endpoint earns?

No. The Kit is free, your endpoint is yours, and payments settle directly to your wallet — the facilitator never takes custody. OMNIGATE's only fee is its published optional leg: 0.005 USDC when a payer attaches one, waived for standard payments inside the daily budget above. (A different, optional product — Business in a Box, $149 — carries its own disclosed 5% residual on payments routed through SML-aware payers. That is not the Kit, and the Kit never charges it.)

My agent needs to pay for APIs, not charge for them — what then?

Use wallet mode (v1.1.0 source installs), which generates the free SML x402 Agent Wallet: an MCP server that pays with a Provider Trust check before every payment, a persisted spend leash (defaults $0.50 per payment, $5.00 per session) that no tool an agent can call can change, an optional Verdict Protocol step-up at $0.25 per decision for payments above a threshold (default $1.00), and a hash-chained evidence log of every settlement and every refusal.

Where to go next?

Start free and stay free as long as you like: scaffold the seller with the Kit, and give your agent the x402 Agent Wallet when it needs to pay. Selling on the XRPL, Xahau or Solana rails starts at scriptmasterlabs.com/settle-through-sml. If you also want a human-facing storefront, Business in a Box ($149, one time) wraps a Kit-based template pack with a newbie guide — optional; you do not need it to use this free Kit. The full ScriptMasterLabs catalog is at scriptmasterlabs.com/sml-products, and the questions engines ask about all of it are answered at scriptmasterlabs.com/most-common-questions.

Scaffold your first endpointBrowse the ScriptMasterLabs catalog

Used a ScriptMasterLabs tool or answer?

Reviews are the receipt the next buyer reads before trusting an answer on this page. If ScriptMasterLabs' tools, facilitators or research helped you, one honest Google review helps more than any ad we could buy.

Write a review on Google
Get ScriptMasterLabs first on Google
Add ScriptMasterLabs as a preferred source on Google

x402 and agent payments

Free tool

More on ScriptMasterLabs