Công cụ & IDE

Cấu hình Continue

Cấu hình Continue cho VS Code/JetBrains với cheapkeyai.shop, config.yaml, biến môi trường và autocomplete.

Continue đọc cấu hình từ thư mục `.continue`. Bạn có thể khai báo nhiều model cheapkeyai.shop cho chat, edit, apply và autocomplete.

Endpoint

Base URL
https://cheapkeyai.shop/v1

Thư mục cấu hình

Paths
macOS / Linux: ~/.continue
Windows: %USERPROFILE%\.continue

config.yaml tối giản

config.yaml
name: cheapkeyai.shop
version: 1.0.0
schema: v1

models:
  - name: GPT-5.2
    provider: openai
    model: gpt-5.2
    apiKey: sk-your-api-key
    apiBase: https://cheapkeyai.shop/v1
    roles:
      - chat
      - edit
      - apply
    capabilities:
      - tool_use
      - image_input

  - name: Claude Sonnet 4.5
    provider: anthropic
    model: claude-sonnet-4-5
    apiKey: sk-your-api-key
    apiBase: https://cheapkeyai.shop/v1
    roles:
      - chat
      - edit
      - apply

Dùng biến môi trường

Shell
export CHEAPKEYAI_API_KEY="sk-your-api-key"
config.yaml với env
models:
  - name: GPT-5.3 Codex
    provider: openai
    model: gpt-5.3-codex
    apiKey: ${{ env.CHEAPKEYAI_API_KEY }}
    apiBase: https://cheapkeyai.shop/v1
    roles: [chat, edit, apply]
    capabilities: [tool_use]

Autocomplete

Autocomplete nên dùng model có độ trễ thấp để không làm chậm editor. Nếu Continue hỗ trợ tab autocomplete riêng, khai báo model nhẹ hơn cho role autocomplete.

Khắc phục sự cố

  • Continue không nhận config mới: reload window hoặc restart IDE.
  • Lỗi xác thực: kiểm tra biến môi trường có tồn tại trong process của IDE.
  • Model không phản hồi: thử cURL trực tiếp tới `/v1/chat/completions` để tách lỗi IDE khỏi lỗi API.