MonoClaw

Mistral

Mistral AI provides state-of-the-art open and proprietary models with strong multilingual capabilities.

Installation

The Mistral extra is included in the [all] install. If you installed the minimal bundle:

cd ~/.monoclaw/monoclaw-runtime
uv pip install -e ".[mistral]"

Setup

  1. Get an API key from console.mistral.ai
  2. Configure MonoClaw:
monoclaw config set MISTRAL_API_KEY "your-key"
monoclaw config set model.default "mistral/mistral-large-latest"

Available models

ModelContextBest for
mistral-large-latest128KGeneral purpose, reasoning
mistral-medium-latest128KBalanced performance/cost
mistral-small-latest128KFast, cost-effective
codestral-latest256KCode generation
mistral-embed8KEmbeddings

Configuration

model:
  default: "mistral/mistral-large-latest"
  mistral:
    api_key: "${MISTRAL_API_KEY}"
    temperature: 0.7
    max_tokens: 4096

Troubleshooting

ProblemFix
"Invalid API key"Generate a new key from the Mistral console
"Model not found"Check the model name matches the API documentation
High latencyUse mistral-small for faster responses