# 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.

- Skill: `agentskillexchange/route-production-agent-loops-through-bitrouter` (Agent Skill)
- Install (CLI): `npx skillmds@latest add agentskillexchange/route-production-agent-loops-through-bitrouter`
- Raw SKILL.md: https://api.skillmd.com/api/skills/agentskillexchange/route-production-agent-loops-through-bitrouter/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: AI & ML
- Author: agentskillexchange (https://skillmd.com/u/agentskillexchange)
- Updated: 2026-09-08
- Page: https://skillmd.com/skills/agentskillexchange/route-production-agent-loops-through-bitrouter

---


# 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
- <details>

- Source: https://github.com/bitrouter/bitrouter
- Extracted from upstream docs: https://raw.githubusercontent.com/bitrouter/bitrouter/HEAD/README.md

## Documentation

- https://bitrouter.ai

## Source

- [Agent Skill Exchange](https://agentskillexchange.com/skills/route-production-agent-loops-through-bitrouter/)

