2027 setup guide · Coding assistants

Continue with an OpenAI-compatible API

Continue is configured by role, not by model. A compatible endpoint only works well when chat, edit, apply and autocomplete each get a model that can do the job.

Abstract illustration of a code assistant with several model roles
Illustration: one assistant, several model roles. Plugsky Editorial Team.

Continue is an open-source AI code assistant that runs inside VS Code and JetBrains IDEs. It has separate surfaces for chat, inline edit, apply, autocomplete and embeddings, and each surface can use a different model. That design is useful: a large model can handle a refactor while a small, fast model handles tab completion. It also means an OpenAI-compatible endpoint has to be tested role by role, not with a single chat prompt.

The configuration lives in config.yaml. Continue's OpenAI provider accepts an apiBase, so the same block that points at OpenAI can point at Plugsky or a self-hosted gateway. The details that decide whether it works are the role list, the context window and two endpoint flags that control whether Continue calls /chat/completions or /responses.

Continue model roles and what they need, checked 23 November 2026
RoleWhat it powersWhat to verify
chatConversational help and agent-style workTool calling if the workflow uses tools; enough context for the repository slice.
editInline code changesInstruction following on diffs; output cap large enough for the edited block.
applyApplying suggested edits accuratelyThe model's apply behaviour; test on multi-file changes.
autocompleteTab suggestions while typingLatency first; a large model is usually the wrong choice.
embedCodebase and docs indexingAn embedding model, not a chat model; vector dimension must match the index.
rerankOrdering retrieved contextA rerank-capable model or endpoint; optional for small codebases.

The config.yaml pattern

A minimal Continue configuration names the provider as openai, sets the model, the apiBase and the API key, and lists the roles the model should serve. The apiBase is the root of the compatible API, for example https://api.plugsky.com/v1. Continue's own documentation shows the same shape with a local apiBase such as http://localhost:8000/v1, which is the clearest signal that the provider is a generic OpenAI client rather than an OpenAI-only integration.

Keep the key out of the file when you can. Continue supports secrets and environment references, and a key committed to a dotfiles repository is a key you will have to rotate. For a team, issue one Plugsky key per developer so usage and revocation stay attributable.

  • provider: openai
  • model: a published model ID
  • apiBase: https://api.plugsky.com/v1
  • apiKey: a secret reference, not plain text in a shared repository
  • roles: the surfaces this model should serve

Give each role a model, not a prayer

A common Continue misconfiguration is pointing every role at the largest chat model. Autocomplete then feels slow, and the cost of every keystroke suggestion looks like a chat bill. Continue's documentation separates the roles for a reason: chat and edit reward reasoning, autocomplete rewards latency, and embeddings are a different model class entirely.

Start with two models. Use a capable chat model for chat, edit and apply, and a small fast model for autocomplete. Add an embedding model only when you use codebase or docs context. If you use reranking, test it against your own retrieval set; a reranker that is weak on code can make answers worse while adding latency.

The apply role deserves its own test. Applying a suggested edit is a different task from writing one, and a model that chats well can still produce patches that do not apply cleanly.

Keep the model list short at first. Every additional model is another set of limits, prices and failure modes to document, and developers will not remember which model is assigned to which role. Two chat-class models and one autocomplete model is a reasonable start; add a specialist only when a measured task fails.

Two flags that change the endpoint

Continue's OpenAI provider uses the /responses endpoint by default for o-series and gpt-5 models. A compatible gateway may implement only /chat/completions. The documentation provides useResponsesApi: false to force chat completions, which is the first flag to try when a reasoning model returns an endpoint error through a proxy.

The second flag is useLegacyCompletionsEndpoint: true. It forces the older /completions endpoint instead of /chat/completions. Most modern chat models do not need it, but some local or specialised servers expose only the legacy path. Setting it on a server that does not implement /completions produces the opposite failure, so change one flag at a time.

These flags are easy to miss because the default path works with OpenAI and fails only with a compatible endpoint. If chat works but edit or autocomplete does not, compare the endpoint each role is calling before you blame the model.

What to check before rollout

Test the four surfaces separately: a chat question, an inline edit, an apply on a multi-file change, and ten minutes of typing with autocomplete enabled. Measure autocomplete latency rather than judging it by feel; a 300 ms suggestion that arrives after you have typed the next line is useless.

Check the context window against a real repository slice. Continue assembles context from open files, retrieval and conversation, and a model with a smaller window than you configured will fail at the worst moment. Check embeddings by reindexing a small repository and asking a question whose answer exists only in a file you did not open.

Finally, reload the config after every change. Continue's docs treat reload as part of the setup flow, and a stale config explains many 'the model changed but nothing happened' reports.

Write the result down. Record the endpoint, model IDs, context windows and flags in the repository's developer setup notes, not in a chat thread. The next person to change the config will need to know which flag was deliberate.

When a competitor wins

Continue's native Anthropic, OpenAI and Gemini providers win when you want the default path and no gateway in the middle. Ollama wins when code cannot leave the machine and the team accepts a smaller model. OpenRouter wins when trying many models quickly matters more than a single contract.

Plugsky wins when Continue is one of several tools that must share one endpoint, one bill and one audit trail. The flat monthly plans make autocomplete-heavy use easier to budget than per-token billing, and the private deployment path covers teams that cannot send code to a public API. The limit is model choice: 39 public model IDs, so confirm the chat, autocomplete and embedding models you need are all available before standardising.

Verdict

Configure Continue with the OpenAI provider, an explicit apiBase, one model per role and a secret reference for the key. Set useResponsesApi to false if your gateway does not implement /responses, and test apply and autocomplete separately from chat.

Choose Plugsky when you want one OpenAI-compatible endpoint for chat, edit and autocomplete under a flat plan, with per-key access and a private deployment option. Choose a native provider or a local runtime when you need zero setup or code that never leaves the laptop.

Frequently asked questions

Does Continue support OpenAI-compatible APIs?

Yes. Continue's OpenAI provider accepts an apiBase, and its documentation lists compatible servers such as vLLM, LiteLLM, LocalAI and llama-cpp-python alongside the hosted OpenAI API.

Why does Continue call /responses instead of /chat/completions?

For o-series and gpt-5 models, Continue defaults to the Responses API. Set useResponsesApi to false to force chat completions on a gateway that does not implement /responses.

Can one model handle chat and autocomplete?

It can, but the trade-off is latency. Autocomplete benefits from a small, fast model, while chat and edit benefit from a stronger one. Continue lets you assign different models to each role.

Do I need an embedding model?

Only if you use codebase or documentation context. Embeddings are a separate model class from chat, and the vector dimension must match the index.

Where should I store the API key?

In a secret reference or environment variable, not in a config file committed to a shared repository. Issue one key per developer for attribution and revocation.

Related

Sources

  1. Continue: OpenAI models configuration · 23 Nov 2026
  2. Continue: models and roles · 23 Nov 2026
  3. Plugsky API quickstart · 23 Nov 2026