Skip to main content
To connect Continue CLI to BetterToken, prepare an API key, enter the Base URL shown below, and choose a current Model ID from the model plaza.

Key settings

Prerequisites

Additional requirements

  • Install Node.js 20 or later when using the npm installation method

Install

Install Continue CLI

After installation, confirm that cn is available:

Manual setup

Configure API Key and Base URL

1

Set the API Key environment variable

Run this in the same terminal that will start Continue CLI:
Replace 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
Add this configuration:
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

You can enter your project directory first, then run the command. Once the configuration loads, enter a task directly in Continue CLI.

Change the model

After changing model 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 the Model 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? Use https://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.
  • Manual setup: enter the API Key, Base URL, and Model.
  • Not supported: no verified direct setup is currently available.

Technical details

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.