跳转到主要内容
Continue is a VS Code and JetBrains extension for AI-assisted coding. Its current primary configuration format is config.yaml. This tutorial uses that format — not the older config.json.

Prerequisites

  • VS Code or JetBrains with the Continue extension installed
  • A Qhaigc API key — get one from the API Tokens page
  • Access to edit ~/.continue/config.yaml

Configuration Steps

1

Open config.yaml

Open Continue’s configuration file. You can access it by clicking the gear icon in the Continue panel, which opens ~/.continue/config.yaml in your editor.
2

Add a model entry under models

Add a new entry to the models list with the following fields:
models:
  - name: Qhaigc GPT-4o
    provider: openai
    model: gpt-4o
    apiBase: https://api.qhaigc.net/v1
    apiKey: sk-your-api-key-here
Replace sk-your-api-key-here with your actual Qhaigc API key. Change model to any model you want to use (e.g. claude-opus-4-20250514).
3

Configure tab autocomplete (optional)

To use Qhaigc for tab autocomplete as well, add a tabAutocompleteModel entry:
tabAutocompleteModel:
  name: Qhaigc Autocomplete
  provider: openai
  model: gpt-4o-mini
  apiBase: https://api.qhaigc.net/v1
  apiKey: sk-your-api-key-here
4

Save the file

Save config.yaml. Continue detects the change and reloads automatically — no restart required.
5

Select the model in the Continue panel

Open the Continue panel and select your new Qhaigc GPT-4o model from the model picker to start using it.

Full Config Example

models:
  - name: Qhaigc GPT-4o
    provider: openai
    model: gpt-4o
    apiBase: https://api.qhaigc.net/v1
    apiKey: sk-your-api-key-here

tabAutocompleteModel:
  name: Qhaigc Autocomplete
  provider: openai
  model: gpt-4o-mini
  apiBase: https://api.qhaigc.net/v1
  apiKey: sk-your-api-key-here

Verifying the Connection

Your setup is working when:
  • Continue loads the config without errors
  • Your Qhaigc model appears in the model picker in the Continue panel
  • Sending a message returns a response from Qhaigc

Frequently Asked Questions

Should I still use config.json? No. Continue’s current primary format is config.yaml. The config.json format is not the recommended path for new configurations. The connection failed — what should I check first? Verify that apiBase is https://api.qhaigc.net/v1, that apiKey is your correct Qhaigc key, and that the model value matches an available model. Also confirm that config.yaml is saved to the correct path (~/.continue/config.yaml).

References