Skip to main content
Watch: Anthropic Just Hit the Brakes on Its Next AI Model

Setup guide - Documented by GitHub Copilot

Use Mistral in GitHub Copilot

Copilot Chat in VS Code supports Bring Your Own Key through a Custom Endpoint provider that speaks Chat Completions. Mistral documents POST /v1/chat/completions at https://api.mistral.ai, so a Mistral model can be added in chatLanguageModels.json with vendor customendpoint and apiType chat-completions.

Last verified 4 steps5 official sources

Steps

  1. Step 1.

    Open the Language Models editor: select Manage Language Models (gear icon) in the model picker, or run Chat: Manage Language Models from the Command Palette.

  2. Step 2.

    Select Add Models, then select Custom Endpoint. Enter a group name, then a display name and API key, and select the API type Chat Completions.

  3. Step 3.

    VS Code opens chatLanguageModels.json. Configure the model using the documented Custom Endpoint properties with Mistral's endpoint and a model id, then save.

    JSON
    [
      {
        "name": "Mistral",
        "vendor": "customendpoint",
        "apiKey": "${input:mistralApiKey}",
        "apiType": "chat-completions",
        "models": [
          {
            "id": "mistral-large-4",
            "name": "Mistral Large 4",
            "url": "https://api.mistral.ai/v1/chat/completions",
            "toolCalling": true,
            "vision": true
          }
        ]
      }
    ]
  4. Step 4.

    Select the model from the model picker in chat. If it does not appear right away, restart VS Code.

Caveats

  • This combines VS Code's documented Custom Endpoint config with Mistral's documented Chat Completions endpoint and model ids. VS Code's docs do not name Mistral.
  • Set maxInputTokens and maxOutputTokens (or contextWindow) from Mistral's docs. Mistral Large 4 lists a 1M context; Mistral does not state a max output size on the model page.
  • vision: true reflects Mistral's description of Large 4 as a multimodal model with a vision encoder. Set it to false for codestral-latest, which Mistral describes as a code completion model.
  • BYOK covers chat and utility tasks only. Inline suggestions (code completions), semantic search and embeddings still need a GitHub account, so Codestral cannot be used for Copilot completions this way.
  • Copilot Business and Enterprise admins must enable the Bring Your Own Language Model Key in VS Code policy.
  • The Custom Endpoint provider replaces the deprecated OpenAI Compatible provider. The github.copilot.chat.customOAIModels setting is deprecated.
  • Devstral 2 (devstral-2512) was retired 2026-07-31. Mistral lists Mistral Medium 3.5 as its alternative, and Medium 3.5 is itself now deprecated in favour of Mistral Large 4.
  • Mistral Medium 3.5 (mistral-medium-3-5, mistral-medium-latest) is deprecated (deprecation date 10/31/2026 on its model page). Mistral says to use Mistral Large 4 (mistral-large-4) for new integrations.

FAQ

How do I use Mistral in GitHub Copilot?

Copilot Chat in VS Code supports Bring Your Own Key through a Custom Endpoint provider that speaks Chat Completions. Mistral documents POST /v1/chat/completions at https://api.mistral.ai, so a Mistral model can be added in chatLanguageModels.json with vendor customendpoint and apiType chat-completions.

Which Mistral model ids work in GitHub Copilot?

The official docs read for this guide list mistral-large-4, mistral-large-4-0, mistral-small-2603, mistral-small-latest, codestral-2508 and codestral-latest. Requests go to https://api.mistral.ai/v1.

Is this an official Mistral and GitHub Copilot setup?

GitHub Copilot documents this setup in its own docs. It was last checked against 5 official pages on November 8, 2026.

Sources

Last verified against 5 official pages.

Newsletter

New models, set up the day they ship

One email per week. New model releases, the coding tools that support them and how to wire them up.