Run & Inspect
Operate the local router, preview model routes, inspect settled requests, and automate routine checks.
Start with a validated configuration. Commands here follow the captured bro 1.0.0-alpha.33 reference; compare your installed --help before using version-specific options.
Start in the foreground or background
Run the router in the foreground for a terminal session, container, or process supervisor:
bro serve -c ./bitrouter.yamlAlternatively, start a detached background process:
bro start -c ./bitrouter.yaml
bro status -c ./bitrouter.yamlThe default local listener is http://127.0.0.1:4356. bro status reports the daemon's state; it does not establish that an upstream model request will succeed. The Self-hosting guide owns service deployment, network exposure, authentication, and telemetry setup.
Apply configuration changes
Validate the intended file before applying it to the daemon:
bro config validate -c ./bitrouter.yaml
bro reload -c ./bitrouter.yamlUse the same configuration path to locate the daemon you intend to control. Reload only applies supported changes; consult reload boundaries before deciding whether to restart.
bro restart -c ./bitrouter.yamlStop the daemon when it is no longer needed:
bro stop -c ./bitrouter.yamlInspect model routes
bro models -c ./bitrouter.yaml
bro route anthropic/claude-haiku-4.5 -c ./bitrouter.yamlReplace the example selector with one available in your configuration. bro route uses the running daemon when reachable and otherwise resolves from the configuration on disk. It is read-only and sends nothing upstream. Virtual Models explains selector forms; Auto Router owns policy initialization and route overrides.
Inspect settled requests
bro requests --limit 25 -c ./bitrouter.yamlInspect the model and provider that served each request, recorded usage, cost, latency, and status. A route preview and a completed request answer different questions. Request receipts explains the recorded fields; Routing Traces explains correlation and attempt evidence.
Cloud account activity is available through Cloud Management.
Diagnose a failed request
- Check the daemon with
bro statusand confirm the configuration path. - Run
bro config validateand inspect its warnings as well as its exit status. - Use
bro modelsandbro routeto inspect the configured selector and eligible sources. - Inspect settled requests with
bro requests; use the daemon log and configured telemetry for failures not explained by a receipt.
bro start writes daemon output to bitrouter.log in the configuration directory by default; --log selects another path. Foreground bro serve writes to its attached process output. For exporter setup and coverage, see Self-hosting.
Scripting
Use noninteractive onboarding when the required credentials are already supplied through the environment or explicit configuration:
bro init --yes --use-detected --after exit -c ./bitrouter.yaml
bro config validate -c ./bitrouter.yaml--yes does not complete a browser sign-in flow. Use API-key login for Cloud automation.
Stop a deployment script when validation fails:
if ! bro config validate -c ./bitrouter.yaml; then
exit 1
fi
bro reload -c ./bitrouter.yamlAn unset environment reference can be reported as a warning while validation uses a placeholder. Validation is a configuration check, not proof that credentials work or an upstream request will succeed. Inspect the running deployment after applying a change.
Output controls vary by command. The captured local inspection commands describe JSON output, while Cloud commands such as bro cloud usage expose their own --json option. Consult Command Reference before parsing output; do not infer fields or successful execution from human-readable text alone.
How is this guide?