Skip to content

Integrations / Continue

Use Continue with any model

Add a Yunshu Router model to Continue's config.yaml for chat, edit and apply. Exact YAML, checks, autocomplete limits and fixes.

Get an API key

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

  1. Create a key in the console (API keys → Create key) and copy it.

  2. Open ~/.continue/config.yaml (in Continue: the config selector → gear icon, or open the file directly).

  3. 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
    provider openai Continue’s OpenAI provider works with any compatible API.
    model a model ID Exactly as on our models page.
    apiBase https://api.yunshurouter.com/v1 With /v1.
    apiKey your key Sent as a Bearer token.
    roles [chat, edit, apply] What Continue may use the model for.
  4. Leave useLegacyCompletionsEndpoint off. We serve /chat/completions, not the legacy /completions.

  5. Add more entries for more models; each appears in Continue’s model picker.

  6. Save. Continue reloads the config.

Check it works

  1. Open the Continue chat, pick Yunshu deepseek-v4-pro, and ask a question about an open file.
  2. Select some code and use edit with a short instruction. The diff should apply.
  3. Open Usage in the console: the requests show under the Continue key.
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 /v1, or useLegacyCompletionsEndpoint: true Use /v1 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.

Questions

Should I use provider: openai even for non-OpenAI models?

Yes. It is Continue’s provider for any OpenAI-compatible API.

Can I use the old config.json?

Continue marks JSON config as deprecated. Use config.yaml.