Using Mistral AI With Roo Code
Roo Code supports accessing models through the Mistral AI API, including both standard Mistral models and the code-specialized Codestral model.
Website: https://mistral.ai/
Getting an API Key
- Sign Up/Sign In: Go to the Mistral Platform. Create an account or sign in. You may need to go through a verification process.
- Create an API Key:
Available Models
Roo Code supports all models available through Mistral AI's API.
For the complete, up-to-date model list and capabilities, see Mistral's model documentation.
Configuration in Roo Code
- Open Roo Code Settings: Click the gear icon () in the Roo Code panel.
- Select Provider: Choose "Mistral" from the "API Provider" dropdown.
- Enter API Key: Paste your Mistral API key into the "Mistral API Key" field if you're using a
mistralmodel. If you intend to usecodestral-latest, see the "Codestral" section below. - Select Model: Choose your desired model from the "Model" dropdown.
Using Codestral
Codestral is a model specifically designed for code generation and interaction. Only for Codestral you could use different endpoints (Default: codestral.mistral.ai). For the La Platforme API Key change the Codestral Base Url to: https://api.mistral.ai
To use Codestral:
- Select "Mistral" as the API Provider.
- Select a Codestral Model
- Enter your Codestral (codestral.mistral.ai) or La Plateforme (api.mistral.ai) API Key.