Skip to content
exoticrouter.com ↗

VS Code

Point it at ExoticRouter with a base URL and a key: here are the values, and where they go in VS Code.

Setting Value
Base URL https://api.exoticrouter.com/v1
API key Your key, from the API keys page
Model An id such as anthropic/claude-sonnet-5-5, from the models page

A tool that adds /v1 to the address by itself is given https://api.exoticrouter.com instead.

An example with a handful of models and a stand-in for the key. Put your own key where it says sk-er-YOUR-KEY.

chatLanguageModels.json goes here:

System Path
macOS ~/Library/Application Support/Code/User/chatLanguageModels.json
Linux ~/.config/Code/User/chatLanguageModels.json
Windows %APPDATA%\Code\User\chatLanguageModels.json
chatLanguageModels.json
[
{
"name": "ExoticRouter",
"vendor": "customendpoint",
"apiKey": "sk-er-YOUR-KEY",
"apiType": "chat-completions",
"models": [
{ "id": "anthropic/claude-fable-5-2", "name": "Claude Fable 5.2", "url": "https://api.exoticrouter.com/v1/chat/completions", "toolCalling": true, "vision": true, "contextWindow": 1000000, "maxOutputTokens": 64000 },
{ "id": "anthropic/claude-haiku-5-5", "name": "Claude Haiku 5.5", "url": "https://api.exoticrouter.com/v1/chat/completions", "toolCalling": true, "vision": true, "contextWindow": 1000000, "maxOutputTokens": 64000 },
{ "id": "anthropic/claude-opus-5", "name": "Claude Opus 5", "url": "https://api.exoticrouter.com/v1/chat/completions", "toolCalling": true, "vision": true, "contextWindow": 1000000, "maxOutputTokens": 64000 },
{ "id": "anthropic/claude-opus-5-5", "name": "Claude Opus 5.5", "url": "https://api.exoticrouter.com/v1/chat/completions", "toolCalling": true, "vision": true, "contextWindow": 1000000, "maxOutputTokens": 128000 },
{ "id": "anthropic/claude-sonnet-5", "name": "Claude Sonnet 5", "url": "https://api.exoticrouter.com/v1/chat/completions", "toolCalling": true, "vision": true, "contextWindow": 1000000, "maxOutputTokens": 64000 },
{ "id": "anthropic/claude-sonnet-5-5", "name": "Claude Sonnet 5.5", "url": "https://api.exoticrouter.com/v1/chat/completions", "toolCalling": true, "vision": true, "contextWindow": 1000000, "maxOutputTokens": 64000 },
{ "id": "openai/gpt-6.1-sol", "name": "GPT-6.1 Sol", "url": "https://api.exoticrouter.com/v1/chat/completions", "toolCalling": true, "vision": true, "contextWindow": 1050000, "maxOutputTokens": 128000 },
{ "id": "openai/gpt-6.2-astra", "name": "GPT-6.2 Astra", "url": "https://api.exoticrouter.com/v1/chat/completions", "toolCalling": true, "vision": true, "contextWindow": 1050000, "maxOutputTokens": 128000 },
{ "id": "openai/gpt-6.2-sol", "name": "GPT-6.2 Sol", "url": "https://api.exoticrouter.com/v1/chat/completions", "toolCalling": true, "vision": true, "contextWindow": 1050000, "maxOutputTokens": 128000 },
{ "id": "360/gpt-6.1-sol", "name": "gpt-6.1-sol", "url": "https://api.exoticrouter.com/v1/chat/completions", "toolCalling": false, "vision": false, "contextWindow": 128000, "maxOutputTokens": 16384 }
]
}
]

In VS Code run Chat: Open Language Models (JSON) from the Command Palette and add this entry to the list in the file it opens (the path shown is where that file usually is). Then pick a model in the chat’s model picker. Your own key works in chat, not in inline completions.

VS Code speaks the OpenAI API, which every text model in the catalogue answers: Claude, GPT, Gemini and the rest, each by its id.

The setting is described in VS Code’s own documentation.

  • Cline: Reads and edits project files and runs developer tools through an agent.
  • Continue: Runs configurable AI checks and coding workflows on repositories.
  • Zed: Integrates coding agents and editing into a collaborative editor.
  • JetBrains AI Assistant: Adds code suggestions and AI chat to JetBrains IDEs.
  • TRAE: AI development environment for planning and editing software.