# Getting Started (/docs/cli/getting-started)

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

{/\* GENERATED by scripts/generate-cli.mjs from cli-overlays/guide.md. Edit the authored input, not this page. \*/}

Use `bro` to configure and run the local router, inspect requests, and manage your BitRouter Cloud account. Applications call the [HTTP API](https://bitrouter-docs-staging.up.railway.app/docs/reference); existing coding tools connect through [Integrations](https://bitrouter-docs-staging.up.railway.app/docs/integration/bro-harness).

## Install and check the version \[#install-and-check-the-version]

Choose an installer from [Quickstart](https://bitrouter-docs-staging.up.railway.app/docs/overview/quickstart#install-the-binary), then check your installation:

```bash
bro --version
bro --help
```

The [Command Reference](https://bitrouter-docs-staging.up.railway.app/docs/usage/cli) is captured from `bro 1.0.0-alpha.33`. Check the installed command's `--help` when using another version.

## Choose your connection \[#choose-your-connection]

| Connection                              | Setup                                                 | Next step                                                             |
| --------------------------------------- | ----------------------------------------------------- | --------------------------------------------------------------------- |
| BitRouter Cloud                         | Sign in with the CLI or use an existing Cloud API key | Manage the account or call Cloud directly; a local daemon is optional |
| Your own providers or inference servers | Configure provider credentials and endpoints          | Start the local router and point your application at it               |

For Cloud, follow [Cloud Management](https://bitrouter-docs-staging.up.railway.app/docs/cli/cloud-management#sign-in-and-check-the-account). To connect your own sources, use [BYOK & Subscriptions](https://bitrouter-docs-staging.up.railway.app/docs/models-routing/byok-subscriptions) or [Local Models](https://bitrouter-docs-staging.up.railway.app/docs/models-routing/local-models).

## Set up the CLI \[#set-up-the-cli]

For a local configuration, run the setup wizard and finish without opening a harness:

```bash
bro init -c ./bitrouter.yaml --after exit
bro config validate -c ./bitrouter.yaml
```

The wizard can update an existing configuration. [Configuration](https://bitrouter-docs-staging.up.railway.app/docs/routing/configuration) explains file discovery, environment references, validation, and which changes need a reload or restart. Model connections and routing policy examples stay in their respective feature guides.

## Start and inspect the router \[#start-and-inspect-the-router]

Start the configured router in the background:

```bash
bro start -c ./bitrouter.yaml
bro status -c ./bitrouter.yaml
bro models -c ./bitrouter.yaml
```

Choose a model from the configured catalog and preview its route with `bro route <model> -c ./bitrouter.yaml`. Route inspection does not invoke inference. Use [API Getting Started](https://bitrouter-docs-staging.up.railway.app/docs/reference#local-router) for an actual request, then [Run & Inspect](https://bitrouter-docs-staging.up.railway.app/docs/cli/run-inspect#inspect-settled-requests) to inspect its receipt.

If you are calling Cloud directly, use [API Getting Started](https://bitrouter-docs-staging.up.railway.app/docs/reference#first-cloud-request) without starting a local daemon.

## Next steps \[#next-steps]

* [Configuration](https://bitrouter-docs-staging.up.railway.app/docs/routing/configuration) — Find, validate, and apply bitrouter.yaml and look up its fields.

* [Run & Inspect](https://bitrouter-docs-staging.up.railway.app/docs/cli/run-inspect) — Operate the router, inspect routes, and diagnose requests.

* [Cloud Management](https://bitrouter-docs-staging.up.railway.app/docs/cli/cloud-management) — Manage credentials, usage, budgets, and account settings.

* [Command Reference](https://bitrouter-docs-staging.up.railway.app/docs/usage/cli) — Look up captured commands, flags, and environment variables.

<a id="workflow-guide-links" />
<a id="self-driving-workflows" />
<a id="delegate-a-goal" />
<a id="coordinate-the-work" />
<a id="steer-a-running-goal" />
<a id="deliver-verified-results" />
<a id="pause-recover-and-continue" />
<a id="inspect-execution-and-resource-choices" />
<a id="choose-your-entry-point" />
<a id="interactive-tui" />
<a id="released-acp-conversation-controls" />
<a id="open-goals" />
<a id="find-and-manage-your-goals" />
<a id="work-in-the-current-goal" />
<a id="submit-input-while-work-runs" />
<a id="inspect-the-workflow" />
<a id="handle-necessary-decisions" />
<a id="pause-and-resume" />
<a id="review-the-result" />
<a id="operations-only-targets" />
<a id="headless--scripting" />
<a id="choose-the-native-execution-mode" />
<a id="run-a-native-task" />
<a id="continue-a-managed-session" />
<a id="consume-structured-output" />
<a id="gate-a-script-on-verified-completion" />
<a id="permissions" />
<a id="handle-interruption-and-recovery" />
<a id="automate-a-persistent-goal" />

## Previous workflow links \[#previous-workflow-links]

Earlier agent-workflow previews are outside the first-release documentation. For current CLI tasks, use [Getting Started](https://bitrouter-docs-staging.up.railway.app/docs/cli/getting-started), [Run & Inspect](https://bitrouter-docs-staging.up.railway.app/docs/cli/run-inspect), and [Cloud Management](https://bitrouter-docs-staging.up.railway.app/docs/cli/cloud-management). Captured release commands remain in [Command Reference](https://bitrouter-docs-staging.up.railway.app/docs/usage/cli#command-reference).