One middleware. Instant USDC settlement. No accounts, no subscriptions, no billing code.
Agents can't fill forms, enter credit cards, or manage subscriptions. They hit your wall and leave.
Through MCP, search, or documentation.
Account creation, email, API key, card on file.
No ability to fill forms or enter payment details.
Finds an alternative or abandons the task.
A customer you never knew existed.
Through MCP, search, or documentation.
Machine-readable: price, token, wallet address.
Signed on-chain. Verified in under 2 seconds.
Your API responds normally. Agent continues its work.
USDC in your wallet. No invoice, no delay.
x402 is an open payment standard by Coinbase that uses the HTTP 402 status code to embed payments directly into web requests. It lets any API charge per request in stablecoins, without accounts or subscriptions.
Over 75 million transactions have already settled on Base and Solana. Supported by Coinbase, Cloudflare, Google, Vercel, and the x402 Foundation.
Learn more about x402Agent sends a normal HTTP request to your API
Server responds with HTTP 402 and payment terms
Agent signs a USDC payment and retries the request
Facilitator verifies, settles on-chain, API responds with HTTP 200
Pick your framework. Tollgate handles everything else.
import express from "express"; import { tollgate } from "@tollgate/sdk"; const app = express(); // Add payment gate. That's the entire integration. app.use(tollgate({ price: 0.01, // $0.01 per request network: "base", // Coinbase L2 token: "USDC", // also supports USDT wallet: process.env.WALLET, // your address })); // Your routes stay exactly the same. app.get("/api/weather", (req, res) => { res.json({ temp: 22, city: "Zurich" }); });
// app/api/weather/route.ts import { withTollgate } from "@tollgate/next"; async function handler(req: Request) { return Response.json({ temp: 22, city: "Zurich", }); } // Wrap your route. Agents pay $0.01 per call. export const GET = withTollgate(handler, { price: 0.01, network: "base", token: "USDC", wallet: process.env.WALLET, });
// Monetize any MCP tool. Agents pay per invocation. import { TollgateMCP } from "@tollgate/mcp"; const server = new TollgateMCP({ wallet: process.env.WALLET, network: "base", }); // Register a paid tool. $0.05 per call. server.tool("search_database", { price: 0.05, description: "Search our proprietary database", handler: async ({ query }) => { const results = await db.search(query); return { results }; }, }); server.listen(3001);
USDC on Base. Sub-cent gas. Payment arrives before the response.
npm install, add middleware, deploy. Your code doesn't change.
1,000 free transactions per month. 0.1% after that.
USDC flows directly from the agent to your wallet via the Coinbase facilitator. Tollgate verifies the payment but never holds, controls, or has access to your money. Your keys, your funds.
Intercepts requests. Returns 402 with machine-readable terms. Verifies on-chain payment. Passes the request through.
Real-time earnings per endpoint, per agent wallet, per period. Webhooks for every payment.
Optional KYA. On-chain history and trust score. Tier pricing by reputation. Block unknown agents.
Wrap any MCP server. Agents discover, pay per invocation, get results. No API key needed.
USDC via EIP-3009 for the smoothest flow. USDT via Permit2 for maximum global reach.
Base at launch. Solana and Arbitrum next. Circle Arc when mainnet ships.
Weather, finance, search, geolocation. Agents need one-off lookups and can't subscribe.
You built a useful tool but giving it away is unsustainable. Paywall per invocation.
Inference, embeddings, fine-tuned models. Agents pay per call instead of contracts.
No. Install the npm package, add one middleware call, and provide a wallet address. Tollgate handles all protocol logic, payment verification, and settlement.
Create a free Coinbase account, or use MetaMask or Rainbow. Your Base network wallet address is all you need.
Agents using Coinbase AgentKit, Cloudflare Workers AI, LangChain, Vercel, and Google AP2. The ecosystem is growing fast. Agents without x402 simply get a 402 they can't act on.
Yes. USDC is recommended for the smoothest flow. USDT works via Permit2 with a one-time agent approval. Both on Base.
Yes. Per route, per method, or dynamic via callback. Keep some routes free while gating others.
Nothing changes. Tollgate only activates for requests without a valid session or API key. Authenticated users are unaffected.
1 USDC = $1 always. Convert to USD, EUR, or CHF through Coinbase or Kraken. Many keep USDC as-is.
Base at launch. Solana and Arbitrum next. Circle Arc when its mainnet ships.
Install the SDK, add one line, start earning from agent traffic.
$ npm install @tollgate/sdk
Open source. MIT licensed. Non-custodial.