Key settings
Prerequisites
- The current version of the tool is installed
- A BetterToken API key: register and get one
- A Model ID from the model plaza
Additional requirements
- Install Node.js 20 or later when using the npm installation method
Install
Install Continue CLI
- macOS / Linux
- Windows PowerShell
- npm (cross-platform)
cn is available:
Manual setup
Configure API Key and Base URL
1
Set the API Key environment variable
- macOS / Linux
- Windows PowerShell
Run this in the same terminal that will start Continue CLI:
YOUR_API_KEY with your BetterToken API Key. Do not commit the key to Git or put it in a shared configuration file.2
Create config.yaml
Create or edit this file in your user directory:
- macOS / Linux:
~/.continue/config.yaml - Windows:
%USERPROFILE%\.continue\config.yaml
YOUR_MODEL_ID is only an example. Replace it with a current model ID from a supported provider from the model plaza.3
Start Continue CLI
- macOS / Linux
- Windows PowerShell
Change the model
After changingmodel in config.yaml, end the current cn session and start it again. the Model ID must be compatible with the configured endpoint.
To use a separate configuration for one project, save it in that project and provide its path explicitly:
Verify the connection
Send a short test prompt. If the tool returns a response without an authentication or Model ID error, the connection works. Fully restart the tool after changing its configuration.Switch models
Open the model selector or change theModel field in the configuration. Use the exact Model ID from the model plaza, then restart the current session.
Common errors
Setup FAQ
Which Base URL should Continue CLI use? Usehttps://www.bettertoken.ai/v1. This is BetterToken’s OpenAI-compatible Base URL.
Can I use a BetterToken API key?
Yes. provider: openai with useResponsesApi: false uses OpenAI-compatible Chat Completions. Get both the API Key and Model ID from BetterToken.
How do I view or switch saved configurations?
Enter /config inside a Continue CLI session to view and choose local configurations.
Advanced setup
Supported providers
Statuses apply to the BetterToken setup documented on this page.
What the setup methods mean
What the setup methods mean
- Manual setup: enter the API Key, Base URL, and Model.
- Not supported: no verified direct setup is currently available.
Related guides
- Aider custom model setup
- Codex CLI custom provider setup
- Cursor custom API, Base URL, and API Key setup
- Configure an OpenAI-compatible API in Cline
Technical details
Protocol, endpoint, and internal provider fields
Protocol, endpoint, and internal provider fields
This setup uses
provider: openai, apiBase: "https://www.bettertoken.ai/v1", and useResponsesApi: false. Continue calls Chat Completions, so do not append /chat/completions to apiBase.
