Skip to content

Integrating Continue ​

An open-source AI coding assistant for VS Code and JetBrains, flexibly connecting to multiple model providers through a config file.

Continue is an open-source AI coding assistant extension for VS Code and JetBrains IDEs, offering code completion, inline editing, and chat — with support for multiple models at once.

Prerequisites ​

  1. Sign up at the Calgine Tokens Console.
  2. Go to Workspace → API Tokens, click "Add Token", and copy the API Key after creation (starts with sk-).
SettingValue
Base URLhttps://api.calgine.com.cn/v1
API KeyThe API token you created in the console

Installation ​

Configuration Steps ​

Continue is configured via the ~/.continue/config.json file. After installation, press Cmd/Ctrl + Shift + P and search for Continue: Open config.json to open it.

Add the following to the models array in config.json:

json
{
  "models": [
    {
      "title": "GPT-4o",
      "provider": "openai",
      "model": "gpt-4o",
      "apiKey": "sk-your-token",
      "apiBase": "https://api.calgine.com.cn/v1"
    },
    {
      "title": "DeepSeek R1",
      "provider": "openai",
      "model": "deepseek-r1",
      "apiKey": "sk-your-token",
      "apiBase": "https://api.calgine.com.cn/v1"
    }
  ]
}

Anthropic-Compatible Configuration ​

json
{
  "models": [
    {
      "title": "Claude Opus",
      "provider": "anthropic",
      "model": "claude-opus-4-5-20251101",
      "apiKey": "sk-your-token",
      "apiBase": "https://api.calgine.com.cn/anthropic"
    }
  ]
}

Configuring Multiple Models ​

json
{
  "models": [
    {
      "title": "GPT-4o (General)",
      "provider": "openai",
      "model": "gpt-4o",
      "apiKey": "sk-your-token",
      "apiBase": "https://api.calgine.com.cn/v1"
    },
    {
      "title": "Claude Opus (Complex Tasks)",
      "provider": "anthropic",
      "model": "claude-opus-4-5-20251101",
      "apiKey": "sk-your-token",
      "apiBase": "https://api.calgine.com.cn/anthropic"
    },
    {
      "title": "DeepSeek R1 (Reasoning)",
      "provider": "openai",
      "model": "deepseek-r1",
      "apiKey": "sk-your-token",
      "apiBase": "https://api.calgine.com.cn/v1"
    }
  ]
}

With multiple models configured, switch between them anytime from the dropdown in the top-left of the Continue panel.

Verify the Setup ​

After saving config.json, press Cmd/Ctrl + L to open the chat panel, select the model you just configured, and send a message. A normal response means the setup is complete.

Key Features ​

FeatureShortcutDescription
ChatCmd/Ctrl + LOpen the AI chat panel
Inline editCmd/Ctrl + IEdit selected code directly
Code completionAutomaticReal-time completion in the editor
Add to contextCmd/Ctrl + Shift + LAdd selected code to the chat context

Code Autocomplete Configuration ​

Add a tabAutocompleteModel entry in config.json (a fast, lightweight model is recommended):

json
{
  "tabAutocompleteModel": {
    "title": "Autocomplete",
    "provider": "openai",
    "model": "gpt-4o-mini",
    "apiKey": "sk-your-token",
    "apiBase": "https://api.calgine.com.cn/v1"
  }
}

Next Steps ​