Continue setup
Connect Continue through YAML configuration and separate chat, edit and autocomplete roles.
Continue suits developers who want different models for IDE chat, editing and completion. Install the extension using the official documentation and open the local configuration from the config selector.
Checked on 2026-11-03; GitHub release snapshot v2.0.0-vscode. This follows the current official YAML documentation. A real CanalAPI call has not been tested.
Configure chat and editing
This is a minimal config.yaml. In an existing file, merge the new model into models, preserving other models and rules:
name: CanalAPI
version: 1.0.0
schema: v1
models:
- name: CanalAPI Chat
provider: openai
model: YOUR_MODEL_ID
apiBase: https://api.canalapi.com/v1
apiKey: YOUR_CANALAPI_KEY
roles: [chat, edit]
useResponsesApi: falseReplace YOUR_MODEL_ID with a full model ID and YOUR_CANALAPI_KEY with your key. This is private user configuration: never commit it, share it in a config library or expose it in screenshots. For shared configurations, first adopt the supported secrets mechanism from the official reference.
provider: openai selects the protocol; apiBase sets the actual destination. version: 1.0.0 describes this local configuration, not the Continue application version.
useResponsesApi: false explicitly starts with Chat Completions. Continue can automatically choose Responses based on model names; switch only after confirming the required capabilities. useLegacyCompletionsEndpoint selects the older Completions endpoint and is not a substitute for this setting.
Select and verify
- Save the file and select this configuration and CanalAPI Chat in Continue.
- Send “Reply only OK”, then check CanalAPI usage logs.
- Select some test code and request a small edit. Review the diff before accepting it.
This example configures only chat and edit. Tab completion (autocomplete) and code-search embeddings (embed) need suitable models assigned separately. Agent features also require tool support.
Common issues
- Configuration is missing: check YAML indentation,
schema: v1and loading errors. Do not paste deprecated JSON configuration into a YAML file. - Editing works but completion does not: check whether a suitable autocomplete model is configured.
- 401 or model errors: confirm the key, placeholder replacements and active configuration.
Official references: OpenAI-compatible configuration, YAML reference. For other errors, see troubleshooting.