Favicon of Codestral and Devstral

Codestral and Devstral

Downloadable coding models for local completion and tool-using agents. Codestral and Devstral releases have different model licenses.

Screenshot of Codestral and Devstral website

Codestral and Devstral are Mistral coding models with downloadable weights for local or self-hosted development tools. Codestral focuses on code generation and fill-in-the-middle completion, where the model fills a gap between existing code. Devstral is designed for software engineering agents that explore a repository, use tools and edit multiple files.

Codestral releases include the 22B model and the 7B Codestral-Mamba model. The official mistral-inference library documents Python and command-line use, but that library is archived and no longer maintained. Its examples also cover instruction following and function calling.

Devstral Small 1.0 is a text-only 24B model developed with All Hands AI. Its model card recommends the OpenHands agent scaffold and documents local serving through vLLM, Transformers, LM Studio, llama.cpp and Ollama. Hardware needs depend on precision and context length; the card describes local deployment on an RTX 4090 or a Mac with 32GB RAM.

Licenses differ between releases. Codestral 22B uses the Mistral AI Non-Production License, which restricts production use. Devstral Small 1.0 uses Apache 2.0. The Apache license on the inference library does not determine the terms of every model. Check the exact weights you plan to deploy. Mistral also offers hosted API access; downloaded weights let you run inference on your own hardware.

Similar to Codestral and Devstral