Continue.dev Custom API Setup (Nov 2026): config.yaml Schema, apiBase for Anthropic and OpenAI, and Models per Role
To point Continue at your own API, add models to ~/.continue/config.yaml with provider: anthropic and apiBase: https://api.qcode.cc/api/v1 for Claude, and provider: openai with apiBase: https://api.qcode.cc/openai/v1 for GPT-6.2 and Chinese models, then give each model roles such as chat, edit, apply or autocomplete. Note the /v1 on the Anthropic URL: Continue appends only messages, unlike Cline or Roo Code, which want .../api. As of 2026-11-25, Continue's final release is 2.0.0 (VS Code build tagged 2026-06-19) and the repository is read-only, but local YAML configs with your own keys keep working. QCode is an independent third-party API service and is not affiliated with Anthropic, OpenAI or the Continue team.
Updated 2026-11-26
Key facts
- Config file:
~/.continue/config.yamlon macOS/Linux,%USERPROFILE%\.continue\config.yamlon Windows.config.jsonis deprecated. - Required top-level keys:
name,version,schema(v1). Each model needsname,providerandmodel. - Roles:
chat,autocomplete,embed,rerank,edit,apply,summarize. If you omitroles, a model getschat,edit,applyandsummarize. - apiBase: Anthropic provider
https://api.qcode.cc/api/v1; OpenAI providerhttps://api.qcode.cc/openai/v1. Continue adds a trailing slash if you leave it off. - Protocol rule on QCode: Claude only on the Anthropic path, GPT only on the OpenAI path, Chinese models on either.
- Project status: the maintainers say Continue is no longer actively maintained. The 2.0.0 release removed anonymous telemetry and sign-in, so it runs fully on a local config. For JetBrains, the README now recommends the Continue CLI over the plugin.
What Continue is in 2026
Continue is an open-source (Apache-2.0) AI coding assistant for VS Code and JetBrains, plus a terminal CLI called cn. It offers chat and an agent mode with tools, inline edits, an "apply" step that writes suggested code into files, and tab autocomplete. Its main strength is that every one of these jobs can use a different model, chosen by role in one YAML file.
The project changed course in 2026. The maintainers confirmed they would stop active maintenance after a final release, the README marks the repository read-only, and that final 2.0.0 build dropped telemetry and authentication. In practice this makes Continue a self-contained, offline-config tool: no account, no hub, just your config.yaml and your keys. What you lose is future fixes and new provider features. If you need an actively developed VS Code agent, see Roo Code (also archived) or Cline. If you already like Continue's role-based setup, the steps below work today.
Prerequisites
| Item | Requirement |
|---|---|
| IDE | VS Code with Continue 2.0.0 from whichever marketplace still lists it for your region, or JetBrains with the Continue plugin where it is still offered, or the cn CLI (same config.yaml) |
| API key | A QCode key starting with cr_; one key covers both protocols |
| Endpoints | Anthropic: https://api.qcode.cc/api/v1 (Continue form); OpenAI: https://api.qcode.cc/openai/v1. asia.qcode.cc and us.qcode.cc use the same paths |
| Model IDs | From /models, for example claude-sonnet-5-5, claude-opus-5-5, claude-haiku-5-5, gpt-6.2-sol, glm-5.3, deepseek-v4.1-flash, qwen3.8-max |
Step 1: Open the local config.yaml
Open the Continue sidebar (Ctrl/Cmd + L in VS Code, Ctrl/Cmd + J in JetBrains). In the configs dropdown at the top right of the chat input, click the gear next to Local Config. The file opens in the editor. If it doesn't exist, Continue creates it with defaults the first time. Saving the file reloads the config.
Step 2: Write the config
This config gives Claude Sonnet 5.5 the main chat and edit roles, keeps Opus 5.5 and GPT-6.2 Sol one click away in the model dropdown, and uses cheap models for apply and autocomplete.
name: QCode
version: 1.0.0
schema: v1
models:
# Claude: Anthropic protocol. Note the /v1 at the end.
- name: Claude Sonnet 5.5 (QCode)
provider: anthropic
model: claude-sonnet-5-5
apiBase: https://api.qcode.cc/api/v1
apiKey: ${{ secrets.QCODE_API_KEY }}
roles: [chat, edit]
capabilities: [tool_use, image_input]
defaultCompletionOptions:
maxTokens: 8192
promptCaching: true
- name: Claude Opus 5.5 (QCode)
provider: anthropic
model: claude-opus-5-5
apiBase: https://api.qcode.cc/api/v1
apiKey: ${{ secrets.QCODE_API_KEY }}
roles: [chat]
capabilities: [tool_use, image_input]
defaultCompletionOptions:
promptCaching: true
# GPT and Chinese models: OpenAI protocol.
- name: GPT-6.2 Sol (QCode)
provider: openai
model: gpt-6.2-sol
apiBase: https://api.qcode.cc/openai/v1
apiKey: ${{ secrets.QCODE_API_KEY }}
roles: [chat, edit]
capabilities: [tool_use]
- name: Claude Haiku 5.5 for apply (QCode)
provider: anthropic
model: claude-haiku-5-5
apiBase: https://api.qcode.cc/api/v1
apiKey: ${{ secrets.QCODE_API_KEY }}
roles: [apply]
- name: DeepSeek V4.1 Flash (QCode)
provider: openai
model: deepseek-v4.1-flash
apiBase: https://api.qcode.cc/openai/v1
apiKey: ${{ secrets.QCODE_API_KEY }}
roles: [chat, autocomplete]
Field notes:
apiBasefor Anthropic. Continue's Anthropic provider defaults tohttps://api.anthropic.com/v1/and posts tomessagesrelative to it, so the QCode value ishttps://api.qcode.cc/api/v1; withhttps://api.qcode.cc/apithe request goes to/api/messagesand fails. This follows from Continue's source; if a build behaves differently, check the request URL in its logs and adjust the base.apiBasefor OpenAI. The OpenAI provider appendschat/completions, sohttps://api.qcode.cc/openai/v1is correct.capabilities. Addtool_useso agent mode treats the model as tool-capable even if Continue doesn't recognise a new model name. Addimage_inputonly for models that accept images (all Claude models on QCode do).promptCaching: true. Continue's Anthropic docs show this option; it adds cache markers to the conversation, which cuts the cost of long chats.maxTokens,contextLength,temperaturelive underdefaultCompletionOptions, not directly on the model.- Reasoning. Leave
reasoningandreasoningBudgetTokensunset for Opus 5.5. Per Anthropic, Opus 5.5 thinking is adaptive and a manualbudget_tokensreturns HTTP 400.
Step 3: Store the key
The ${{ secrets.QCODE_API_KEY }} syntax keeps the key out of the file. Vercel's Continue CLI guide says the CLI resolves it from an environment variable of the same name:
# macOS / Linux (add to ~/.zshrc or ~/.bashrc to persist)
export QCODE_API_KEY="cr_your_key"
# Windows PowerShell: current session
$env:QCODE_API_KEY = "cr_your_key"
# persist for new terminals and apps (reopen VS Code afterwards)
setx QCODE_API_KEY "cr_your_key"
How the IDE extension resolves that name can differ from the CLI, so set the variable before starting the editor: the extension only sees variables that existed at launch, so restart VS Code or JetBrains after setx or editing your shell profile. If the key still doesn't resolve, put it directly in apiKey: in the local file to isolate the problem; never commit that file to a repository.
Step 4: Choose models per role
| Role | What it does | Good QCode choice | Why |
|---|---|---|---|
chat (incl. agent) |
Conversation and tool use | claude-sonnet-5-5, claude-opus-5-5, gpt-6.2-sol |
Needs strong reasoning and reliable tool calls |
edit |
Inline rewrite of selected code | claude-sonnet-5-5 or gpt-6.2-sol |
Quality matters; requests are short |
apply |
Writes a suggested block into the file | claude-haiku-5-5 or deepseek-v4.1-flash |
Mechanical; speed and price matter more |
autocomplete |
Tab completions on every pause | A fast, cheap model; test first | Fires very often, so latency and cost add up |
embed, rerank |
Codebase indexing | Leave unassigned or use a local model | Check /models for what QCode currently lists, and test an embedding setup with a small request first |
summarize |
Not currently used, per Continue's reference | — | — |
Prices for guidance, from QCode's /models on 2026-11-25 (per million input/output tokens, official price ×1.0 for Anthropic and OpenAI models): claude-sonnet-5-5 $2 / $10, claude-opus-5-5 $4 / $20, gpt-6.2-sol $2 / $10, claude-haiku-5-5 $0.10 / $0.50 for prompts up to 100K tokens and $0.50 / $2.50 above that. Chinese model rates are on the same page.
Step 5: Using the Continue CLI ( cn ) and JetBrains
The CLI reads the same ~/.continue/config.yaml and starts with the first model in the list, so put your preferred model first; switch with /model. Vercel's guide notes that a first interactive run of cn may start onboarding and rewrite the models, and that creating the marker file ~/.continue/.onboarding_complete prevents it. For JetBrains users, the Continue README now recommends the CLI instead of the plugin; the plugin reads the same config if you keep using it.
Step 6: Verify
- Pick Claude Sonnet 5.5 (QCode) in the model dropdown and ask a short question. A streamed answer means chat works.
- Switch to agent mode and ask it to read a file. If it calls the file tool,
tool_useis working. - Select a few lines, use the edit shortcut, and check that the edit role answers.
- If something fails, test the endpoint outside the IDE:
curl https://api.qcode.cc/api/v1/messages \
-H "x-api-key: $QCODE_API_KEY" \
-H "anthropic-version: 2023-06-01" \
-H "content-type: application/json" \
-d '{"model":"claude-sonnet-5-5","max_tokens":32,"messages":[{"role":"user","content":"Reply with pong"}]}'
This URL is exactly what Continue calls (apiBase + messages). In Windows PowerShell use curl.exe or Invoke-RestMethod, because curl there may be an alias for Invoke-WebRequest.
Step 7 (optional): Switch to the Asia or North America host
asia.qcode.cc and us.qcode.cc use exactly the same paths as the main domain, so you only replace the domain in apiBase; /api/v1 and /openai/v1 stay unchanged. Copy a model, give it a different name and put both entries in the dropdown to compare:
- name: Claude Sonnet 5.5 (QCode Asia)
provider: anthropic
model: claude-sonnet-5-5
apiBase: https://asia.qcode.cc/api/v1
apiKey: ${{ secrets.QCODE_API_KEY }}
roles: [chat, edit]
capabilities: [tool_use, image_input]
The same cr_ key works on every host, so there is nothing else to store. When comparing, ask the same question through both entries and judge by what you see on your own network; once you pick one, delete the other entry to keep the dropdown short.
Common errors and fixes
| Symptom | Likely cause | Fix |
|---|---|---|
| 404 on every Claude request | apiBase: https://api.qcode.cc/api (missing /v1) |
Use https://api.qcode.cc/api/v1 |
| 404 on GPT requests | /v1 missing from the OpenAI apiBase |
Use https://api.qcode.cc/openai/v1 |
| 401, sometimes with a hint to "add /v1 to apiBase" | Wrong or empty key, or the secret didn't resolve | Check the key; restart the IDE after setting the variable; try an inline key to isolate |
| Model "not available on this endpoint" | Claude model under provider: openai, or GPT under anthropic |
Claude → anthropic; GPT → openai; Chinese models → either |
| HTTP 400 with Opus 5.5 | reasoningBudgetTokens or reasoning set |
Remove both; Opus 5.5 thinks adaptively |
| Agent mode answers but never uses tools | Model not marked as tool-capable | Add capabilities: [tool_use] |
Autocomplete silent or 404 on /completions or /fim/completions |
Continue picked a completion route that may not be served on this endpoint | Assign autocomplete to another model, a local model, or turn autocomplete off |
| Config changes ignored | YAML indentation error or wrong file | Fix indentation (spaces, not tabs); edit the file opened via Local Config |
FAQ
Is Continue.dev still maintained?
Not actively. The maintainers said the project would no longer be actively maintained after a final 2.0.0 release, and the README marks the repository read-only. Local configs with your own keys keep working, but don't expect fixes or new providers.
What apiBase do I use for Claude in Continue?
https://api.qcode.cc/api/v1 with provider: anthropic. Continue appends messages to the base, so the /v1 must be there. This differs from tools like Cline or Roo Code, which take https://api.qcode.cc/api.
Can I use Claude through provider: openai in Continue?
Not on QCode. Claude models are served only on the Anthropic protocol. Use provider: anthropic for Claude and provider: openai for GPT and Chinese models.
Which model should I use for Continue autocomplete?
A fast, cheap model, because autocomplete fires on every typing pause. Test your choice first; if the endpoint doesn't serve the completion route Continue picks, use a local model for autocomplete and keep QCode for chat, edit and apply.
Where is config.yaml on Windows?
%USERPROFILE%\.continue\config.yaml. On macOS and Linux it is ~/.continue/config.yaml. Open it from the configs dropdown via the gear next to Local Config.
Do I need a Continue account or Hub to use my own API?
No. The final 2.0.0 release removed authentication, and a local config.yaml with your own apiBase and key is all you need.
Can GLM, Kimi, DeepSeek or Qwen be used in Continue?
Yes, with provider: openai, apiBase: https://api.qcode.cc/openai/v1 and the model ID, such as glm-5.3, kimi-k3.1-pro, deepseek-v4.1-flash or qwen3.8-max. Add capabilities: [tool_use] if you want them in agent mode and test tool calls first.
Does prompt caching work with Continue?
For Claude, set promptCaching: true under defaultCompletionOptions. Cached reads cost 5% of the input price for Sonnet 5.5 and Opus 5.5 (10% for Haiku 5.5), per the rates on /models as of 2026-11-26, so long chats get cheaper.
Try it with a Starter plan
The QCode Starter plan is a low-cost way to test a role-based Continue setup: a daily dollar quota deducted at the official API price ×1.0 for Claude and GPT (Chinese models at the rate shown on /models) and one cr_ key for Claude, GPT and Chinese models across both protocols. Personal plans start from $9 per 30 days; see /pricing, and check /models for live per-model rates.
Sources: Continue docs (config.yaml reference, configuration guide, Anthropic provider page); Continue GitHub repository README and issue #12629; Continue source files core/llm/llms/Anthropic.ts, core/llm/llms/OpenAI.ts and core/llm/index.ts; Vercel AI Gateway guide for Continue CLI; QCode /models. All read 2026-11-25.