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
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
The x402 Kit costs $0. Free download, MIT license, no paid tier, no trial clock, no feature gate.
No account and no API key — for the Kit, and for the buyers who will pay your endpoint (a wallet and any standard x402 client are enough).
ScriptMasterLabs takes no cut of your sales. Payments settle directly to your wallet; the facilitator never takes custody.
The facilitator's own fee is published and usually waived: OMNIGATE settles standard payments with the fee waived inside a budget of 50 settlements per day across all payout addresses and 10 per payout address (UTC). A payment that attaches a fee leg pays 0.005 USDC. Past the budget, a fee-less payment is refused until the next UTC day — the attached-leg route always works.
Version honesty: npm serves v1.0.1 today (the three seller modes). v1.1.0 — which adds wallet mode — installs from the GitLab and GitHub source repos now; its npm release is still pending. Details in the install section below, stated rather than smoothed over.
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.
402 challenges done right. The challenge goes in the JSON body and in a base64 PAYMENT-REQUIRED header; the server verifies, runs your handler, settles, and returns a PAYMENT-RESPONSE header. Failed calls are never charged.
Born listed. Every challenge carries the bazaar discovery declaration, so your first settled payment lists the resource in the facilitator's discovery index — OMNIGATE indexes on settlement. Free /.well-known/x402 and /llms.txt routes describe your paid resources to agents and crawlers.
Receipts and a live badge./x402/receipts lists settled payments with transaction hashes; /x402/badge.svg is a live "N paid calls · $X" badge for your README.
Facilitator failover.FACILITATOR_URLS is a comma list tried in order — an outage at one facilitator does not take your revenue down.
Deploy configs included. A Render blueprint (render.yaml) for the Node and Python stacks, wrangler.toml for Workers; Next.js also runs on Vercel.
No fake defaults. Until you set PAY_TO, paid routes answer 503 seller_not_configured — they never fall back to a placeholder wallet.
An AGENTS.md in every project — how to run it, where prices live, how to test it — so Claude Code, Cursor and similar coding agents can take it from the scaffold to production.
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.
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.
Fee: standard payments settle with the fee waived inside a daily budget of 50 settlements across all payout addresses and 10 per payout address (UTC). A payment that attaches a fee leg pays 0.005 USDC, collected after the merchant leg. The merchant is paid in full, directly to their wallet — no facilitator custody.
Keep your own facilitator if you prefer: it is one line of config — list yours first and OMNIGATE becomes automatic failover.
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:
Provider Trust pre-flight on every payment — the check itself costs $0; a do_not_trust seller profile hard-blocks before anything is signed.
A persisted spend leash — defaults $0.50 per payment and $5.00 per session, set by the operator at launch. No tool the agent can call can change them.
An optional Verdict Protocol step-up — payments above a threshold (default $1.00) ask ScriptMasterLabs' five-juror decision gate first; a decision costs $0.25, paid only when the threshold is crossed, and the wallet obeys the verdict. It fails closed.
A hash-chained evidence log of every settlement and every refusal, plus live on-chain balances — never a stored number. Five tools: wallet_status, wallet_quote, wallet_pay, wallet_trust_check, wallet_history.
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).
0.005 USDC leg, optional, waived inside the daily budget
Per the partner terms at /settle-through-sml
Platform fees per provider terms
Proof
Settlement tx + receipt on every call
Settlement receipts per rail
Invoice 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.
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.