bitrouter/auto
Use one stable model id to route each request through the policy you own, inspect, and can override.
bitrouter/auto is the stable model id for policy-driven routing. Keep it in your application or agent configuration while BitRouter resolves each request through the policy bound to the auto preset.
An explicit model id still bypasses that policy. Use bitrouter/auto for calls the router should choose; use a logical provider/model id when a call must stay on a model you selected.
Before you send a request
The endpoint needs an auto preset with a routing policy bound to it. BitRouter fails visibly when that binding is missing rather than silently guessing a model.
| Deployment | What you need |
|---|---|
| BitRouter Cloud | A Cloud credential and an auto policy available to the active workspace |
| Self-hosted | A running bro proxy, at least one usable model route, and a local policy bound to the auto preset |
Start with the Quickstart if the endpoint is not running yet. Use bro models to see the logical model ids currently available.
Send the first request
The model id works anywhere BitRouter accepts a model selector. For an OpenAI-compatible local request:
curl http://127.0.0.1:4356/v1/chat/completions \
-H "Content-Type: application/json" \
-d '{
"model": "bitrouter/auto",
"messages": [{"role": "user", "content": "Summarize this change."}]
}'For the hosted endpoint, use https://api.bitrouter.ai/v1 as the OpenAI-compatible base URL and authenticate with your Cloud credential. Anthropic Messages and Google Generative AI clients can use the same model id through their corresponding BitRouter-compatible endpoint.
The public spelling maps to the auto preset. @auto addresses that preset directly, but application and agent configuration should prefer bitrouter/auto as the portable model id.
Use it from a coding agent
Pass the model when BitRouter launches the harness:
bro code codex --model bitrouter/auto
bro claude --model bitrouter/auto
bro codex --model bitrouter/autoFor a harness that connects to BitRouter directly, set its base URL to the local proxy or Cloud endpoint and set its model to bitrouter/auto. The Coding agents page documents the environment variables and authentication boundary for each supported harness.
Create the local binding
bro policy init creates a routing-policy lock and binds it to a preset. Supply both base tiers when the preset does not already define the strong model:
bro policy init auto --preset auto \
--strong openai/gpt-5.4 \
--economy moonshotai/kimi-k2.7-codeThe command writes policy-lock.yaml and updates bitrouter.yaml with the binding. Keep both files in version control. Do not hand-author only part of the binding: the initializer validates the model identities, seeds the policy invariants, and starts writeback in the locked state.
Check the artifacts before starting traffic:
bro policy check
bro policy status
bro route bitrouter/autobro route verifies selector resolution and the configured candidate chain. The settled request record is the authority for the model and provider that actually served a request.
Inspect what served
For a self-hosted router:
bro requests --limit 25For BitRouter Cloud:
bro cloud requests --limit 25The receipt distinguishes the requested selector from the resolved model and serving provider. Retries and fallback attempts are separate telemetry hops; the settled route is not inferred from response text.
Use Telemetry when you need traces, metrics, sampling, or exporter configuration. Use Evaluations when you need to decide whether the result met an objective.
Override one call
You do not need a second endpoint to opt out of automatic selection:
| Selector | Effect |
|---|---|
bitrouter/auto | Resolve through the policy bound to auto |
openai/gpt-5.4 | Request one logical model while preserving eligible provider fallback |
openai:openai/gpt-5.4 | Pin one configured provider and model |
Prefer the slash form for a deliberate model override. Use the colon form only when the provider account itself is part of the decision. See Model routing for the complete resolution order.
Let evidence improve the policy
Use Routing policy to configure adequacy, escalation, exploration, and the explicit publication workflow. Use Evaluations for objective-scored evidence.
Diagnose a request
| Symptom | Check |
|---|---|
The auto policy is not bound | bro policy status, then initialize or repair the auto binding |
| No model is eligible | bro models, provider credentials, and policy tier model ids |
| The candidate chain is unexpected | bro route bitrouter/auto and Model routing |
| A call did not use the policy | Confirm its requested model was bitrouter/auto, not an explicit model id |
| The serving route is unclear | Inspect the settled local or Cloud request receipt |
| Traces are missing | Check bro observe status and Telemetry |
How is this guide?