Switch406 (switch402) — Universal Outbound x402 Clearinghouse & Agent Intelligence Grid
Zero-dependency Node.js ESM (>=18) + pure-Python agent clearinghouse, pay-per-call intelligence grid, and "Gumroad for Agent APIs" (switch406.com):
- Universal Outbound x402 Proxy (
POST /v1/proxy&GET /x402/<url>): Hand workers a spend-firewalledag_sub_*key (maxDailyUsd,maxPerCallUsd, capability allowlists) instead of hot private keys — pay external HTTP402APIs with unified Ed25519 receipts (3%clearing fee, min$0.0005;0%on same-origin calls). - Zero-Wholesale Agent Infrastructure:
50%-off<5msNotarized Output Cache (/v1/fast/*), 1-tx Keyless x402 Stream Passes (/v1/sessions/x402), AES-256-GCM Wallet KV with atomic compare-and-swap locks (/v1/kv/:ns/:key), Signal-Gated Parallel Batch Scanning (/v1/batch), and Ed25519-Signed Autonomous Webhook Triggers (/v1/triggers). - Keyless Intelligence, Grounded Models & "0 Results =
$0Auto-Refund": Instant URL-prefix reader (/r/<url>) & search (/q/<query>), grounded OpenAI-compatible suffixes (:predict,:alpha,:web), Polymarket + Kalshi arbitrage radar, multi-chain token rug/velocity scans, and 3-node Byzantine quorum oracle. - "Gumroad for Agent APIs" (
npx switch402 publish): Turn any local JS script, FastAPI microservice, or Ollama GPU into a hosted paywalled REST + x402 + Remote MCP endpoint (/s/@handle/skill&/s/@handle/mcp) in 30 seconds — keep 90%. - In-RAM
BigIntNano-USD Ledger + Crash-Safe WAL: Exact double-entry conservation (drift === 0n),$0.50Earned Quality Bond, 15% lifetime referral fee share (?ref=ag_xxx), plus free live/scan,/arb,/x402-tester, and/paywalltools.
Core Agent Infrastructure & Clearinghouse
| Surface | What it does | Price |
|---|---|---|
POST /v1/proxy · GET /x402/<url> |
Outbound x402 clearinghouse behind spend-capped ag_sub_* sub-keys |
3% fee (min $0.0005) |
POST /v1/fast/:skill |
50%-off <5ms Ed25519-notarized cache (alpha_scan, arb_scan, web.*) |
50% off base price |
POST /v1/sessions/x402 |
Convert one x402 Base/Solana USDC payment into a reusable ag_sub_* session key |
Face value ($0.05–$25) |
GET/PUT /v1/kv/:ns/:key |
AES-256-GCM wallet-scoped agent memory with TTL & atomic ?ifMatchVersion= CAS locks |
$0.0002 read · $0.0010 write |
POST /v1/batch |
Parallel batch (1..25 items) with onlyFullChargeWhere screening filter |
$0.0010 non-matches |
POST /v1/triggers |
Autonomous webhook wakeups (url_change, arb_spread, token_safety) |
$0.0010/eval |
POST /v1/escrow · /v1/intents |
Programmable Machine-Court conditional escrow + Intent reverse auctions | 2% settlement fee |
GET /badge/x402.svg?url=... |
Live self-verifying green x402 verified & paid Watchtower SLA README badges |
Free (402 probe) |
Keyless Intelligence & Flagship Skills
| Endpoint | What it does | Buyer price |
|---|---|---|
GET /r/<url> · GET /q/<query> |
Zero-SDK Markdown reader & multi-page deep search (3 free calls/IP/24h, then x402) |
$0.008 / $0.015 |
POST /v1/act/predict.arb_scan |
Live Polymarket + Kalshi Dutch-book deviations, cross-venue spreads & wide spreads | $0.020/call |
POST /v1/act/chain.alpha_scan |
Multi-chain (Base, Solana, ETH, Arb, BSC) rug/honeypot, DEX velocity & safety score | $0.025/call |
POST /v1/act/web.deep_extract |
Multi-provider web search + top-3 clean Markdown extraction (0 pages = $0) |
$0.015/call |
POST /v1/act/oracle.quorum_verify |
Byzantine consensus across up to 3 independent connected nodes + Quorum Certificate | $0.025/call |
POST /v1/act/chain.token_report |
Fast Base/EVM bytecode + DexScreener + GoPlus safety check | $0.005/call |
POST /v1/images/generations |
Unified OpenRouter image generation (google/gemini-3.1-flash-lite-image) |
$0.060/image |
POST /v1/chat/completions |
OpenAI-compatible frontier LLM gateway + grounded :predict, :alpha, :web suffixes |
/v1/models (+25%) |
util.* / trade.notarize |
Zero-wholesale local utilities & Ed25519 notarization (2 free sandbox calls on register) |
$0.001/call |
Quickstart
1. Remote MCP (10-Tool Lean Context Profile — Recommended for Claude Code / Cursor)
claude mcp add --transport http switch406 "https://switch406.com/mcp?profile=lean"
Or run locally via zero-dependency npm stdio MCP (switch402-mcp):
npx -y switch402-mcp --server https://switch406.com
2. Zero-Dependency Python SDK (packages/python)
from switch406 import Switch406, fastapi_paywall
client = Switch406()
reg = client.register("my-bot")
sub = client.create_subkey(max_daily_usd="1.00", allowed_capabilities=["act:*", "proxy:*"])
bot = Switch406(api_key=sub["apiKey"])
arb = bot.arb_scan(query="fed", fast=True) # 50% off cached scan
ext = bot.proxy_x402("https://switch406.com/v1/fast/chain.alpha_scan", body={"address": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913", "chain": "base"})
3. Monetize Any Local Script, FastAPI Route, or GPU (Keep 90%)
npx switch402 publish --handle you --skill research --price 0.02 --proxy http://127.0.0.1:8000/run
# -> REST + x402 live at https://switch406.com/s/@you/research
# -> Hosted MCP live at https://switch406.com/s/@you/mcp
4. Keyless Per-Call x402 (Zero Registration)
# Step 1: Receive HTTP 402 + PAYMENT-REQUIRED (Base USDC eip155:8453) + PayAI Bazaar schema
curl -i -X POST https://switch406.com/v1/act/chain.alpha_scan \
-H 'Content-Type: application/json' \
-d '{"address": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913", "chain": "base"}'
# Step 2: Re-send with signed PAYMENT-SIGNATURE header
5. Local Development & Full E2E Suite
npm test # Runs 19/19 E2E tests (0 external npm dependencies)
npm start # Starts Switch406 server on :4020
Machine-readable discovery: /llms.txt · /openapi.json · /.well-known/x402 · /.well-known/mcp.json