packages/docs/plugin-registry/llm/mistral.md
The Mistral plugin connects Eliza agents to Mistral AI models, offering both open-weight and commercial models with competitive performance, especially for European languages and code generation.
On-demand plugin. This plugin is resolved from the remote elizaOS plugin registry and auto-installs when its API key is detected. It is not included in Eliza's bundled
plugins.jsonindex.
Package: @elizaos/plugin-mistral
eliza plugins install @elizaos/plugin-mistral
The plugin auto-enables when MISTRAL_API_KEY is present:
export MISTRAL_API_KEY=your-mistral-api-key
| Environment Variable | Required | Description |
|---|---|---|
MISTRAL_API_KEY | Yes | Mistral AI API key from console.mistral.ai |
{
"auth": {
"profiles": {
"default": {
"provider": "mistral",
"model": "mistral-large-latest"
}
}
}
}
| Model | Context | Best For |
|---|---|---|
mistral-large-latest | 128k | Complex reasoning, multilingual |
mistral-medium-latest | 32k | Balanced performance |
mistral-small-latest | 32k | Fast, cost-efficient tasks |
open-mistral-nemo | 128k | Long-context, open-weight |
codestral-latest | 32k | Code generation and completion |
mistral-embed | 8k | Text embeddings |