Continue.dev
Route Continue's chat, edit, and apply requests through Gateway from VS Code or JetBrains
Continue.dev points each config.yaml model entry at Gateway’s OpenAI-compatible endpoint. Shared setup: Building with coding agents.
Configure Continue
Open ~/.continue/config.yaml (VS Code: Continue panel → gear icon → Configure) and add entries with provider: openai and apiBase set to Gateway.
~/.continue/config.yaml
Set MERGE_GATEWAY_API_KEY in Continue’s secrets, or paste the key inline for local-only use. Reload (VS Code: Developer: Reload Window, JetBrains: restart the IDE) and pick the model in the panel. For an alias, use model: "@alias/support-agent", quoted because YAML reserves a leading @.
Gotchas
- Add
tool_usetocapabilitiesonly for models that support tool calling - The
embedrole works through/v1/openai/embeddings. Gateway has no rerank endpoint, so don’t assign it thererankrole. - Give
autocompleteonly a small, fast model, since it fires on every typing pause - Continue sends no session header, so the optional
requestOptions.headersabove groups your requests into one thread in Logs - With an organization key, attribute an entry to a project via
requestOptions.extraBodyPropertieswithproject_id(the project’s UUID) and optionaltagsas{key, value}pairs