Authentication
SQLsaber supports multiple LLM providers.
Providers
Section titled “Providers”SQLsaber supports the following LLM providers:
- Anthropic - API key
- OpenAI - API key
- Google - API key
- Groq - API key
- Mistral - API key
- Cohere - API key
- Hugging Face - API key
Quick Setup
Section titled “Quick Setup”The fastest way to configure authentication:
saber auth setupThis interactive command will:
- Let you choose your AI provider
- Prompt you for an API key (or use an existing environment variable)
- Securely store your credentials
Anthropic
Section titled “Anthropic”SQLsaber uses Claude Sonnet 4 by default.
API Key
Section titled “API Key”- Get an API key from Anthropic Console
- Run the setup:
Terminal window saber auth setup - Choose “Anthropic” as your provider
- Enter your API key when prompted
Managing Authentication
Section titled “Managing Authentication”Check Authentication Status
Section titled “Check Authentication Status”See which providers are configured:
saber auth statusThis shows:
- Configured providers
- Whether a provider is configured via environment variable or keychain
Reset Authentication
Section titled “Reset Authentication”To remove stored credentials for a provider:
saber auth resetThis will:
- Ask you to select which provider to reset
- Remove the stored API key from your OS credentials store
Multiple Providers
Section titled “Multiple Providers”You can configure multiple providers and switch between them when selecting models. Each provider’s credentials are stored securely and independently.
Environment Variables
Section titled “Environment Variables”You can also use environment variables for setting API keys.
Example:
# Anthropicexport ANTHROPIC_API_KEY="your-api-key"
# OpenAIexport OPENAI_API_KEY="your-api-key"
# Googleexport GOOGLE_API_KEY="your-api-key"Environment variables take precedence over stored credentials.
Getting Help
Section titled “Getting Help”Check authentication status and configuration:
saber auth statussaber auth --helpWhat’s Next?
Section titled “What’s Next?”After setting up authentication: