Skip to main content

smartcommit provider commands

Use these commands to authenticate providers, switch active credentials, update the active model, and remove stored credentials.

smartcommit providers login
smartcommit providers
smartcommit providers model
smartcommit providers logout

smartcommit providers login

  • Interactive mode lists only providers that are not already configured.
  • Non-interactive mode auto-selects the first provider that is not configured.
  • Stores credentials in OS secure storage when available, or auth.json as fallback.
  • If all providers are already configured, it exits with: All providers are already configured. Use smartcommit providers or smartcommit providers logout.

smartcommit providers

  • Lists configured providers and activates the selected one.
  • When only one provider is configured, it activates that provider directly.
  • Restores provider-specific model selection from .smartcommitrc when available.

smartcommit providers model

  • Updates the model for the currently active provider.
  • Saves model selection in .smartcommitrc under provider-specific config.
  • OpenRouter supports any provider/model identifier and defaults to google/gemini-3.1-flash-lite.

smartcommit providers logout

  • Lists configured providers and removes the selected provider credential.
  • Removes from OS secure storage when available, or fallback auth.json.
  • Run multiple times to remove more than one provider.

Credential and cancellation rules

  • Environment variables take precedence over stored credentials.
  • API keys are never written to .smartcommitrc.
  • Ctrl+C during provider flows exits cleanly with Operation cancelled by user. and code 130.