Devstral or Codestral: which Mistral coding model to take

Both come from Mistral, both need a GPU and both are in Ollama, but they operate in different modes. Devstral is built for agentic development: the model reads the repository, edits files and runs commands on its own; Devstral Small 24B under Apache 2.0 fits on a single GPU, while Devstral 2 123B uses a modified MIT that excludes companies with revenue above 20 million dollars a month. Codestral covers more than 80 programming languages, but the open weights of the 22B version fall under the Mistral Non-Production License, meaning research and testing only; the one free option is Mamba-Codestral 7B under Apache 2.0. Devstral is considerably newer: December 2025 against July 2024.

Comparison based on catalog data

ParameterDevstralCodestral
CategoryCodeCode
DeveloperMistral AI (with All Hands AI), FranceMistral AI, France
ReleasesMay 2025 – Dec 2025May 2024 – Jul 2024
Sizes24B – 123B7B – 22B
Hardware1 GPU, ClusterLaptop, 1 GPU
Commercial useCommercial use with conditionsNon-commercial only
LicenseSmall 24B versions: Apache 2.0; Devstral 2 123B: modified MIT (not for companies with revenue above 20 million dollars per month)Codestral 22B: Mistral Non-Production License (research and testing only); the spin-off Mamba-Codestral 7B: Apache 2.0
RussianSupportedNot supported
OllamaYesYes
Without GPUNoNo
Tasks
  • A developer agent that fixes tickets from the tracker
  • Extending internal systems from a description
  • Automating routine code edits
  • Evaluation and testing before buying a license
  • Code autocompletion (with a commercial license)
  • Research on coding model quality

Choose Devstral if

  • You want an agent that fixes tracker tickets and edits code itself
  • Commercial use is required: Devstral Small 24B is Apache 2.0
  • You have a single GPU to host a 24B model
Devstral

Choose Codestral if

  • The scope is evaluation and testing with nothing going to production
  • Programming language coverage matters: Codestral spans over 80
  • 7B is enough for you: Mamba-Codestral ships under Apache 2.0
Codestral

Other comparisons

Need a model for your task?

An open model can run on your own server: data stays in-house, there is no per-request fee, and the model can be fine-tuned on your documents.

  1. SelectThe model and size for your task and hardware budget
  2. DeployOn your server or in a closed network, with an API
  3. Fine-tuneOn your data, or connect a knowledge base
  4. IntegrateInto your CRM, ERP, bot, website or team chat
Discuss deployment