经 AI Skill Hub 精选评估,开源智能路由 获评「强烈推荐」。这款MCP工具在功能完整性、社区活跃度和易用性方面表现出色,AI 评分 8.0 分,适合有一定技术背景的用户使用。
开源智能路由 是一款遵循 MCP(Model Context Protocol)标准协议的 AI 工具扩展。通过 MCP 协议,它可以让 Claude、Cursor 等主流 AI 客户端直接访问和操作外部工具、数据源和服务,实现 AI 能力的无缝扩展。无论是文件操作、数据库查询还是 API 调用,都可以通过自然语言在 AI 对话中直接触发,极大提升生产效率。
开源智能路由 是一款遵循 MCP(Model Context Protocol)标准协议的 AI 工具扩展。通过 MCP 协议,它可以让 Claude、Cursor 等主流 AI 客户端直接访问和操作外部工具、数据源和服务,实现 AI 能力的无缝扩展。无论是文件操作、数据库查询还是 API 调用,都可以通过自然语言在 AI 对话中直接触发,极大提升生产效率。
# 方式一:通过 Claude Code CLI 一键安装
claude skill install https://github.com/bitrouter/bitrouter
# 方式二:手动配置 claude_desktop_config.json
{
"mcpServers": {
"------": {
"command": "npx",
"args": ["-y", "bitrouter"]
}
}
}
# 配置文件位置
# macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
# Windows: %APPDATA%/Claude/claude_desktop_config.json
# 安装后在 Claude 对话中直接使用 # 示例: 用户: 请帮我用 开源智能路由 执行以下任务... Claude: [自动调用 开源智能路由 MCP 工具处理请求] # 查看可用工具列表 # 在 Claude 中输入:"列出所有可用的 MCP 工具"
// claude_desktop_config.json 配置示例
{
"mcpServers": {
"______": {
"command": "npx",
"args": ["-y", "bitrouter"],
"env": {
// "API_KEY": "your-api-key-here"
}
}
}
}
// 保存后重启 Claude Desktop 生效
An open-source, context-aware model router that learns and adapts to your agent workflows.
You're tokenmaxxing in production. Every step of every loop bills at frontier prices — file reads, tool calls, sub-agent hops, retries. Most don't need it. BitRouter routes each call, tool, and agent to the cheapest path that still reaches the goal, and tightens that routing as the loop runs.
Works with any harness, any model, any loop. Cost is live today — latency and accuracy are next.
Beyond the gateways above, the production controls for running agents unattended:
brvk_) scoped per agent or user — no agent holds an upstream key```bash
BitRouter is a local proxy between your agent and every LLM provider. One env-var swap — no harness changes required:
- OPENAI_BASE_URL=https://api.openai.com/v1 # hardwired to one provider, no fallback
+ OPENAI_BASE_URL=http://localhost:4356/v1 # all providers, automatic failover
BitRouter exposes an OpenAI- and Anthropic-compatible HTTP API on http://localhost:4356, so any SDK or client works unchanged. The full endpoint reference and OpenAPI spec live in bitrouter/bitrouter-docs (rendered at bitrouter.ai).
```
Ready-made policy specs for common agentic workflows start in templates/auto-router/: a predictive bitrouter/auto / bitrouter/auto:cost ladder using GPT-5.6 as the strong tier, Kimi K3 as balanced, and DeepSeek V4 Pro as economy. Treat it as a starting point and evaluate it against your own loop before publishing a live policy.
Run bro to complete first-run setup and choose a default ACP harness. After setup, bro code is the explicit full-screen home for operations and ACP sessions. Codex (codex-acp) and Claude (claude-acp) are built in; no agent YAML is required. A compatible local CLI is discovered automatically and used behind its ACP adapter; otherwise the adapter uses its bundled worker.
bro # onboarding, then the default ACP TUI
bro code # operations and agent picker
bro code codex # one interactive ACP session
bro run claude "summarize this repo" # headless ACP turn
bro claude # Claude Code's native interface
The built-in adapters require Node.js 22+ and npx. BitRouter only launches ACP agents through code, run, and acp serve; launch and the claude / codex shortcuts instead start each harness's own native interface with per-process routing overrides. Other API clients can use OPENAI_BASE_URL=http://localhost:4356/v1 or ANTHROPIC_BASE_URL=http://localhost:4356 to send traffic to the daemon.
Headless ACP sub-agents use bro run; ACP clients launch bro acp serve <agent>. The full provider and harness catalog lives in github.com/bitrouter/bitrouter/registry.
Automatic model selection is no longer the differentiator — every router below picks a model for you. What separates them is what the decision reads and whose data makes it better. Almost all of them classify the prompt. BitRouter routes on the loop step — where the agent is in its trajectory, keyed by the last tool it called — and improves from evaluations you admit, into a lock file you own.
| **BitRouter** | **[OpenRouter Auto](https://openrouter.ai/blog/announcements/introducing-the-new-auto-router/)** | **[Not Diamond Code](https://www.notdiamond.ai/blog/not-diamond-code-intelligent-model-routing-for-coding-agents)** | **[vLLM Semantic Router](https://github.com/vllm-project/semantic-router)** | **[LiteLLM Auto](https://docs.litellm.ai/docs/proxy/auto_routing_benchmark)** | |
|---|---|---|---|---|---|
| **Routing signal** | **The loop step** — last tool called, over the agent trace | Prompt classified into ~30 task types | Session state, token counts, task complexity, KV-cache state | Prompt signals: classifiers, embeddings, keyword and metadata rules | Prompt embedding similarity to labeled example routes |
| **Improves from** | **Your** admitted evaluation outcomes, per loop | The community's last-7-days spend across all of OpenRouter | Your implicit accept/reject feedback, in a hosted model | Router models you train offline and redeploy | Labeled examples plus one fitted score threshold |
| **Optimizes** | Any objective you submit (cost validated today) | Cost tier vs. capability | Cost and quality jointly | Quality, cost, latency, privacy, safety | Cost vs. quality at a chosen threshold |
| **Policy you own** | Git-owned policy-lock.yaml — readable, diffable, explicit publish | Vendor-side, tunable by knobs | Vendor-side | Config recipes plus trained artifacts | Proxy config plus fitted threshold |
OpenRouter Auto and Not Diamond are hosted services. BitRouter, vLLM Semantic Router, and LiteLLM are open-source and self-hostable; BitRouter is Rust.
高质量的开源MCP工具,实现LLM智能代理路由
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
✅ Apache 2.0 — 宽松开源协议,可商用,需保留版权声明和 NOTICE 文件,含专利授权条款。
AI Skill Hub 点评:开源智能路由 的核心功能完整,质量优秀。对于Claude Desktop / Claude Code 用户来说,这是一个值得纳入个人工具库的选择。建议先在非生产环境试用,再逐步推广。
| 原始名称 | bitrouter |
| 原始描述 | 开源MCP工具:Open intelligence router for LLM agents。⭐84 · Rust |
| Topics | mcpa2aagent-guardrailsrust |
| GitHub | https://github.com/bitrouter/bitrouter |
| License | Apache-2.0 |
| 语言 | Rust |
收录时间:2026-05-26 · 更新时间:2026-05-30 · License:Apache-2.0 · AI Skill Hub 不对第三方内容的准确性作法律背书。
选择 Agent 类型,复制安装指令后粘贴到对应客户端