CLI Reference

These are the commands exposed by sleev. Run sleev --help or the command's -h flag when available for exact usage.

Setup and status

Guide: Quickstart setup

  • sleev [--version] Open the TUI, or print the CLI version with --version.
  • sleev setup [--yes] Register the machine, install the gateway if missing, and start Sleev. Setup does not open a browser. --yes accepts the guest terms without prompting.
  • Install only the latest Claude Desktop credential helper and print its path, without setting up the gateway.
  • sleev status [--config] Print gateway status as JSON. --config includes the config.
  • sleev upgrade [--yes] [version] Update the sleev CLI and gateway together. --yes skips the confirmation for updates that break running sessions.

Harnesses

Guide: Harness Setup

  • Configure harness/provider connections.
  • List supported harnesses, detection status, and enabled providers.
  • sleev harness <harness> list List provider IDs and state for one harness.
  • sleev harness <harness> enable [provider] Route a provider through Sleev. Claude Code and Codex select their provider automatically.
  • sleev harness <harness> disable [provider|--all] Remove one or all Sleev-owned routes for a harness.

Account

  • Open the account menu, including browser, device-code, and browser-link sign-in options.
  • sleev auth login [--no-open|--headless|--device] Sign in through the browser by default. --headless and --device select device-code login for machines without a local browser. --no-open prints the browser-login link instead of opening it; this flow still uses a local callback. Choose at most one flag.
  • Show the current auth state.
  • sleev auth logout [--yes] Sign out and continue in Guest mode. --yes accepts the required guest terms when leaving an offline license.
  • Check the current account token.
  • sleev usage [--json] Show Premium request usage, attribution, and reset date for the active account or organization. --json prints it as JSON.
  • sleev referral [--json] Show your referral link and code, the referral offer, and the credit you have earned. Needs a signed-in Sleev account. --json prints it as JSON.

Organizations

  • Open the attribution menu. Choose attribution offers your personal account and available organizations. Organization usage still appears on your personal dashboard.
  • Show the current attribution.
  • Show the organizations you can attribute usage to.
  • sleev org set <org-slug> Attribute usage to an organization you belong to.
  • Attribute usage to your personal account.

Offline licenses

Guide: Offline Licensing

  • Open the offline license menu.
  • Create an offline activation request.
  • sleev auth license apply <slv_lic_...> Activate an offline license.
  • Create an offline license renewal request.
  • Show offline license status.
  • Remove the active offline license.

Gateway

Guide: Gateway bind address

  • Open the gateway menu.
  • Show gateway status.
  • sleev gateway start|restart|stop Manage the local gateway.
  • sleev gateway bind --host <host> [--port <port>] [--restart] Change the gateway listen address.
  • sleev gateway bind reset [--restart] Reset the listen address to local defaults.

Logs and feedback

  • sleev feedback [--logs [--yes]] Send feedback to Sleev from an interactive terminal. --logs uploads diagnostic logs for support instead; conversation data is redacted before logs are saved. --yes skips the confirmation.

Experimental

  • Open the experimental features menu.
  • sleev experimental cache-breakpoints [status|enable|disable] Smarter cache breakpoints for Claude models on non-Anthropic upstreams.
  • sleev experimental cache-warming [status|enable|disable] Keep idle Claude prompt caches warm (default in Claude Code).
  • sleev experimental opencode-claude-auth [status|enable|disable] OpenCode Claude Auth compatibility, for use with the opencode-claude-auth plugin.
  • sleev experimental request-logs [status|enable|disable] Show, enable, or disable local outgoing request logging. Run without a subcommand to toggle it, or use the experimental checkbox menu. Disabled by default.