Skip to main content

Setting Up Mistral for Free Autocomplete

This guide walks you through setting up Mistral's Codestral model for free autocomplete in Kilo Code. Mistral offers a free tier that's perfect for getting started with AI-powered code completions.

Video Walkthrough

Step 1: Open Kilo Code Settings

In VS Code, open the Kilo Code panel and click the Settings icon (gear) in the top-right corner.

Open Kilo Code Settings

Step 2: Add a New Configuration Profile

Navigate to Settings → Providers and click Add Profile to create a new configuration profile for Mistral.

Add Configuration Profile

Step 3: Name Your Profile

In the "New Configuration Profile" dialog, enter a name like "Mistral profile" (the name can be anything you prefer) and click Create Profile.

note

The profile name is just a label for your reference—it doesn't affect functionality. Choose any name that helps you identify this configuration.

Create Mistral Profile

Step 4: Select Mistral as Provider

In the API Provider dropdown, search for and select Mistral.

note

When creating an autocomplete profile, you don't need to select a specific model—Kilo Code will automatically use the appropriate Codestral model optimized for code completions.

Select Mistral Provider

Step 5: Get Your API Key

You'll see a warning that you need a valid API key. Click Get Mistral / Codestral API Key to open the Mistral console.

Get API Key Button

Step 6: Navigate to Codestral in Mistral AI Studio

In the Mistral AI Studio sidebar, click Codestral under the Code section.

Select Codestral

Step 7: Generate API Key

Click the Generate API Key button to create your new Codestral API key.

Confirm Generate

Step 8: Copy Your API Key

Once generated, click the copy button next to your API key to copy it to your clipboard.

Copy API Key

Step 9: Paste API Key in Kilo Code

Return to Kilo Code settings and paste your API key into the Mistral API Key field.

Paste API Key

Step 10: Save Your Settings

Click Save to apply your Mistral configuration. You're now ready to use free autocomplete!

Save Settings

Next Steps