Codestral
Mistral's coding model covering 80+ programming languages. The open weights of the main version cannot be used in production without a paid license; newer Codestral versions are API-only.
The last open version came out in Jul 2024. The family has not been updated for a long time: the model still works, but do not expect fixes or new sizes.
- Developer
- Mistral AI, France
- First release
- May 2024
- Latest release
- Jul 2024
- Sizes
- 7B – 22B
- License
- Non-commercial onlyCodestral 22B: Mistral Non-Production License (research and testing only); the spin-off Mamba-Codestral 7B: Apache 2.0
- Russian
- Not supported
- Ready-made builds
- GGUF, AWQ, MLX (Apple)
- Running
- Available in OllamaNeeds a GPU
- Industries
- Software development
What it does
- Evaluation and testing before buying a license
- Code autocompletion (with a commercial license)
- Research on coding model quality
Where it is used
Hardware requirements
Versions
- Mamba-Codestral-7B
- Codestral-22B-v0.1
How to run it
I can set this up end to end: pick the model size, deploy it on your server and connect it to your systems. Quantization compresses a model so it takes less video memory and runs on more modest hardware. Answers change slightly, so quality is checked on your own examples.
Frequently asked questions
Can Codestral be used in a commercial project?
No. License: Codestral 22B: Mistral Non-Production License (research and testing only); the spin-off Mamba-Codestral 7B: Apache 2.0. A commercial product needs a different model or a separate agreement with the rights holder.
What hardware does Codestral need?
At minimum: Laptop or regular PC, up to 8 GB of VRAM — smaller versions. Without a GPU the model is not practical. You can calculate the exact VRAM for your model size and context in the hardware calculator.
Does Codestral support Russian?
No. The model card lists its languages and Russian is not among them.
Where can I download Codestral and what does it cost?
The Codestral weights are open and free to download. You only pay for the hardware it runs on and for the setup. Source links are at the bottom of this page.
How I deploy it for clients
- SelectionI pick the model size for your task and hardware and test it on your examples.
- DeploymentI deploy it on your server or in a closed network and provide an API.
- Fine-tuningI fine-tune it on your data (LoRA) or connect a knowledge base — whichever is cheaper for the task.
- IntegrationI connect it to your CRM, ERP, bot, website or team chat and set up monitoring.
Comparisons
Similar models
Mistral models for agentic development: they read the repository, edit files and run commands on their own. The 24B version fits on a single GPU.
DetailsCodeQwen CoderAlibaba (Qwen team) · ChinaCommercial use allowedThe broadest open coding family: from 0.5B for autocompletion to 480B for agents. Qwen3-Coder-Next (80B, 3B active) works as a developer agent on a single GPU.
DetailsTextMistralMistral AI · FranceCommercial use with conditionsEuropean models focused on speed. Mixtral was one of the first open mixture-of-experts models; there are versions for images (Pixtral, Medium 3.5), Lean proofs and moderation (Shieldstral).
DetailsSource: huggingface.co/mistralai/Codestral-22B-v0.1. Data checked against the model card on 22 Sep 2026. Have a lawyer review the license before commercial launch.


