Mistral AI

Mistral provides high-quality open-weight models with competitive performance.

Setup

Environment Variable

export MISTRAL_API_KEY="..."

Configuration File

[llm]
default_provider = "mistral"

[llm.mistral]
model = "mistral-large-latest"
api_key_env = "MISTRAL_API_KEY"

Available Models

ModelIDBest For
Mistral Largemistral-large-latestGeneral coding (default)
Codestralcodestral-latestCode generation
Mistral Smallmistral-small-latestFast responses

Usage

clawdius chat "explain this code" --provider mistral
clawdius chat "write a parser" --provider mistral --model codestral-latest

Tool Calling

Mistral Large supports function/tool calling. Enable in config:

[modes.code]
tools = true