Continue is an open-source AI assistant for VS Code and JetBrains. Add a Yunshu Router model to its
config.yaml and Continue’s chat, edit and apply run on the model you choose, billed per token to
your prepaid balance.
What you need
- The Continue extension installed.
- A Yunshu Router account with credit on the balance.
- An API key from the console. Use a separate key for Continue.
Set it up
-
Create a key in the console (API keys → Create key) and copy it.
-
Open
~/.continue/config.yaml(in Continue: the config selector → gear icon, or open the file directly). -
Add a model entry. A complete file looks like this:
name: Yunshu Router version: 0.0.1 schema: v1 models: - name: Yunshu deepseek-v4-pro provider: openai model: deepseek-v4-pro apiBase: https://api.yunshurouter.com/v1 apiKey: YOUR_YUNSHU_KEY roles: [chat, edit, apply]Field Value Why provideropenaiContinue’s OpenAI provider works with any compatible API. modela model ID Exactly as on our models page. apiBasehttps:// api.yunshurouter.com/ v1 With /.v1 apiKeyyour key Sent as a Bearer token. roles[chat, edit, apply]What Continue may use the model for. -
Leave
useLegacyCompletionsEndpointoff. We serve/chat/completions, not the legacy/completions. -
Add more entries for more models; each appears in Continue’s model picker.
-
Save. Continue reloads the config.
Check it works
- Open the Continue chat, pick Yunshu deepseek-v4-pro, and ask a question about an open file.
- Select some code and use edit with a short instruction. The diff should apply.
- Open Usage in the console: the requests show under the Continue key.
Recommended models
| Model ID | Use it for |
|---|---|
deepseek-v4-pro |
Chat and edit, everyday |
glm-5.3 |
Quick edits and apply |
kimi-k3 |
Agent mode, long tasks |
Set a budget on the key
In the console, open API keys, pick the Continue key and set a monthly budget, a model
allow-list and a budget alert. A request that would pass the budget is refused with
402 budget_exceeded.
Known limitations
- Autocomplete. Tab autocomplete works best with fill-in-the-middle models on a completions endpoint.
- Embeddings and rerank. We don’t serve embeddings, so Continue’s codebase indexing needs a different embeddings provider.
- The key sits in the file.
Troubleshooting
| What you see | Likely cause | Fix |
|---|---|---|
401 |
Key mistyped | Paste it again in apiKey. |
404 on every request |
apiBase without /, or useLegacyCompletionsEndpoint: true |
Use / and remove the legacy flag. |
404 naming the model |
Model ID typo | Copy it from the models page. |
403 naming the model |
Not on the key’s allow-list | Add it to the key. |
402 |
Budget or balance used up | Raise the budget or top up. |
| Model missing from picker | YAML indentation error | Check the file; Continue shows config errors in its panel. |
| Edits don’t apply | Model returned a malformed diff | Use a suggested model for edit and apply. |