- API key (most providers)
- OAuth login (Claude Code and Codex)
Supported Providers
Reliant supports the following AI model providers:Anthropic (Claude)
Available Models: Claude 4.5 Sonnet, Claude 4.6 Opus, Claude 4.5 Haiku Configuration:.reliant.json:
- Sign up at console.anthropic.com
OpenAI
Available Models: GPT-5.3 Codex (flagship), GPT-5.2 Codex, GPT-5.2, GPT-5 Mini, GPT-5.2 Pro Configuration:.reliant.json:
- Sign up at platform.openai.com
- Navigate to API Keys section
- Create new secret key
Claude Code (OAuth)
Available Models: Claude 4.5 Sonnet, Claude 4.6 Opus, Claude 4.5 Haiku Authentication Method: OAuth (no API key required — uses your Claude account) How to Connect:- Open Settings → AI
- Select Claude Code
- Click Login with Claude Code
- Complete sign-in in your browser
- Return to Reliant and verify the success state
If you’re using the web UI (not the desktop app), see OAuth in Web Mode below.
Codex (OAuth)
Available Models: GPT-5.3 Codex, GPT-5.3 Codex Spark, GPT-5.2 Codex Authentication Method: OAuth (no API key required) How to Connect:- Open Settings → AI
- Select Codex
- Click Login with Codex
- Complete sign-in in your browser
- Return to Reliant and verify the success state
If you’re using the web UI (not the desktop app), see OAuth in Web Mode below.
Google Gemini
Available Models: Gemini 3.1 Pro, Gemini 3.1 Pro (Custom Tools), Gemini 3 Pro, Gemini 3 Flash, Gemini 2.5 Pro, Gemini 2.5 Flash Configuration:.reliant.json:
- Visit ai.google.dev
- Sign in with Google account
- Create API key in API Keys section
OpenRouter
Configuration:.reliant.json:
- Sign up at openrouter.ai
- Navigate to Keys section
- Create new API key
Configuration Priority
Reliant checks for configuration in this order:- Environment Variables (highest priority)
- Configuration File (
.reliant.json) - Settings UI (stored in config file)
OAuth in Web Mode
Claude Code and Codex use OAuth flows that require a localhost callback — the provider redirects your browser tolocalhost after you sign in. In the desktop app (Electron), this is handled automatically.
If you’re using Reliant through a web browser (e.g. accessing a remote Reliant server), you need to run a small helper on your local machine first:
localhost:19284 that receives the OAuth callback. It does not store any credentials — it only passes the authorization code back to your browser, and the Reliant server handles the rest.
Steps for web mode:
- Run
reliant auth servein your terminal (keep it running) - Open Settings → AI in the web UI
- Select Claude Code or Codex
- Click the Login button (it appears once the helper is detected)
- Complete sign-in in your browser
- You can stop
reliant auth serveafter connecting
You can customize the port with
reliant auth serve --port 9999.Verifying Provider Authentication
After configuring a provider:- Open Reliant Settings
- Navigate to the AI Providers section
- Find your configured provider
- Verify connection status:
- API key providers: click Test Connection or Validate
- Codex provider: use Login with Codex and confirm success state
- Verify you see a success message
Common Issues
”Invalid API Key” Error
Solutions:- Verify key is copied correctly with no extra spaces
- Check key hasn’t expired (regenerate if needed)
- Ensure you’re using the correct provider (for example, an Anthropic key for Claude models)
“Rate Limit Exceeded”
Solutions:- Wait before sending more requests
- Check your provider’s rate limits for your tier
- Consider upgrading your plan
- Use a different API key or provider temporarily
Provider Not Showing in UI
Solutions:- Restart Reliant after configuration changes
- Check configuration file syntax (JSON must be valid)
- Ensure provider isn’t marked as
"disabled": true
Connection Timeout
Solutions:- Verify internet connection
- Check firewall settings
- For local models, ensure server is running
- Disable VPN temporarily to test
Security Best Practices
Never Commit API Keys
Add to.gitignore:
Use Environment Variables for CI/CD
In CI/CD pipelines, set API keys as secret environment variables:Rotate Keys Regularly
- Rotate API keys every 90 days
- Immediately rotate if a key may have been exposed
- Use different keys for development and production
Limit Key Permissions
Where possible:- Use read-only or limited-scope keys
- Create separate keys for different projects
- Monitor key usage in provider dashboards
Rate Limits and Billing
Different provider tiers have different limits. Refer to your provider’s documentation for the most up-to-date information on rate limits and pricing:- Anthropic: Rate Limits | Pricing
- OpenAI: Rate Limits | Pricing
- Google Gemini: Pricing and Limits
- OpenRouter: Models and Pricing
Related Topics
- Presets - Configure which models workflows use
- MCP Servers - Extend capabilities with external tools
- Troubleshooting - Solve common API key issues