Skip to main content
Mistral AI provides high-quality models with European data residency. Codestral is particularly well-suited for code generation tasks.

Supported Models

ModelIDContextToolsNotes
Mistral Largemistral-large-latest128KYesBest capability
Mistral Mediummistral-medium-latest32KYesBalanced
Codestralcodestral-latest32KYesCode-optimized
Mistral Smallmistral-small-latest32KYesCost-efficient

Setup

1

Get an API key

Sign up at console.mistral.ai.
2

Set the environment variable

export MISTRAL_API_KEY=...
3

Verify

profclaw doctor --provider mistral

Environment Variables

MISTRAL_API_KEY
string
required
Your Mistral AI API key.

Configuration Example

MISTRAL_API_KEY=...

Model Aliases

AliasModel
mistralmistral-large-latest
mistral-mediummistral-medium-latest
codestralcodestral-latest
mistral-localmistral:7b (via Ollama)

Usage Examples

profclaw chat --model mistral "Review this API design"
profclaw chat --model codestral "Generate unit tests for this function"

Notes

  • API endpoint: https://api.mistral.ai/v1 (OpenAI-compatible)
  • Mistral offers EU data residency - useful for GDPR-sensitive workloads.
  • codestral-latest is optimized for code completion and generation.
  • The local mistral-local alias runs via Ollama at no API cost.