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

Skip to Content
spare inference

Commands

Every command of the Spare CLI, what it does and where it's explained.

1 min readEdit this page
CommandWhat it does
spare startStart the local API.
spare modelsList 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 autoCreate a Cost routing policy with a strong and an economy route.
spare policy checkCheck the policy before reloading.
spare requestsList recent requests: the model that served each, its tokens, cost and status. Add --limit <n>.
spare claudeStart Claude Code through the CLI. Add --model <id> to pick the model.
spare codexStart Codex through the CLI. Add --model <id> to pick the model.

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.
  • A chain name you define runs a fallback chain.

How is this guide?