# Commands (/docs/cli/commands)

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

{/\* Draft structure. Check every command and flag against the released CLI before launch. \*/}

| Command                       | What it does                                                                                                            |
| ----------------------------- | ----------------------------------------------------------------------------------------------------------------------- |
| `spare start`                 | Start the local API.                                                                                                    |
| `spare models`                | List the models the CLI can reach. Add `--provider <id>` to show one provider.                                          |
| `spare providers login <id>`  | Sign in to a subscription.                                                                                              |
| `spare providers logout <id>` | Sign out of a subscription.                                                                                             |
| `spare policy init auto`      | Create a [Cost routing](https://bitrouter.ai/docs/fleet/cost-routing#set-up) policy with a strong and an economy route. |
| `spare policy check`          | Check the policy before reloading.                                                                                      |
| `spare requests`              | List recent requests: the model that served each, its tokens, cost and status. Add `--limit <n>`.                       |
| `spare claude`                | Start Claude Code through the CLI. Add `--model <id>` to pick the model.                                                |
| `spare codex`                 | Start Codex through the CLI. Add `--model <id>` to pick the model.                                                      |

## Models you can name \[#models-you-can-name]

* **A model id** from `spare models`, such as `deepseek-v4.1-flash`, runs that model.
* **`spare/auto`** sends each request through the [Cost routing](https://bitrouter.ai/docs/fleet/cost-routing).
* **A chain name** you define runs a [fallback chain](https://bitrouter.ai/docs/fleet/fallbacks).