Skip to content

mistral.rs

Rust LLM inference engine with OpenAI and Anthropic compatible APIs for local models

Permissive (OSI) · MIT AI-native

Listed by , founder & editor

85

Health

Thriving

Overview

Stars

7,859

Last commit

3 days ago

Nov 2026

Repository age

2 years

since Feb 2024

Latest version

v0.9.5

Oct 2026

Contributors

–

13 active in 90 days

Releases

25

last 12 months

Language

Rust

mistral.rs is an inference engine written in Rust for running large language models on your own hardware. It serves models through an OpenAI-compatible API, and mistralrs serve also exposes Anthropic-compatible messages endpoints. It has Rust and Python SDKs and a Docker image.

It handles text, image, video and audio models, including Gemma 4 and the LFM3 family. It can load GGUF files or its own UQFF format, and supports in-situ quantization, paged attention, prefix caching and LoRA. The agentic runtime offers web search, local Python and shell execution, and Skills uploads. Metal and CUDA are supported.

The project publishes CUDA benchmarks against llama.cpp and vLLM. Results vary by model and hardware. It beats llama.cpp on the Q8 tests listed, while vLLM is far ahead on one larger model in BF16. It is MIT licensed and actively maintained, with 25 releases in the last year. It can replace hosted model APIs for local use.

Who it's for

Developers building apps against a local OpenAI-style endpoint

The server exposes OpenAI and Anthropic compatible APIs, so existing clients can point at it.

Skip if: You want a desktop chat app with no command-line setup.

Rust and Python developers embedding inference

It ships Rust and Python SDKs.

Skip if: You rely on a tool whose model support you already know is complete.

Teams running multimodal models on their own GPUs

It covers text, image, video and audio, with CUDA and Metal support.

Skip if: You only have a small CPU-only machine and need the simplest runtime.

The problem it solves

Using hosted LLM APIs sends your prompts to a third party and bills per token. Running models locally needs an engine that is fast and speaks the APIs your tools already use. mistral.rs provides that.

Strengths

  • OpenAI and Anthropic compatible HTTP endpoints
  • Loads GGUF files or UQFF, with in-situ quantization
  • Handles text, image, video and audio models
  • Rust SDK, Python SDK and a Docker image
  • Active: 25 releases in the past year, 13 recent contributors

Trade-offs

  • Options for memory and device mapping changed in v0.9.5 and need an upgrade guide
  • vLLM led on some BF16 benchmarks for a larger model
  • Pre-1.0 versioning, so interfaces may keep changing

Self-host mistral.rs

Self-hostable
Yes

Frequently asked questions

Is it free?

Yes. It is MIT licensed.

Can I run it locally?

Yes. It runs on your own hardware, with CUDA and Metal support, and a Docker image is available.

Which APIs does it expose?

An OpenAI-compatible API and Anthropic-compatible messages endpoints.

Can it load GGUF models?

Yes. Use the f option for a local file or quant to select a published artifact.

Similar tools in Local LLM runtimes

dynamo

Local LLM runtimes

Multi-node LLM serving layer for GPU clusters, built on vLLM, SGLang and TensorRT-LLM

8.6k 1.9k today Active Apache-2.0

magnitude

Local LLM runtimes

8.2k 589 today Active Apache-2.0

ollaya

Local LLM runtimes

Local server for decision models that answer typed questions in milliseconds

1.5k 93 2 days ago Thriving Apache-2.0

Replaces Jev

openjev

Local LLM runtimes

802 71 42 days ago Slowing Apache-2.0

llama-swap

Local LLM runtimes

6.3k 549 today Thriving MIT

gpustack

Local LLM runtimes

6.1k 755 today Thriving Apache-2.0