Skip to main content

Mistral AI

WednesdayAI supports Mistral AI’s model family, including frontier and open-weight models.

Prerequisites

Create an API key at console.mistral.ai and set it on the gateway host:
echo 'MISTRAL_API_KEY=your-key-here' >> ~/.openclaw/.env

Configuration

Add the provider under models.providers in your config:
{
  models: {
    providers: {
      mistral: {
        apiKey: "MISTRAL_API_KEY", // references the env var
        models: [
          "mistral-large-latest",
          "mistral-small-latest",
          "codestral-latest",
          "open-mistral-nemo",
        ],
      },
    },
  },
}
apiKey is the name of the environment variable, not the key value itself. Keep secrets in .env, not in committed config files.

Selecting a model

{
  agents: {
    defaults: {
      model: { primary: "mistral/mistral-large-latest" },
    },
  },
}
ModelNotes
mistral-large-latestFlagship — best reasoning
mistral-small-latestFast and cost-efficient
codestral-latestCode-specialised
open-mistral-nemoLightweight open-weight model
Run openclaw models list --provider mistral to see the current catalog.

Troubleshooting

The API key is invalid or expired. Generate a new key at console.mistral.ai and update ~/.openclaw/.env.
You have exceeded your tier limits. Check your usage and quota at the Mistral console.
Verify the model ID is correct and that your subscription plan includes access to it.