Connecting to External LLM Providers
ByteRover CLI supports connecting to external LLM providers, giving you access to hundreds of models beyond the built-in ByteRover LLM. Currently supports OpenRouter with 200+ models, with more providers coming soon.This feature is in BETA.
API keys are stored securely in your system keychain.
Supported Providers
| Provider | Description | API Key | Status |
|---|---|---|---|
| ByteRover | Internal ByteRover LLM (default) | No | Available |
| OpenRouter | Access 200+ models from multiple providers | Yes | Available |
| Anthropic | Direct Claude API access | Yes | Coming Soon |
| OpenAI | Direct GPT API access | Yes | Coming Soon |
| Gemini models | Yes | Coming Soon | |
| Groq | Fast inference models | Yes | Coming Soon |
Quick Start
Connect to OpenRouter and select a model in under a minute:Enter your API key
Get your key at openrouter.ai/keys and paste it when prompted.

The /provider Command
Connect to or switch between LLM providers.
Aliases: /providers, /connect
Behavior
- Displays a selection prompt with all available providers
- Shows connection status indicators:
(Current)- The active provider[Connected]- Previously connected, API key stored
- If selecting an unconnected provider that requires an API key:
- Prompts for the API key
- Validates the key against the provider’s API
- Stores the key securely in your system keychain
- Sets the selected provider as active
Examples
The /model Command
Browse and select models from your active provider.
Aliases: /models
Requires an external provider to be connected.
If using ByteRover (default), this command will prompt you to switch to an external provider.
Model Information Displayed
- Model name and provider
- Pricing (input/output cost per million tokens)
- Context window size (e.g., “128K ctx”, “1.0M ctx”)
- Status indicators:
(Current)- Currently selected model★- Favorited model[Free]- Free to use
Sorting Order
- Favorite models (starred)
- Recently used models
- Alphabetically by provider, then model name
Favorites and Recent Models
ByteRover tracks your model preferences to make selection faster.Favorite Models
Mark models as favorites to pin them at the top of the selection list. Favorites are indicated with a ★ symbol.Recent Models
Your 10 most recently used models appear after favorites in the selection list, making it easy to switch between frequently used models.Configuration
Storage Locations
| Data | Location | Purpose |
|---|---|---|
| Provider config | ~/.config/brv/providers.json | Active provider, favorites, recent models |
| API keys | System keychain | Secure credential storage |
API Key Security
API keys are stored in your operating system’s secure keychain:macOS
Keychain Access
Windows
Credential Manager
Linux
Secret Service (or encrypted file)
Configuration Structure
The provider configuration file stores non-sensitive preferences:OpenRouter Setup
OpenRouter provides unified access to 200+ models from multiple providers through a single API key.Getting an API Key
- Visit openrouter.ai/keys
- Sign up or log in
- Create a new API key
- Copy the key (starts with
sk-or-...)
Popular Models
| Model | Provider | Best For | Pricing (Input/Output) |
|---|---|---|---|
anthropic/claude-3.5-sonnet | Anthropic | Coding, reasoning | 15.00 per M tokens |
anthropic/claude-3.5-haiku | Anthropic | Fast responses | 5.00 per M tokens |
openai/gpt-4o | OpenAI | Multimodal tasks | 10.00 per M tokens |
google/gemini-2.0-flash | Speed + quality balance | 0.40 per M tokens | |
meta-llama/llama-3.1-70b | Meta | Open-source alternative | 0.40 per M tokens |
Troubleshooting
Why does my API key validation fail?
Why does my API key validation fail?
Common causes:
- API key is expired or revoked
- Insufficient credits in your provider account
- Network connectivity issues
Why do I see 'No API key found' when running /model?
Why do I see 'No API key found' when running /model?
Cause: The active provider requires an API key that hasn’t been configured.Solution: Run
/provider to connect the provider with your API key first.How do I switch back to ByteRover default?
How do I switch back to ByteRover default?
Run
/provider and select ByteRover from the list.
No API key is required for the built-in provider.Where can I find my stored API key?
Where can I find my stored API key?
API keys are stored in your system keychain for security:
- macOS: Keychain Access app (search for “byterover-cli-providers”)
- Windows: Credential Manager
- Linux: Your secret service manager

