# Auto Router (/docs/routing/auto-router)

> For AI agents, the [documentation index](https://bitrouter-docs-staging.up.railway.app/llms.txt) lists all pages. Append .md to a documentation URL to read its Markdown.

Use the self-hosted `bitrouter/auto` selector when a bound policy should select the model for each request. Connect usable inference sources first, initialize the policy binding, then inspect the serving route and review evidence before publishing policy changes.

[Strategies](https://bitrouter-docs-staging.up.railway.app/docs/routing/strategies) explains selector resolution, candidate eligibility, and named variants. [Configuration (YAML)](https://bitrouter-docs-staging.up.railway.app/docs/routing/configuration) covers file discovery, validation, and reload. Automatic model selection remains separate from [Model Fallbacks](https://bitrouter-docs-staging.up.railway.app/docs/models-routing/model-fallback) after a retryable failure.

Use [Routing Traces](https://bitrouter-docs-staging.up.railway.app/docs/routing/routing-traces) to follow the router's decisions, serving models, and upstream attempts across the available workflow trajectory.

## Local and Cloud pricing \[#local-and-cloud-pricing]

Self-hosting the OSS router has no BitRouter fee. Cloud Auto Routing and Elastic Inference share **$0.01 per million processed tokens — early access pricing**. Actual input + output tokens are counted once per request, including when Auto Routing selects Elastic Inference. Your provider or supplier charges for model inference separately. Enterprise terms are custom. See [pricing](https://bitrouter-docs-staging.up.railway.app/pricing).

## Routing rules \[#routing-rules]

<a id="choose-a-strategy" />
<a id="ordered-endpoints" />
<a id="candidate-based-selection" />
<a id="policy-bound-selection" />
<a id="customize-a-strategy" />
<a id="request-presets" />
<a id="variants" />
<a id="ordering-and-release-limits" />

To constrain candidate providers, reuse preferences with `variants:`, or choose ordered endpoints instead of policy-bound selection, use [Strategies](https://bitrouter-docs-staging.up.railway.app/docs/routing/strategies#choose-a-routing-approach). Its examples cover [request presets](https://bitrouter-docs-staging.up.railway.app/docs/routing/strategies#request-presets), [variants](https://bitrouter-docs-staging.up.railway.app/docs/routing/strategies#variants), and [ordering limits](https://bitrouter-docs-staging.up.railway.app/docs/routing/strategies#ordering-and-release-limits).

<a id="policy-tiers-and-runtime-adequacy" />

## Policy tiers and evidence \[#policy-tiers-and-evidence]

Initialize a binding with usable models for its tiers. An unmatched fingerprint uses the configured default tier. In alpha.33, legacy request-time adequacy learning is disabled. [Workload Optimization](https://bitrouter-docs-staging.up.railway.app/docs/routing/workload-optimization#let-evidence-improve-the-policy) explains how to use admitted evidence to update the policy.

Context-view selection has separate runtime rules. The model policy lock does not configure an external harness's history, and this page does not introduce unsupported context-strategy YAML. See [Context Routing](https://bitrouter-docs-staging.up.railway.app/docs/routing/context-routing).

## Initialize a policy binding \[#initialize-a-policy-binding]

`bitrouter/auto` uses the routing policy bound to the named `auto` router. An explicit logical model id selects that model while retaining eligible provider fallback; a provider-qualified id pins one provider. Automatic selection and failure-driven fallback are separate decisions.

For a local deployment, initialize the policy binding with two active `provider:model` routes available in your deployment:

```bash
bro policy init auto --router auto \
  --strong openai:openai/gpt-5.6-sol \
  --economy moonshotai:moonshotai/kimi-k2.7-code
bro policy check
bro route bitrouter/auto
```

The initializer writes `policy-lock.yaml` and updates `bitrouter.yaml` while preserving the configured policy mode. The local endpoint fails visibly if the binding is missing. Hosted callers use a catalog model ID or an enabled workspace routing preset addressed as `@<name>`. A hosted preset can supply its own model or accept one as `@<name>/<base-model>`.

Use the selector in an API request or native harness launch:

```bash
bro claude --model bitrouter/auto
bro codex --model bitrouter/auto
```

[Responses API](https://bitrouter-docs-staging.up.railway.app/docs/usage/responses-api) shows a routed generation request. Inspect the actual serving model with [Request receipts](https://bitrouter-docs-staging.up.railway.app/docs/cli/request-receipts); a selector preview does not prove which fallback ultimately served the call.

## Override one call \[#override-one-call]

Use an explicit selector when the caller should choose the model for one invocation:

```bash
bro claude --model openai/gpt-5.4
bro codex --model openai:openai/gpt-5.4
```

An explicit logical id retains eligible provider alternatives. A provider-qualified id also pins the provider. See [Virtual Models](https://bitrouter-docs-staging.up.railway.app/docs/models-routing/virtual-models#model-selector-forms) for selector resolution and named endpoint definitions.

<a id="let-evidence-improve-the-policy" />
<a id="review-and-publish-a-change" />
<a id="evaluations" />
<a id="two-evidence-paths" />
<a id="evidence-lifecycle" />
<a id="1-define-and-seal-a-subject" />
<a id="2-evaluate-outside-the-router" />
<a id="3-submit-the-result" />
<a id="4-freeze-a-snapshot" />
<a id="5-consume-the-evidence-explicitly" />
<a id="reproducibility-boundary" />
<a id="what-evaluation-does-not-establish" />

## Review evidence and policy changes \[#review-evidence-and-policy-changes]

[Workload Optimization](https://bitrouter-docs-staging.up.railway.app/docs/routing/workload-optimization#existing-policy-tools) documents objective-scored [evaluations](https://bitrouter-docs-staging.up.railway.app/docs/routing/workload-optimization#evaluations), reproducible evidence snapshots, and the [reviewed publication workflow](https://bitrouter-docs-staging.up.railway.app/docs/routing/workload-optimization#review-and-publish-a-change). Evidence collection does not automatically publish a policy candidate.

<a id="verify-and-apply-a-strategy" />

## Verify and apply the policy \[#verify-and-apply-the-policy]

```bash
bro config validate -c bitrouter.yaml
bro route bitrouter/auto -c bitrouter.yaml
bro policy check -c bitrouter.yaml
bro requests --limit 25
```

Use `policy check` to inspect the binding used by `bitrouter/auto`. For other selectors and candidate constraints, use [Strategies](https://bitrouter-docs-staging.up.railway.app/docs/routing/strategies). Route previews do not send inference or establish task quality; settled [Request receipts](https://bitrouter-docs-staging.up.railway.app/docs/cli/request-receipts) show what actually served a call. Apply configuration changes through [Configuration (YAML)](https://bitrouter-docs-staging.up.railway.app/docs/routing/configuration#apply-and-review-changes), and publish policy candidates through the [review workflow](https://bitrouter-docs-staging.up.railway.app/docs/routing/workload-optimization#review-and-publish-a-change).

* [Workload Optimization](https://bitrouter-docs-staging.up.railway.app/docs/routing/workload-optimization) — Coming soon: learn from recurring workloads to refine routing toward quality, cost, and latency goals.

* [Strategies](https://bitrouter-docs-staging.up.railway.app/docs/routing/strategies) — Understand selector resolution, candidate constraints, and named routing variants.

* [Configuration (YAML)](https://bitrouter-docs-staging.up.railway.app/docs/routing/configuration) — Load, validate, and apply routing configuration.

* [Routing Traces](https://bitrouter-docs-staging.up.railway.app/docs/routing/routing-traces) — Trace routing decisions, serving models, and upstream attempts across a workflow.