Skip to main content
Watch: I Built an AI App Without Leaving Databricks

Setup guide - Documented by Kilo Code

Use Mistral in Kilo Code

Kilo Code documents a native mistral provider for the VS Code extension and the CLI. Add a standard Mistral Studio API key in Settings > Providers, or set MISTRAL_API_KEY and configure provider.mistral in kilo.json, then set the model as mistral/<model-id>.

Last verified 5 steps4 official sources

Steps

  1. Step 1.

    Sign in to Mistral AI Studio (console.mistral.ai), open API Keys and create a standard Studio API key. Mistral only shows the full key once. You do not need a separate Codestral key.

  2. Step 2.

    VS Code: open Settings (gear icon) and go to the Providers tab to add Mistral and enter your API key. The extension stores it in your kilo.json config file.

  3. Step 3.

    CLI: set the API key as an environment variable.

    Terminal
    export MISTRAL_API_KEY="your-api-key"
  4. Step 4.

    Or configure it in ~/.config/kilo/kilo.json or ./kilo.json:

    JSON
    {
      "provider": {
        "mistral": {
          "env": ["MISTRAL_API_KEY"],
        },
      },
    }
  5. Step 5.

    Then set your default model (docs example shown; swap in a current id such as mistral/mistral-medium-latest):

    JSON
    {
      "model": "mistral/mistral-large-latest",
    }

Caveats

  • Kilo's example uses mistral/mistral-large-latest. Per Mistral's docs that alias points to Mistral Large 3 (mistral-large-2512). Mistral describes mistral-medium-3-5 as optimized for agentic and coding use.
  • Per Kilo's docs, only mistral-small-2603 and mistral-small-latest get a high reasoning variant, which sends reasoningEffort: "high".
  • Kilo's docs say Codestral autocomplete goes through Mistral's FIM API with a standard Studio key at https://api.mistral.ai, or through Kilo Gateway BYOK.
  • Devstral 2 (devstral-2512) was retired 2026-07-31 and replaced by mistral-medium-3-5.

FAQ

How do I use Mistral in Kilo Code?

Kilo Code documents a native mistral provider for the VS Code extension and the CLI. Add a standard Mistral Studio API key in Settings > Providers, or set MISTRAL_API_KEY and configure provider.mistral in kilo.json, then set the model as mistral/<model-id>.

Which Mistral model ids work in Kilo Code?

The official docs read for this guide list mistral-medium-3-5, mistral-medium-latest, mistral-large-2512, mistral-large-latest, mistral-small-2603, mistral-small-latest, codestral-2508 and codestral-latest. Requests go to https://api.mistral.ai.

Is this an official Mistral and Kilo Code setup?

Kilo Code documents this setup in its own docs. It was last checked against 4 official pages on October 17, 2026.

Sources

Last verified against 4 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.