For AI agents, the documentation index lists all pages. Append .md to a documentation URL for Markdown, or request text/markdown.

Skip to Content

Run & Inspect

Operate the local router, preview model routes, inspect settled requests, and automate routine checks.

3 min readEdit this page

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.yaml

Alternatively, start a detached background process:

bro start -c ./bitrouter.yaml
bro status -c ./bitrouter.yaml

The 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.yaml

Use 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.yaml

Stop the daemon when it is no longer needed:

bro stop -c ./bitrouter.yaml

Inspect model routes

bro models -c ./bitrouter.yaml
bro route anthropic/claude-haiku-4.5 -c ./bitrouter.yaml

Replace 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.yaml

Inspect 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

  1. Check the daemon with bro status and confirm the configuration path.
  2. Run bro config validate and inspect its warnings as well as its exit status.
  3. Use bro models and bro route to inspect the configured selector and eligible sources.
  4. 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.yaml

An 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?

On this page