Configuration and Providers
smartcommit init stores local preferences in .smartcommitrc.
Credentials are stored in OS-managed secure storage when available:
- macOS: Apple Keychain
- Windows: Credential Manager
- Linux: Secret Service
If secure storage is unavailable, Smartcommit falls back to a local auth.json file with strict permissions.
Manage providers with:
smartcommit providers login
smartcommit providers
smartcommit providers model
smartcommit providers logout
See smartcommit provider commands for detailed behavior of interactive/non-interactive flows and credential management rules.
Supported providers:
- OpenAI
- Anthropic
- xAI
- OpenRouter
- Codex CLI
Environment variables still work and take precedence:
export OPENAI_API_KEY=...
export ANTHROPIC_API_KEY=...
export XAI_API_KEY=...
export OPENROUTER_API_KEY=...
OpenRouter accepts any provider/model ID and defaults to
google/gemini-3.1-flash-lite.