Your content is worth something.
Start charging for it.
Create a paywall link in seconds. Upload your content, set a price — AI agents pay per view in USDC on Base, straight to your wallet.
Real settlement volume on Base — and a buyer-to-seller imbalance that favours anyone selling first.
How do I get paid when AI agents use my API?
Fill in the form, hand the prompt to any coding agent, and your API starts charging per call. You keep 99.9% of every call, settled in USDC on Base — straight to your wallet. Four steps, plain and simple:
Where should the money go?
Any Ethereum-style address you control — MetaMask, Coinbase Wallet, whatever. Payouts land here in USDC on Base. That’s the only thing you need to decide up front:
0xYOUR_ADDRESS ← paste this into step 2You set the price
A flat USD price per API call — $0.01, $0.05, whatever your data is worth. Buyers pay exactly this; NanoTab takes its fee automatically (0.1% self-host, 2% managed gateway), you keep the rest.
--price 0.05 ← five cents per callPoint at your server code
One command wraps your existing endpoint with the paywall. It shows you a diff and asks before changing anything — nothing happens silently.
npx nanotab protect --price 0.05 --wallet 0xYOUR_ADDRESS ./server.jsShip it — two ways
Easy path: one command deploys to Cloudflare Workers. You’ll need a free CLOUDFLARE_API_TOKEN (dash.cloudflare.com → profile → API tokens → Workers Edit).
CLOUDFLARE_API_TOKEN=xxxx npx nanotab deploy --price 0.05 --wallet 0xYOUR_ADDRESS ./server.js
# → https://my-api.<you>.workers.dev ✅ liveOwn-VPS path: run your server anywhere with a public HTTPS URL (Hetzner + Caddy, Fly.io, Render…). The 402 response must show the public https:// URL, not localhost.
Do it by hand.
No SDK, no agent needed.
A human developer can protect, test and verify an endpoint with plain curl + fetch. Same 4 steps, zero jargon.
Wrap your endpoint
Same single command. Read the diff, say yes.
npx nanotab protect --price 0.05 --wallet 0xYOUR_ADDRESS ./server.jscurl it — expect a 402
No payment yet, so the server must refuse with HTTP 402 and tell you how to pay. If you get your data back here, the paywall isn’t on.
curl -i http://localhost:3000/keyword?q=solar
# → HTTP/1.1 402 Payment Required
# → {"x402Version":1,"accepts":[{"scheme":"exact",
# "network":"base","payTo":"0xYOUR_ADDRESS",…}]}Send USDC on Base, then retry
Pay the quoted amount in USDC (Base network) to the payTo address from any wallet or exchange — no ETH needed, gas is covered by the Circle paymaster. Then attach the payment proof as a header with plain fetch:
// plain JS — no SDK, no agent
const res = await fetch('https://my-api.<you>.workers.dev/keyword?q=solar', {
headers: { 'X-Payment': '<base64-payment-proof>' }
});
console.log(res.status); // 200 ✅
console.log(await res.json()); // your dataSame two options
Cloudflare token (one command, zero servers) or your own VPS with public HTTPS. Verify from another machine: unpaid curl → 402, paid fetch → 200. Done — you’re collecting.
CLOUDFLARE_API_TOKEN=xxxx npx nanotab deploy --price 0.05 --wallet 0xYOUR_ADDRESS ./server.jsOn WordPress? Install the plugin.
Charge for posts in 5 minutes.
The NanoTab Paywall plugin (v0.1.1) puts any post, download, or page behind a USDC paywall — no code, no server, no Stripe account. Readers pay a few cents, you keep 99.9%.
Upload the zip
Download nanotab-paywall.zip (v0.1.1) ⬇, then Plugins → Add New → Upload. Or browse the source on GitHub ↗.
Where should the money go?
Go to Settings → NanoTab and paste your USDC receiving address (Base network). That’s the whole setup.
Wrap it in a shortcode
Put premium content between [nanotab price=0.05] and [/nanotab]. Visitors see the price and pay in USDC — humans and AI agents alike.
Set up your agent with
its own wallet in one click.
In plain English: your agent gets its own spending wallet, you put a few dollars of USDC on the Base network into it, then it buys whatever API calls it needs. Three steps: A helper called nanotabFetch handles the paying automatically — first try gets a price tag (HTTP 402), it pays it, retries, and your data comes back (HTTP 200). You never touch ETH or gas.
One command. Wallet + config + backup.
Paste this in a terminal (Node 18+, npm, git). Creates a buyer wallet with sensible defaults — $5 budget, $0.10/call — writes the config, backs up the key, and prints your wallet address + fund instructions.
curl -fsSL https://nanotab.dev/buy.sh | bash
Create a buyer wallet
Generates a local key + address. --budget caps total spend, --per-call caps a single call.
curl -fsSL https://nanotab.dev/buy.sh | bash
# → wallet 0x… + fund instructions + backup path
# (or: npx nanotab buy-init — after npm publish)Top up with USDC on Base
Send USDC (Base network) to the address above. Just enough to cover your calls — no ETH needed, the Circle paymaster covers gas out of the USDC.
# from any exchange or wallet → send USDC (Base) to:
0xYOUR_NEW_WALLET_ADDRESSFetch from code
nanotabFetch handles the whole 402 → pay → retry loop. One function, paid 200 back.
const { nanotabFetch } = require('@nanotab/agent-sdk');
const data = await nanotabFetch('https://my-api.<you>.workers.dev/keyword?q=solar');
console.log(data); // 200 + JSON ✅Three fields. One prompt.
Money in.
Tell us where to send the money and what you're selling. We write the brief your agent needs.
Agent does the work.
You get paid.
From zero to a monetised API in one paste.
Fill in the form
Wallet, what your endpoint should do, price per call. Get a copy-paste setup prompt.
Paste it to your agent
Any coding agent — it builds your endpoint if needed, wraps it with npx nanotab protect, deploys it with public HTTPS, and verifies the 402 + paid-200 flow.
Collect USDC
Every call pays straight to your wallet on Base. No ETH, no gas, no signup — gas comes out of the USDC via the Circle paymaster.
Real money. Real chain.
Settled on Base mainnet, . Click through to BaseScan.
SaveShare · $0.05/call
Unpaid call returns 402 with the payment spec. Try it:
nanotab.dev/saveshare/creator/adm.jay ↗
0.001 USDC · Base mainnet
Buyer paid, merchant got it. Agent wallet: 0 ETH.
tx 0x0b39b4…23f5b2 ↗
0.1% self-host onchain · EIP-7702
1 unit to NanoTab. Circle paymaster + Pimlico.
tx 0x0e85cf…e947370 ↗
$0.05 in one tx · fee enforced
Single UserOp: [49950 → merchant, 50 → fee]. One tx, 0 ETH.
tx 0x47ac3d…243b60b8 ↗
"First paid call settled while I watched BaseScan — the buyer wallet held zero ETH and the merchant got the USDC. Took an afternoon to wire up."
— early user running a keyword API on the NanoTab gateway
Unpaid → 402
curl https://nanotab.dev/saveshare/creator/adm.jay
{"x402Version":1,"accepts":[{"scheme":"exact","network":"base",
"maxAmountRequired":"5","resource":"https://nanotab.dev/saveshare/creator/adm.jay",
"payTo":"0xc47b6d6a4137373ab169aeeedb95971d4939ef0b",
"asset":"0x833589fcD6eDB6e08f4C7c32d4f71B54BdA4B4E5","fee":"0.1%"}]}
Paid → 200
curl -H "X-Payment: <base64-proof>" https://nanotab.dev/saveshare/creator/adm.jay
{"handle":"adm.jay","video_count":17,"avg_views":580.8,
"top_hook":"Okay, whose email ends in this or maybe this? ..."}
Full walkthrough in the docs ↗.
Every payment risk-scored.
Your agent can pause itself.
Each call is scored by Jev (TypeSafe) before it settles. Your agent reads the score and decides: proceed, pause, or escalate to you.
Score on every call
Paid and unpaid responses carry x-risk-score (0–1) and x-risk-flag headers, plus a risk object in the JSON body with the reason.
Pause or escalate itself
One if in your loop: score above your threshold → stop spending and ping you. No dashboard babysitting required.
Included in the gateway
Managed gateway: scoring bundled in the 2% fee. Self-host: bring your own TypeSafe key, pay TypeSafe directly.
curl -H "X-Payment: <base64-proof>" https://gateway.nanotab.dev/keyword?q=solar
# → x-risk-score: 0.07 x-risk-flag: clean
{"result":…, "risk":{"score":0.07,"flag":"clean","reason":"known buyer, usual pattern"}}
Honest status: live trial — log-only, never blocks a payment. Per-wallet spend caps coming next.
One number.
per settled call — 0.1% self-host, 2% managed gateway (as of ). Merchant sets the price.
No monthly fee, no signup, no lock-in.