Source: https://ailoot.ai/docs/en/integrations/vscode-copilot-byok/
Canonical: https://ailoot.ai/docs/en/integrations/vscode-copilot-byok/
Language: en

[Editors and IDEs](https://ailoot.ai/docs/en/integrations/#editors) 

# VS Code + Copilot Chat

[Markdown](https://ailoot.ai/docs/en/integrations/vscode-copilot-byok/index.md)

Editor extension · OpenAI Chat, OpenAI Responses, Anthropic Messages

| 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. |

## [](https://ailoot.ai/docs/en/integrations/vscode-copilot-byok/#setup)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.

```json
[
  {
    "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](https://ailoot.ai/models/en/) — check that it supports the format you need.

## [](https://ailoot.ai/docs/en/integrations/vscode-copilot-byok/#notes)Good to know

url is the FULL endpoint path. apiType values: chat-completions, responses (url .../v1/responses), messages (url .../v1/messages). BYOK works without a Copilot plan or GitHub sign-in, but only for chat/agent; inline suggestions stay on Copilot. Organization admins (Business/Enterprise) can disable the BYOK policy. The token limits above are examples; use catalog values. These examples use vision = false: the 2026-09-30 catalog snapshot lists text only for GPT/OpenAI Chat and Claude/Anthropic Messages. If your VS Code version offers vision, enable it only for a model whose current catalog card declares image input in the selected API format. A client field does not establish image support for the selected model.

## [](https://ailoot.ai/docs/en/integrations/vscode-copilot-byok/#check)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.ai` with 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](https://ailoot.ai/docs/en/errors/).
- 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](https://ailoot.ai/docs/en/billing/reserve/).

Application documentation: [https://code.visualstudio.com/docs/agent-customization/language-models](https://code.visualstudio.com/docs/agent-customization/language-models)

Still have questions? Send your Request ID and a description — we'll help you troubleshoot.[Contact support](mailto:support@ailoot.ai)

## Ailoot · The company and its project portfolio





Ailoot combines established operating experience, a large client base, stable service and ongoing KPI control.





The company and its project portfolio: millions of customers; monthly sales in the billions.





Ailoot brings that operating experience to API access for AI features in customer products, agents, applications and automations.
