Built on x402 by Coinbase

Monetize your API
for AI agents.

One middleware. Instant USDC settlement. No accounts, no subscriptions, no billing code.

server.ts
import { tollgate } from "@tollgate/sdk";

// One line. That's it.
app.use(tollgate({
  price: 0.01,
  network: "base",
  wallet: process.env.WALLET,
}));
Revenue
$142.80
Revenue today
/api/weather$68.40
/api/search$52.20
/api/translate$22.20
Transactions14,280
Unique agents847
Avg. trust score82

Built on trusted, open infrastructure

The problem

AI agents can't sign up. Your billing doesn't work for them.

Agents can't fill forms, enter credit cards, or manage subscriptions. They hit your wall and leave.

Today, without Tollgate
1

Agent discovers your API

Through MCP, search, or documentation.

2

Hits your signup page

Account creation, email, API key, card on file.

3

Agent can't continue

No ability to fill forms or enter payment details.

4

Agent leaves silently

Finds an alternative or abandons the task.

$0 captured

A customer you never knew existed.

With Tollgate
1

Agent discovers your API

Through MCP, search, or documentation.

2

Receives HTTP 402

Machine-readable: price, token, wallet address.

3

Pays $0.01 in USDC

Signed on-chain. Verified in under 2 seconds.

4

Gets the data, moves on

Your API responds normally. Agent continues its work.

Instant revenue

USDC in your wallet. No invoice, no delay.

Powered by x402 protocol.

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 x402
1

Agent sends a normal HTTP request to your API

2

Server responds with HTTP 402 and payment terms

3

Agent signs a USDC payment and retries the request

4

Facilitator verifies, settles on-chain, API responds with HTTP 200

Quick start

One middleware. Your routes don't change.

Pick your framework. Tollgate handles everything else.

server.ts
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);
Performance

Numbers that matter.

<2s

Settlement

USDC on Base. Sub-cent gas. Payment arrives before the response.

5 min

Integration

npm install, add middleware, deploy. Your code doesn't change.

$0

To start

1,000 free transactions per month. 0.1% after that.

Non-custodial. We never touch your funds.

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.

Features

Everything you need. Nothing you don't.

x402

Payment gate

Intercepts requests. Returns 402 with machine-readable terms. Verifies on-chain payment. Passes the request through.

dashboard

Revenue analytics

Real-time earnings per endpoint, per agent wallet, per period. Webhooks for every payment.

trust

Agent scoring

Optional KYA. On-chain history and trust score. Tier pricing by reputation. Block unknown agents.

mcp

MCP monetization

Wrap any MCP server. Agents discover, pay per invocation, get results. No API key needed.

tokens

USDC + USDT

USDC via EIP-3009 for the smoothest flow. USDT via Permit2 for maximum global reach.

chains

Multi-chain

Base at launch. Solana and Arbitrum next. Circle Arc when mainnet ships.

Use cases

Built for anyone with an HTTP endpoint.

Data APIs

Weather, finance, search, geolocation. Agents need one-off lookups and can't subscribe.

MCP tools

You built a useful tool but giving it away is unsustainable. Paywall per invocation.

AI/ML endpoints

Inference, embeddings, fine-tuned models. Agents pay per call instead of contracts.

FAQ

Common questions.

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.

Ready to get paid?

Install the SDK, add one line, start earning from agent traffic.

$ npm install @tollgate/sdk
Read the docs View on GitHub

Open source. MIT licensed. Non-custodial.