VS Code + Copilot Chat
MarkdownEditor extension · OpenAI Chat, OpenAI Responses, Anthropic Messages
Full guide
| Format | Where to set it up |
|---|---|
| OpenAI Chat, OpenAI Responses, Anthropic Messages | Chat model picker → Manage Language Models (gear icon) → Add Models → Custom Endpoint → VS Code opens chatLanguageModels.json. The old github.copilot.chat.customOAIModels setting is deprecated. |
Setup
Copy the configuration and replace sk-... with your key from the Ailoot Dashboard. Prefer storing the key in the environment variable AILOOT_API_KEY, if the application supports it.
Before starting, request GET /v1/models with your Ailoot key. Choose an exact model ID whose methods include POST /v1/chat/completions, POST /v1/responses, POST /v1/messages, then use that ID in the configuration. For agents, also check tool support and the features required by your client version.
[
{
"name": "Ailoot",
"vendor": "customendpoint",
"apiKey": "${input:ailootApiKey}",
"apiType": "chat-completions",
"models": [
{
"id": "gpt-6.1-sol",
"name": "GPT-6.1 Sol (Ailoot)",
"url": "https://api.ailoot.ai/v1/chat/completions",
"toolCalling": true,
"vision": false,
"maxInputTokens": 200000,
"maxOutputTokens": 32000
}
]
},
{
"name": "Ailoot Claude",
"vendor": "customendpoint",
"apiKey": "${input:ailootApiKey}",
"apiType": "messages",
"models": [
{
"id": "claude-sonnet-5-5",
"name": "Claude Sonnet 5.5 (Ailoot)",
"url": "https://api.ailoot.ai/v1/messages",
"toolCalling": true,
"vision": false,
"maxInputTokens": 200000,
"maxOutputTokens": 32000
}
]
}
]Example model: gpt-6.1-sol. Choose any other model from the catalog — check that it supports the format you need.
Good to know
Test
- For the OpenAI format, the URL is
https://api.ailoot.ai/v1(or the full path if the application asks for a full URL). - For the Anthropic format, the URL is
https://api.ailoot.aiwith the full endpoint path, including/v1. - Ask a short question. If you get an error, check the code and Request ID, then consult Errors and limits.
- 404 immediately after setup almost always means the URL is wrong: an extra or missing
/v1. - 402 — insufficient balance for the reserve. Agents reserve more than chat: why.
Application documentation: https://code.visualstudio.com/docs/agent-customization/language-models