First payment settled in 400ms.

Monetize your
API.

Drop-in billing for AI agents. Agents pay you in USDC on Solana, no banks, no credit cards, no humans.

View docsStart free
Supported by
Superteam
Early Access

Join the waitlist

Gate402 is rolling out access in waves. Get in early — be the first to monetize your API for AI agents.

OSHLHR
243 devs already joined
42
days
:
11
hours
:
37
min
:
14
sec

The agentic economy is already here. Agents are calling millions of APIs every day. None of them are paying. Until now.

Gate402 is the missing payment layer. Here's what that looks like in production.

11,000+

MCP Servers

Live

97M

Downloads/month

in 2026

400ms

Settlement

on Solana

1%

Platform fee

per payment

MCP ecosystem growth — Jan 2025 to May 2026

The infrastructure layer agents were missing.

Gate402 sits between your API and the world. Every request verified. Every payment settled. Every cent tracked.

Sub-second settlement

Solana confirms payments in under 400ms. Your handler executes before the agent even notices.

Non-custodial by design

Payments go directly to your Solana wallet. Gate402 never holds your funds. Not even for a second.

Replay protection

Every transaction hash is checked against Redis and PostgreSQL. Duplicate payments are blocked automatically.

Three lines of code

npm install gate402. Import. Use. That's it. No config files, no infra, no DevOps.

Real-time visibility

See every payment the moment it lands. Endpoint, amount, agent wallet, timestamp — all in your dashboard.

Built for agents

HTTP 402, x402 protocol, Solana, USDC. The full stack for machine-to-machine billing, ready today.

Three building blocks. Infinite APIs.

Gate402 connects API providers, AI agents, and Solana settlement in one lightweight middleware layer.

Read docs →View on npm

Drop-in middleware

Add a paywall to any Express, Flask, or FastAPI endpoint in under five minutes. Your handlers don't change. Zero refactoring required.

Verified on-chain

Every payment is verified against the Solana blockchain. Amount, recipient, and recency — all confirmed before your handler executes.

Built for micropayments

$0.001 per call is viable on Solana. On Ethereum it would cost more in gas than the payment itself. The economics only work here.

Built for developers who ship fast.

From npm install to first paid API call in under five minutes. No accounts to approve. No contracts to sign. No minimums.

Gate402 real-time payment dashboard

Instant setup

Three lines of middleware. Your API charges agents on the first request.

Direct to your wallet

USDC lands in your Solana wallet directly. No withdrawal delays. No platform holds.

Real-time dashboard

Every call logged. Revenue, latency, top agents. Watch payments arrive as they happen.

Zero friction onboarding

Sign in with GitHub. Copy your key. Ship. No approval process. No business verification.

Any stack. Any language.

From Express to Python to Rust — drop Gate402 in without rewriting your business logic.

Get started →View docs
Live

Express SDKv0.5.0

Drop-in x402 middleware for any Express API. Three lines of code. Agents pay. You receive USDC.

#nodejs#typescript#x402
Explore →
Stable

MCP Middlewarev0.4.0

Charge per tool call on any MCP server. Compatible with Claude, GPT-4, AutoGen, and any x402 agent.

#mcp#agents#anthropic
Explore →
Coming Soon

Next.js Pluginv0.1.0-alpha

Monetize API routes natively in Next.js App Router. No separate Express server. Edge-compatible.

#nextjs#vercel#edge
Explore →
Beta

Rust GatewayActix-Web

High-performance reverse proxy with native Solana verification. 100k+ req/s. No Node.js. No overhead.

#rust#actix#solana
Explore →
Stable

Agent SDKv0.1.3

Autonomous payment for any AI agent. Detects 402, pays in USDC, retries — zero human interaction required.

#agents#gate402-agent#x402
Explore →
Stable

CLI Generatornpx create-gate402-mcp

Scaffold a complete MCP server with Gate402 pre-configured. Per-tool pricing, devnet ready, deploy in minutes.

#cli#mcp#scaffold
Explore →

From 402 to paid in 400ms.

Real-time payment flows for every role in the stack — provider, agent, and MCP server.

Try for free →View pricing
// 3 lines to monetize your API import { gate402 } from 'gate402' app.use(gate402({ endpoints: { '/api/analyze': 0.005 } })) app.post('/api/analyze', (req, res) => { res.json(analyzeData(req.body)) })

Provider side — 3 lines. Done.

// Charge per tool call on your MCP server import { gate402MCP } from 'gate402' app.use(gate402MCP({ defaultToolPrice: 0.001, toolPricing: { 'search_legal': 0.005, 'analyze_contract': 0.020, } })) // tools/call → charged // initialize → free // tools/list → free

MCP side — per-tool pricing.

// Agent pays automatically on HTTP 402 import { Gate402Agent } from 'gate402-agent' const agent = new Gate402Agent({ privateKey: process.env.AGENT_WALLET_KEY, limits: { maxPerDay: 10.00 } }) const data = await agent.fetch(( 'https://api.meuservico.dev/analyze' ) // Paid 0.00495 USDC. Received data.

Agent side — pays itself.

Real-time Payment Dashboard gate402 Every USDC that lands in your wallet appears here the moment it arrives. No refresh. No delay. No intermediary.

The x402 ecosystem is already in production. Gate402 connects your API to every agent, framework, and runtime that speaks the x402 protocol.

Solana + USDC

Settlement in 400ms. Fees under $0.001. The only chain where micropayments make sense.

x402 Protocol

The open standard backed by Google, Cloudflare, Stripe, and Coinbase. Gate402 is production-ready today.

3

lines

of code

400ms

settlement

on Solana

1%

platform

fee only

MIT

licensed

open source

“The agentic economy needs a payment layer.
HTTP 402 has existed since 1991.
Gate402 is what finally makes it real.”

— The infrastructure the internet forgot to build,
until agents made it necessary.

FAQ

Everything you need to know about Gate402, the x402 protocol, and how AI agents pay for APIs.

Browse Docs →
FAQ

Start building. Pick your entry point.

Whether you're monetizing an API, building an agent, or wiring up an MCP server — one package gets you there.

Provider Side
API Middleware
Monetize any Express, Fastify, or Python API. Three lines of middleware. Agents pay you in USDC.
npm install gate402
Consumer Side
Agent SDK
Add autonomous payment to any AI agent. Detects 402, pays, retries — zero human interaction.
npm install gate402-agent
MCP Server — from scratch
MCP
Scaffold a new MCP server with Gate402 pre-configured. Per-tool pricing out of the box.
npx create-gate402-mcp
Existing MCP Server
Middleware
Add Gate402 billing to an MCP server you already have running. Drop-in middleware.
npm install gate402