# Which runtime should I use?

> Start with a desktop app, move to a background server when you want an API, and drop to the engine when you want control. The table below sorts it by platform and need.

For most people the answer is LM Studio if you want a window, Ollama if you want a background service, and llama.cpp or MLX when you want every setting. Serving a team is a different job, and vLLM or SGLang does it.

## The decision table

Find the row that matches you. The first match wins.

| If you | Use | Why |
| --- | --- | --- |
| Want to chat today, no terminal | [LM Studio](https://localagi.co/lm-studio) | Search, download and chat in one app, with MLX on a Mac |
| Want models available to every app and tool | [Ollama](https://localagi.co/ollama) | Runs in the background, one-line pulls, API always on |
| Need everything open source, with a GUI | Jan, or Open WebUI on Ollama | Open apps on open engines. See [Which chat app should I use?](https://localagi.co/chat-apps) |
| Are on a Mac and want the most speed | [MLX](https://localagi.co/mlx) through mlx-lm or LM Studio | Built for Apple silicon only |
| Have a Mac, a DGX Spark or a Strix Halo box and want to test another engine | [BaseRT](https://localagi.co/basert) | Base Compute's engine for those chips. Speed claims are vendor-reported |
| Want every setting and the newest model support | [llama.cpp](https://localagi.co/llama-cpp) with llama-server | The engine directly, updated daily |
| Have an NVIDIA card and want peak single-user speed | llama.cpp with CUDA, or ExLlamaV2 with TabbyAPI | See [What other runtimes are there?](https://localagi.co/other-runtimes) |
| Serve several people or many agents at once | [vLLM or SGLang](https://localagi.co/vllm-and-sglang) | Continuous batching keeps throughput up under load |
| Have a Ryzen AI or Copilot+ PC and want the NPU | Lemonade or Foundry Local | NPU support the others lack. See [Can I run models without a GPU?](https://localagi.co/cpu-and-npu) |
| Want to hand someone a model with no install | llamafile | One file that runs on most OSes |

The same table by platform:

| Platform | Easiest | Most control | Many users |
| --- | --- | --- | --- |
| Mac, Apple silicon | LM Studio | mlx-lm or llama.cpp | Not a good fit. See [Which tools run a model across machines?](https://localagi.co/cluster-tools) for linked Macs |
| Windows, NVIDIA | LM Studio or Ollama | llama.cpp with CUDA | vLLM under WSL or Linux |
| Windows, AMD or Intel | LM Studio | llama.cpp with Vulkan | Not a good fit |
| Linux, NVIDIA or AMD | Ollama | llama.cpp | vLLM or SGLang |
| CPU only | Ollama or LM Studio | llama.cpp | Not a good fit |

**Rule of thumb.** 
Pick the highest layer of the stack that gives you the setting you need. Drop a layer only when something is missing.

**The catch.** 
LM Studio is free but closed source. Ollama is open source but hides settings and lags llama.cpp on new models. llama.cpp gives you everything and makes you set it.

Every option costs something, and the table only tells you which cost suits you.

## The common progression

Most people move down the stack over a few weeks, one layer at a time. Each step trades convenience for control.

1. GUI app
2. Background service with an API
3. The engine directly
4. A serving engine

1. A GUI app: You download [LM Studio](https://localagi.co/lm-studio) or Jan, pick a model and chat. You learn what fits your machine and what speed feels like. [Quick start: pick your machine](https://localagi.co/quick-start) starts here.
2. A background service: You want a coding tool, a script or a second app to use the same model. You switch on LM Studio's server or install [Ollama](https://localagi.co/ollama). Now you are using the [How do I call a local model from code?](https://localagi.co/local-api).
3. The engine directly: A setting you need is hidden, a new model will not load, or you want the last bit of speed. You run [llama-server](https://localagi.co/llama-cpp) or `mlx_lm.server` yourself, with your own flags.
4. A serving engine: Other people or many agents share the model. You move to [vLLM or SGLang](https://localagi.co/vllm-and-sglang) on a Linux box with a proper GPU. [How do I set up a team server?](https://localagi.co/team-server) covers the build.

You do not have to take every step. Plenty of people stay at step 2 for good. The step you need is set by what your apps ask of the model, and Part 5 starts with those apps at [Apps](https://localagi.co/apps).

**Try it.** 
If you already run Ollama or LM Studio, open a terminal and run `curl http://localhost:11434/v1/models` or `curl http://localhost:1234/v1/models`. If you get a list back, you are already at step 2.

## Go deeper

### Running more than one

Nothing stops you running two runtimes. Many people keep LM Studio for chat and Ollama or llama-server for tools. Each holds its own copy of a model in memory while loaded, so do not load the same large model in both at once.

They also store files separately. LM Studio and llama.cpp read plain GGUF files you can share between them. Ollama keeps its own store, so a model pulled there is downloaded again for the others.

### Open source as a requirement

If your organisation requires open source, the open path covers every layer: Jan or Open WebUI on top, Ollama or llama-server in the middle, llama.cpp, MLX or vLLM underneath. Check the model licence too. An open runtime does not make the model open. [Can I use this model at work?](https://localagi.co/licenses) covers that side.

### When the answer changes

Runtimes move fast. A runtime that lags on new models one quarter can lead the next. We recheck this page every few months, and [How do I benchmark my own setup?](https://localagi.co/benchmarking) shows how to settle a close call on your own machine.
