[SwitchBord: the live router for paid agent APIs. An agent asks for a task; SwitchBord checks sellers live and returns the best one plus backups.]
[Live endpoints]
[MCP Registry]
[Protocols: x402 and MPP]
[MIT License]
Website ·
Quick start ·
API ·
MCP setup ·
Self-host
Agents can now pay for APIs on their own, over x402 and MPP. There are tens of thousands of paid endpoints, and many of them are down, slow or overpriced at any given moment. SwitchBord tells your agent which ones to call. It asks for a task in plain words, like "search the web" or "ETH price", and gets back the sellers that are working, cheapest and fastest right now, checked live just before the answer, plus backups.
Quick start
Claude Code
Cursor, Windsurf, Cline and any client that reads an mcpServers block:
Any agent, one paste. Add this to CLAUDE.md, AGENTS.md or a system prompt (more in AGENTS-SNIPPET.md):
Building your own agent? integrations/switchbord-tool.mjs is a dependency-free tool with OpenAI-style and Anthropic-style schemas.
Selling on x402 or MPP? Show a live badge on your README:  (details).
Plugins, Gemini CLI and other clients
- Claude Code plugin:
/plugin marketplace add 6ixtyy/switchbord, then /plugin install switchbord@switchbord
- Gemini CLI:
gemini extensions install https://github.com/6ixtyy/switchbord
- Claude Desktop, VS Code and others: see MCP.md
Or just call the HTTP API:
What you get back
A real answer for "search the web", trimmed to two candidates:
Every field is documented in API.md. Runnable snippets are in examples/.
How it works
- Inventory. Every day SwitchBord pulls every listed endpoint from Coinbase Bazaar and mpp.dev, merges them and groups interchangeable sellers into markets.
- Match. Your task is matched to a market. If none fits, you still get the closest single endpoints.
- Check live. The top candidates get an unpaid request that reads their payment terms, so sellers that are down or misconfigured drop out.
- Rank. Candidates are ordered by health, speed, price and real-world results. The full logic is in
src/router.ts and src/health.ts.
Reference
Paying sellers
SwitchBord does not pay for you, hold funds, or guarantee sellers. To call a paid seller, your agent needs its own wallet and an x402 or MPP client, for example Coinbase's @x402/fetch. Each candidate says how it charges:
after_success (x402): charged only when the seller answers OK, so trying a backup after a failure is safe.
before_handler (MPP): charged up front.
Run it yourself
The hosted service at api.switchbord.xyz runs this code. You can run your own copy with Node 22:
Everything works with no configuration. These environment variables are optional:
To deploy on Vercel, import the repo: vercel.json builds the inventory and the function, and runs the daily rebuild.
Code map
Contributing
Issues and pull requests are welcome. Bad rankings, dead sellers, new protocols and docs fixes are all useful. Read CONTRIBUTING.md first; for security issues see SECURITY.md. What changed: CHANGELOG.md. For language models: llms.txt. Privacy: PRIVACY.md.
License
MIT