Quick Start
Run BitRouter in under a minute, via Agent Skills or the CLI/TUI.
This guide gets BitRouter routing for your agent in under a minute. There are two deployment modes — and two ways to onboard either mode:
- BitRouter Cloud (default). Hosted endpoint at
cloud.bitrouter.ai. No keys to manage; agent-native x402/MPP pay-per-use, or BYOK on top. - Local proxy. Single binary on your machine, BYOK with your own provider keys. Zero infrastructure dependencies.
Both modes onboard through Agent Skills (let your agent install and configure itself) or the BitRouter CLI / TUI (interactive wizard). Both default to Cloud; switch to local with a single keypress.
Agent Skills
For agent runtimes that support skills (Claude Code, Cursor, Codex, Copilot, etc.). Install once:
npx skills add bitrouter/bitrouterThen ask your agent: "Set up BitRouter for me." — the agent runs the wizard, picks Cloud by default, and verifies the connection autonomously.
BitRouter CLI
For terminal-first setup. Install the binary:
curl -fsSL https://bitrouter.ai/install.sh | shnpm install -g bitrouterbrew install bitrouter/tap/bitroutercargo install bitrouterLaunch the TUI wizard:
bitrouterThe wizard asks Cloud or local? (default Cloud), prompts for keys if you choose local, then starts the proxy at http://127.0.0.1:4356.
Verify with a request:
curl http://127.0.0.1:4356/v1/chat/completions \
-H "Content-Type: application/json" \
-d '{
"model": "openai/gpt-4o",
"messages": [{"role": "user", "content": "Hello!"}]
}'Point any OpenAI-compatible runtime at http://127.0.0.1:4356/v1 to route through BitRouter.
Next Steps
Recipes for connecting specific agent runtimes — Claude Code, OpenClaw, Codex CLI, OpenCode, Kilo Code, and more — live in the Cookbook.
Cookbook
Step-by-step recipes for every supported agent runtime
Comparison
How BitRouter differs from OpenRouter, LiteLLM, and other gateways
For Providers
List your models on the BitRouter Registry
API Reference
Endpoint and schema documentation
GitHub
Source code and contributions
Discord
Community help and updates
How is this guide?
Installation
Install the open-source BitRouter binary and run it locally, or sign in to BitRouter Cloud — same core either way.
Self-host vs Cloud
BitRouter's core is identical whether you self-host or use the hosted service. Cloud adds SLA, team seats, support, billing, and the managed provider network.