title: 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.
In VS Code, open the Kilo Code panel and click the Settings icon (gear) in the top-right corner.
Navigate to Settings → Providers and click Add Profile to create a new configuration profile for Mistral.
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. :::
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. :::
You'll see a warning that you need a valid API key. Click Get Mistral / Codestral API Key to open the Mistral console.
In the Mistral AI Studio sidebar, click Codestral under the Code section.
Click the Generate API Key button to create your new Codestral API key.
Once generated, click the copy button next to your API key to copy it to your clipboard.
Return to Kilo Code settings and paste your API key into the Mistral API Key field.
Click Save to apply your Mistral configuration. You're now ready to use free autocomplete!