Continue Integration Guide: Custom Provider Setup for VS Code

  • 发布时间
  • 语言en

A guide to integrating the Continue extension: add a custom Provider in config.yaml, configure the Base URL and sk- key to unify your usage of Claude, GPT, and Gemini.

1. What is Continue?

Continue is an open-source and free AI coding extension for VS Code that supports configuring multiple custom Providers. By pointing the Provider to our gateway, you can unify calls to Claude, GPT, and Gemini with centralized billing.

2. Preparation

  1. Log in to the AzzTimes console and create an sk-xxxxxx API Key (it will only be displayed once, please save it).
  2. Confirm the model slug you wish to use (e.g., claude-sonnet-5, gpt-5.4, gemini-3.7-flash).
  3. Confirm the gateway address: https://www.relay-api.com.

3. Configuring Continue

Edit ~/.continue/config.yaml (or .continue/config.yaml) and add a Provider for each model:

models:
  - title: Claude Sonnet 5
    provider: anthropic
    model: claude-sonnet-5
    apiBase: "https://www.relay-api.com"
    apiKey: sk-your-api-key
  - title: GPT-5.4
    provider: openai
    model: gpt-5.4
    apiBase: "https://www.relay-api.com/v1"
    apiKey: sk-your-api-key
  - title: Gemini 3.7 Flash
    provider: openai
    model: gemini-3.7-flash
    apiBase: "https://www.relay-api.com/v1beta"
    apiKey: sk-your-api-key

After saving, restart the extension and use /models to switch between models.

4. API Endpoint Reference

Model GroupGateway URL (apiBase)Protocol
Claude / Anthropichttps://www.relay-api.comAnthropic Messages
GPT / OpenAIhttps://www.relay-api.com/v1OpenAI Chat Completions
Geminihttps://www.relay-api.com/v1betaGoogle generateContent

5. Troubleshooting

IssueSolution
401 / 403Key is invalid, disabled, or has insufficient balance; verify the sk- key and recharge if necessary.
404 / Model unavailableModel name does not match the platform slug, or the model is not enabled; verify the model ID.

Security Tip: Do not commit your API key to public repositories; generation tasks consume tokens quickly, so keep an eye on your balance.