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.jsonas 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
.smartcommitrcwhen available.
smartcommit providers model
- Updates the model for the currently active provider.
- Saves model selection in
.smartcommitrcunder provider-specific config. - OpenRouter supports any
provider/modelidentifier and defaults togoogle/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+Cduring provider flows exits cleanly withOperation cancelled by user.and code130.