llmboxDocumentationSign in
Integrations · VS Code

VS Code

Your own models in VS Code chat and agent via Custom Endpoint — Manage Language Models, the Chat Completions API type and chatLanguageModels.json.

VS Code can add models from third-party APIs through a Custom Endpoint — they then show up in the chat and agent model picker next to the built-in ones. Connect the llmbox API with the Chat Completions type: requests go to /v1/chat/completions, and models are set by their IDs from the catalog. For an overview and model pricing, see VS Code on llmbox.

Quick start

  1. Open the chat and click the gear Manage Language Models in the model picker (or run the Chat: Manage Language Models command).
  2. Click Add Models and choose Custom Endpoint.
  3. Enter a group name, e.g. llmbox.
  4. Enter a display name and the API key — your key from the cabinet.
  5. Set API type to Chat Completions.
  6. VS Code opens chatLanguageModels.json — list your models there as in the example below and save.
  7. Pick the model in the chat.

The chatLanguageModels.json file

json
[
  {
    "name": "llmbox",
    "vendor": "customendpoint",
    "apiKey": "${input:llmboxApiKey}",
    "apiType": "chat-completions",
    "models": [
      {
        "id": "openai/gpt-6.1-sol",
        "name": "GPT-6.1 Sol",
        "url": "https://llmbox.cc/v1/chat/completions",
        "toolCalling": true,
        "vision": true
      },
      {
        "id": "deepseek/deepseek-v4-pro",
        "name": "DeepSeek V4 Pro",
        "url": "https://llmbox.cc/v1/chat/completions",
        "toolCalling": true
      }
    ]
  }
]

The file holds no key: ${input:llmboxApiKey} refers to the value you entered in the wizard. Put the full address with /chat/completions in url — that way the request is sure to reach the right endpoint.

Model properties

FieldWhat it sets
idThe model ID from the catalog.
toolCallingtrue makes the model available to the agent: it only sees models with tool calling.
visiontrue lets you attach images in the chat (if the model accepts them — check the catalog).
contextWindow, or maxInputTokens and maxOutputTokensContext window and response cap in tokens.

How it works

  • VS Code sends requests to /v1/chat/completions with your key; usage shows up in the cabinet.
  • Connected models work in the chat and in agent mode; the agent's tools (project search, file edits, terminal) go to the model as regular functions, and the gateway passes them as is.
  • In a local session your own models work without signing in to GitHub and without a Copilot plan. In Copilot Business and Enterprise, an organization admin can turn this off.

Troubleshooting

SymptomCause and fix
401 invalid_api_keyWrong or revoked key — check it in the cabinet and enter it again via Manage Language Models.
404 model_not_foundA typo in the model ID — check against GET/v1/models.
400 unsupported_parameter with previous_response_idThe group uses the Responses API type — choose Chat Completions for it ("apiType": "chat-completions") or set "statefulResponses": false.
The model does not appear in the picker after editing the fileRestart VS Code.
The model is missing in agent modeIt has no "toolCalling": true.
No Custom Endpoint optionIn Copilot Business or Enterprise, an organization admin may have turned off bringing your own models (BYOK).