Route production agent loops through BitRouter
Use BitRouter as an agentic LLM gateway that routes model, tool, and sub-agent calls with scoped keys, cost policy, failover, telemetry, MCP gateway support, and loop guards.
Prerequisites
BitRouter daemon or CLI, agent runtime with OpenAI-compatible or Anthropic-compatible configuration, provider keys or BitRouter Cloud login, optional MCP servers and AgentSkills
Installation
Use the upstream install or setup path that matches your environment:
- brew install bitrouter/tap/bitrouter
- npm install -g bitrouter
- cargo install bitrouter
- npx skills add bitrouter/bitrouter # via the generic skills CLI
Requirements and caveats from upstream:
- TL;DR — OpenRouter is a cloud API marketplace for humans picking models. LiteLLM (Python), Portkey (TypeScript), and Bifrost (Go) are unified gateways — fast, OpenAI-compatible, guardrails included — but they rout...
- BitRouter is a local proxy between your agent and every LLM provider. One env-var swap — no harness changes required:
Basic usage or getting-started notes:
Evaluate — score each run against the loop's goal.
Multi-account failover + load-balancing — reroute mid-run; a rate-limit at file 140 never re-pays for files 1–139
Extracted from upstream docs: https://raw.githubusercontent.com/bitrouter/bitrouter/HEAD/README.md