Devstral is an agentic LLM for software engineering tasks built under a collaboration between
Mistral AI
and
All Hands AI
🙌. Devstral excels at using tools to explore codebases, editing multiple files and power software engineering agents. The model achieves remarkable performance on SWE-bench which positionates it as the #1 open source model on this
benchmark
.
It is finetuned from
Mistral-Small-3.1
, therefore it has a long context window of up to 128k tokens. As a coding agent, Devstral is text-only and before fine-tuning from
Mistral-Small-3.1
the vision encoder was removed.
For enterprises requiring specialized capabilities (increased context, domain-specific knowledge, etc.), we will release commercial models beyond what Mistral AI contributes to the community.
Agentic coding
: Devstral is designed to excel at agentic coding tasks, making it a great choice for software engineering agents.
lightweight
: with its compact size of just 24 billion parameters, Devstral is light enough to run on a single RTX 4090 or a Mac with 32GB RAM, making it an appropriate model for local deployment and on-device use.
Apache 2.0 License
: Open license allowing usage and modification for both commercial and non-commercial purposes.
Context Window
: A 128k context window.
Tokenizer
: Utilizes a Tekken tokenizer with a 131k vocabulary size.
Benchmark Results
SWE-Bench
Devstral achieves a score of 46.8% on SWE-Bench Verified, outperforming prior open-source SoTA by 6%.
Model
Scaffold
SWE-Bench Verified (%)
Devstral
OpenHands Scaffold
46.8
GPT-4.1-mini
OpenAI Scaffold
23.6
Claude 3.5 Haiku
Anthropic Scaffold
40.6
SWE-smith-LM 32B
SWE-agent Scaffold
40.2
When evaluated under the same test scaffold (OpenHands, provided by All Hands AI 🙌), Devstral exceeds far larger models such as Deepseek-V3-0324 and Qwen3 232B-A22B.
Usage
We recommend to use Devstral with the
OpenHands
scaffold.
You can use it either through our API or by running locally.
API
Follow these
instructions
to create a Mistral account and get an API key.
Then run these commands to start the OpenHands docker container.
Make sure you launched an OpenAI-compatible server such as vLLM or Ollama as described above. Then, you can use OpenHands to interact with
Devstral-Small-2505
.
In the case of the tutorial we spineed up a vLLM server running the command:
Then, you can access the OpenHands UI at
http://localhost:3000
.
Connect to the server
When accessing the OpenHands UI, you will be prompted to connect to a server. You can use the advanced mode to connect to the server you launched earlier.
Fill the following fields:
Custom Model
:
openai/mistralai/Devstral-Small-2505
Base URL
:
http://<your-server-url>:8000/v1
API Key
:
token
(or any other token you used to launch the server if any)
Use OpenHands powered by Devstral
Now you're good to use Devstral Small inside OpenHands by
starting a new conversation
. Let's build a To-Do list app.
To-Do list app
Let's ask Devstral to generate the app with the following prompt:
Build a To-Do list app with the following requirements:
- Built using FastAPI and React.
- Make it a one page app that:
- Allows to add a task.
- Allows to delete a task.
- Allows to mark a task as done.
- Displays the list of tasks.
- Store the tasks in a SQLite database.
Let's see the result
You should see the agent construct the app and be able to explore the code it generated.
If it doesn't do it automatically, ask Devstral to deploy the app or do it manually, and then go the front URL deployment to see the app.
Iterate
Now that you have a first result you can iterate on it by asking your agent to improve it. For example, in the app generated we could click on a task to mark it checked but having a checkbox would improve UX. You could also ask it to add a feature to edit a task, or to add a feature to filter the tasks by status.
Enjoy building with Devstral Small and OpenHands!
vLLM (recommended)
We recommend using this model with the
vLLM library
to implement production-ready inference pipelines.
In a bash terminal, run
lms import devstralQ4_K_M.gguf
in the directory where you've downloaded the model checkpoint (e.g.
mistralai/Devstral-Small-2505_gguf
)
Open the LMStudio application, click the terminal icon to get into the developer tab. Click select a model to load and select Devstral Q4 K M. Toggle the status button to start the model, in setting oggle Serve on Local Network to be on.
On the right tab, you will see an API identifier which should be devstralq4_k_m and an api address under API Usage. Keep note of this address, we will use it in the next step.
Launch Openhands
You can now interact with the model served from LM Studio with openhands. Start the openhands server with the docker
Click “see advanced setting” on the second line.
In the new tab, toggle advanced to on. Set the custom model to be mistral/devstralq4_k_m and Base URL the api address we get from the last step in LM Studio. Set API Key to dummy. Click save changes.
Devstral-Small-2505 huggingface.co is an AI model on huggingface.co that provides Devstral-Small-2505's model effect (), which can be used instantly with this chutesai Devstral-Small-2505 model. huggingface.co supports a free trial of the Devstral-Small-2505 model, and also provides paid use of the Devstral-Small-2505. Support call Devstral-Small-2505 model through api, including Node.js, Python, http.
Devstral-Small-2505 huggingface.co is an online trial and call api platform, which integrates Devstral-Small-2505's modeling effects, including api services, and provides a free online trial of Devstral-Small-2505, you can try Devstral-Small-2505 online for free by clicking the link below.
chutesai Devstral-Small-2505 online free url in huggingface.co:
Devstral-Small-2505 is an open source model from GitHub that offers a free installation service, and any user can find Devstral-Small-2505 on GitHub to install. At the same time, huggingface.co provides the effect of Devstral-Small-2505 install, users can directly use Devstral-Small-2505 installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
Devstral-Small-2505 install url in huggingface.co: