Back to Eliza

Mistral Plugin

packages/docs/plugin-registry/llm/mistral.md

2.0.12.2 KB
Original Source
<Warning> This plugin is not yet available in the Eliza plugin registry. To use Mistral models today, configure them through the [OpenRouter plugin](/plugin-registry/llm/openrouter) using the appropriate model ID. </Warning>

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.json index.

Package: @elizaos/plugin-mistral

Installation

bash
eliza plugins install @elizaos/plugin-mistral

Auto-Enable

The plugin auto-enables when MISTRAL_API_KEY is present:

bash
export MISTRAL_API_KEY=your-mistral-api-key

Configuration

Environment VariableRequiredDescription
MISTRAL_API_KEYYesMistral AI API key from console.mistral.ai

eliza.json Example

json
{
  "auth": {
    "profiles": {
      "default": {
        "provider": "mistral",
        "model": "mistral-large-latest"
      }
    }
  }
}

Supported Models

ModelContextBest For
mistral-large-latest128kComplex reasoning, multilingual
mistral-medium-latest32kBalanced performance
mistral-small-latest32kFast, cost-efficient tasks
open-mistral-nemo128kLong-context, open-weight
codestral-latest32kCode generation and completion
mistral-embed8kText embeddings

Features

  • Streaming responses
  • Tool use / function calling
  • Strong multilingual performance (especially European languages)
  • Code generation (Codestral)
  • Embeddings for semantic search
  • Structured JSON output
  • Guardrail-friendly moderation endpoint