Bifrost is an AI gateway that gives applications one OpenAI-compatible API for accessing models from more than 23 providers. It is used to route model requests, handle provider failover and load balancing, and apply features such as caching, guardrails, and MCP gateway support.
Borrowing it
Nothing to install: this file belongs to maximhq/bifrost. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/maximhq/bifrost/dev/.claude/skills/routing-harness/SKILL.mdgit clone --depth 1 https://github.com/maximhq/bifrostWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/maximhq/bifrost/routing-harness)<a href="https://agentmods.dev/skills/maximhq/bifrost/routing-harness"><img src="https://agentmods.dev/badge/skills/maximhq/bifrost/routing-harness/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/maximhq/bifrost/routing-harness"><img src="https://agentmods.dev/badge/skills/maximhq/bifrost/routing-harness.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00135 | $0.05616 |
| Opus 5.5 | $0.00054 | $0.02246 |
| Sonnet 5.5 | $0.00027 | $0.01123 |
| Haiku 4.5 | $0.00014 | $0.00562 |
Grade A, and why
routing-harness scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 181 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Routing harness
Every end-to-end routing case lives in the routing harness, two generated suites:
tests/e2e/api/runners/build-routing-wiring.mjsgeneratestests/e2e/api/collections/bifrost-routing-wiring.postman_collection.json: which provider, model and key a request is routed to, the refusal when it cannot be, its fallbacks,routing_info, and the stored log and routing trail.tests/e2e/api/runners/build-model-catalog-wiring.mjsgeneratestests/e2e/api/collections/bifrost-model-catalog-wiring.postman_collection.json: provider and key changes reaching the catalog read endpoints, and aliases resolving at inference.
Both collections are committed. Edit the generator, regenerate, and commit both; never hand-edit the JSON. Each runner in tests/e2e/api/runners/individual/ boots a clean Bifrost (no providers, SQLite config and logs stores) with --binary and runs its collection; CI runs both from .github/workflows/scripts/test-api-integrations.sh. The runs are live and paid (OpenAI, Anthropic, Gemini, Azure, Bedrock and Vertex through env.<NAME> keys): run the free checks in section 5 yourself and hand the live commands to the user.
Read AGENTS.md "Every routing change ships with routing harness cases" first. Cite names, not line numbers: the helpers below are names in the two generators and in tests/e2e/api/runners/lib/collection-builder.mjs on dev.
1. What goes where
| What changed | Test it in |
|---|---|
Routing a client can observe: the provider, model and key that serve a request, the refusal, fallbacks, routing_info, the routing headers, the log row and routing_engine_logs |
build-routing-wiring.mjs, plus Go unit tests |
Provider and key changes reaching /api/models, /api/models/details and the base model list; aliases resolving at inference |
build-model-catalog-wiring.mjs, plus Go unit tests |
| A function's logic, a race, an error path no request can reach | Go unit tests beside the code: plugins/routing (rules, model routers, the complexity classifiers and suggestions), framework/routing, framework/modelcatalog, plugins/modelcatalogresolver, plugins/governance, core/keyselectors, core/sessionaffinity_test.go and the key selection and fallback tests in core |
| How well the complexity suggestions route a labelled corpus | tests/cmd/complexitysuggesteval (offline scoring, not a regression gate) |
| The routing rules, model router, complexity router and model catalog pages | Playwright (tests/e2e/features/routing-rules/, model-routers/, complexity-router/, model-catalog/) |
| How a provider converts the request it was routed to or the response it returns | the provider harness (.claude/skills/harness-test-writer/SKILL.md) |
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 5d ago First seen · 181 lines · 135 tokens per session scan A 57c6e27eed01
routing-harness is a skill published in the GitHub repository maximhq/bifrost (10,145 stars, last pushed today), licensed Apache-2.0. It adds 135 tokens to every session and 5,616 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-27.
routing-harness compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| routing-harnessmaximhq/bifrost | Skill | 10k | today | Apache-2.0 | A | 135 | Claude Code |
| Browser Agent QA TestingPramodDutta/qaskills | Skill | 253 | 29d ago | MIT | A | 33 | Claude Code, Codex |
| unrelated-toolsunrelated-ai/mcp-gateway | Skill | 27 | yesterday | MIT | A | 64 | Codex |
| unified-ai-gatewayhappy520ai/unified-ai-system | Skill | 10 | 4d ago | Apache-2.0 | A | 35 | Codex |
| test-sweepsrnichols/plan-forge | Skill | 6 | 28d ago | MIT | A | 38 | Claude Code |
| audit-loopsrnichols/plan-forge | Skill | 6 | 28d ago | MIT | A | 100 | Claude Code |
| verifystudioKjm/ai-harness-template | Skill | 46 | 1mo ago | MIT | A | 79 | Claude Code |