x402-native · Stripe for AI agents

Money for machines & humans.

Switch is the x402-native payment rail for AI agents and humans. Settle any HTTP call in milliseconds, send dollars across borders for a fraction of a cent.

OPENAIAnthropicreplitPERPLEXITYcursorLangChainCoinbaseSTRIPEvercel
scroll
What is Switch

Meet Switch.

Switch turns the dormant HTTP 402 status code into a live payment protocol — letting agents and humans settle any call for a fraction of a cent, in real time.

One round trip

Pay any API in one HTTP round trip.

The Switch SDK reads 402 responses, settles in stablecoin, and returns the payload — all inside a single fetch call.

p50 latency

Settles in
280ms

Sub-second finality across 140+ countries. No batch windows, no clearing waits, no chargebacks.

flat feeper call

$0.0000

Flat economics that scale to a billion machines. No card-scheme markup, no FX desk, no surprise fees.

How it works

Three machine-readable steps.
Zero human-readable friction.

x402 turns the dormant HTTP 402 status code into a live payment protocol. Switch handles the routing, settlement, and proofs so your agent never blocks.

AGENTGET /apiSWITCH402 routerSETTLEUSDC · 280msAPI200 OK
round trip · 0.31s
step 01

Agent calls a paywalled endpoint

The server responds with HTTP 402 Payment Required. The Switch SDK reads the X-Payment header for amount, asset, and routing details.

2ms
detect
step 02

Switch settles in stablecoin

We sign and broadcast a payment intent. Funds clear over USDC, EURC, or your preferred network — no card networks, no FX desks.

280ms
settle p50
step 03

Endpoint returns the payload

The merchant gets a verifiable receipt; the agent gets the response. The whole exchange is one round trip with cryptographic proof.

$0.0004
fee
Switch in practice

Use modes

Switch powers a wide range of modes for builders, operators, and treasuries wanting machine-native payments without the card-scheme baggage.

Featured · agents

AI Agents

Give your agent a wallet that thinks like an API key. Capability-scoped budgets, signed receipts, and pay-per-call SDKs that drop into any tool-using loop.

Network

Numbers we'd let an agent quote.

Live SLOs, refreshed every minute. Push to /metrics in your own observability stack with the standard OpenTelemetry exporter.

Settlements / sec0Sustained throughput at network peak.
Median latency0msInitial 402 to receipt, end-to-end.
Cost per settle$0.0000Flat — no card scheme markup, no FX desk.
Uptime0.000%Past 90 days across all routing regions.
For developers

A payment rail you can code against.

One SDK, two sides of the trade. The same API works whether you're an agent paying for a tool call or a merchant tolling your endpoint.

  • Drop-in fetch wrapper — no protocol plumbing
  • Typed receipts you can prove on-chain
  • Per-call metering, dispute proofs included
  • Works with OpenAI, Anthropic, LangChain tool calls
agent.ts
ts
1import { Switch } from '@switch/sdk';
2
3const switch_ = new Switch({ apiKey: process.env.SWITCH_KEY });
4
5// Any HTTP client — fetch, axios, OpenAI tool calls, etc.
6const res = await switch_.fetch('https://api.example.com/forecast', {
7 method: 'POST',
8 body: JSON.stringify({ region: 'us-east' }),
9 // No price negotiation — Switch handles 402 transparently.
10});
11
12const data = await res.json();
13console.log(res.headers.get('x-payment-receipt')); // 0xab…

Funded by premier partners
and forward-thinking leaders.

Sequoiaa16zPARADIGMLightspeedCoinbase VenturesSTRIPEY COMBINATORFounders FundPolychain
Ready when you are

Ship machine-native payments by tomorrow morning.

Free up to 1,000 settlements a month. No credit card. The same API you'll run in production, working in your terminal in five minutes.

SOC 2 Type II·GDPR · CCPA·99.998% uptime·Open source SDKs