Commands
Every command of the Spare CLI, what it does and where it's explained.
1 min readEdit this page
| 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 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
- A model id from
spare models, such asdeepseek-v4.1-flash, runs that model. spare/autosends each request through the Cost routing.- A chain name you define runs a fallback chain.
How is this guide?