Ollama vs LM Studio on Windows and Linux

Ollama and LM Studio both run open-weight language models on your own device, both are free, and both run the GGUF model files of llama.cpp. They are made for different work. Ollama is a model server that you use mostly from the command line and from other programs, with a small chat app on Windows and macOS. LM Studio is a desktop app to find, try and serve models, with the same full interface on Windows, Linux and macOS.

This guide compares the two on Windows and Linux. Every fact comes from the projects' own pages, read on 19 November 2026, for Ollama 0.40.16 and LM Studio 0.4.28. The sources are at the end. Hearthscale, which publishes this guide, is a free app that works with both: see Using both with Hearthscale.

TL;DR

  • Choose Ollama for open-source software under the MIT licence, an install on Windows with no administrator rights, and one command, ollama launch, that sets up a coding tool such as Claude Code or Codex with your local models.
  • Choose LM Studio for a full desktop app on Linux as well as on Windows, a search of Hugging Face inside the app, MCP servers in your chats, and API tokens that protect the server on your network.

For speed, neither is faster in every case. See Which is faster?

At a glance

OllamaLM Studio
Desktop appWindows and macOSWindows, Linux and macOS
On LinuxThe command line and the APIThe desktop app, as an AppImage or a .deb package
SystemsWindows 10 22H2 or newer; macOS 14 or newer; Linux on x64 and ARM64Windows on x64 (with AVX2) and Arm; macOS 14 or newer on Apple silicon; Linux on x64 and ARM64
LicenceOpen source, MITProprietary, free at home and at work; the lms command is MIT
Models fromThe Ollama library, and GGUF files on Hugging FaceAny supported model on Hugging Face, searched in the app
Model filesFiles named by their SHA-256 hash.gguf files in a folder for each publisher and model
Enginesllama.cpp, Ollama's own engine, MLX on Apple siliconllama.cpp, MLX on Apple silicon
Graphics cardsNVIDIA (CUDA), AMD (ROCm), others through VulkanNVIDIA (CUDA), AMD (ROCm on Linux), others through Vulkan
APIPort 11434: Ollama's API, OpenAI-compatible, part of Anthropic's Messages APIPort 1234: LM Studio's REST API, OpenAI-compatible, Anthropic's Messages API
Other devicesSet OLLAMA_HOST; the local API has no authenticationServe on Local Network with optional API tokens; LM Link with an account
Your documentsDrag text and PDF files into the appAttach .docx, .pdf and .txt files to a chat
Cloud modelsOllama's cloud: a price per token, or plans from 20 USD a monthUS-hosted models with Bionic+, for 20 USD a month
Version checked0.40.16, 9 November 20260.4.28, 31 October 2026

The desktop app

Ollama's app runs on Windows and macOS. In it, you download models, chat with them, and drag text and PDF files into a conversation. Ollama installs with no administrator rights, in your home folder. Download OllamaSetup.exe, or run this in PowerShell:

irm https://ollama.com/install.ps1 | iex

On Linux, Ollama has no desktop app. Install it with one command, then use it from the terminal or through its API:

curl -fsSL https://ollama.com/install.sh | sh

LM Studio is the same desktop app on Windows, Linux and macOS. On Linux, it comes as an AppImage or a .deb package. In the app, you search for models, download them, chat, attach documents, and start the local server. LM Studio is also an MCP host: since version 0.3.17, you can add MCP servers and use their tools with your local models. On x64 Windows, LM Studio needs a processor with AVX2, and its system requirements recommend 16 GB of system memory and 4 GB of graphics memory.

Finding and storing models

In Ollama, you download models from the Ollama library by name, such as ollama pull gemma4. You can also run a GGUF file from Hugging Face by its repository, with ollama run hf.co/{username}/{repository}. Ollama then takes the Q4_K_M quantization when the repository has one.

Ollama keeps its models in .ollama\models in your user folder on Windows, and in /usr/share/ollama/.ollama/models on Linux. Inside, each file is named by its SHA-256 hash, not by the model's name. To keep the models on another drive, set OLLAMA_MODELS to the folder you want.

In LM Studio, you search Hugging Face from inside the app, by a keyword, by user/model, or by a whole Hugging Face address. To download from the terminal, use lms get. LM Studio keeps each model as a plain .gguf file in ~/.lmstudio/models, in a folder for its publisher and one for the model. To use another folder, change it in My Models.

Can Ollama and LM Studio share model files?

Not directly. To add a GGUF file to Ollama, write a Modelfile with the line FROM /path/to/file.gguf and run ollama create. To add one to LM Studio, run lms import, which moves the file unless you add --copy, --hard-link or --symbolic-link. Hearthscale Server runs the files of both apps where they are, with no copy: see below.

Which is faster?

For GGUF models, Ollama and LM Studio both run llama.cpp. On the same device, the speed of a model depends more on four settings than on the app:

  • How much of the model is on the graphics card. Layers in system memory are slower than layers in graphics memory. In Ollama, ollama ps shows the split under PROCESSOR, such as 100% GPU.
  • The context length. Ollama sets the context from the graphics memory: 4k tokens below 24 GiB, 32k tokens from 24 to 48 GiB, and 256k tokens from 48 GiB. A small context leaves more memory for the model, so a short test can look fast. Ollama's own guide says that agents, web search and coding tools need at least 64,000 tokens.
  • The build of the runtime. CUDA on NVIDIA, and ROCm or Vulkan on AMD and other graphics cards. Each app brings its own build of llama.cpp. In LM Studio, you manage the runtime packs with Ctrl+Shift+R on Windows and Linux. Builds differ in the models and graphics cards they support well, so update both apps before you compare them.
  • The quantization. A Q4_K_M file is smaller than the Q8_0 file of the same model, and usually faster. See GGUF quantization explained.

To compare the two on your device, load the same model at the same quantization, set the same context length, keep the whole model on the graphics card, and send the same prompt. Then compare the tokens per second of each reply. On a Mac with Apple silicon, both also run models with MLX, Apple's framework for machine learning. For the speeds of NVIDIA graphics cards with CUDA and Vulkan, see Local LLMs on NVIDIA GPUs; for AMD graphics cards with Vulkan and ROCm, see Run local AI on an AMD GPU; for Intel Arc, see Run local AI on an Intel Arc GPU; for processors with no graphics card, see Run a local LLM without a GPU.

Coding tools and agents

In Ollama, one command sets up a coding tool: ollama launch configures and starts Claude Code, Codex, OpenCode and other tools with Ollama's models, and assistants such as OpenClaw and Hermes Agent:

ollama launch claude --model qwen3.5

Ollama's API answers on port 11434 in Ollama's own format, as OpenAI's Chat Completions and Responses APIs, and as a part of Anthropic's Messages API.

LM Studio serves the same kinds of API on port 1234: its own REST API, OpenAI-compatible routes with Responses, and Anthropic's Messages API at /v1/messages. To use Claude Code, set ANTHROPIC_BASE_URL to http://localhost:1234. On a server with no desktop, run llmster, LM Studio's headless daemon, with lms daemon up and lms server start.

With either app, set the context to at least 64,000 tokens for a coding agent, as Ollama's guide advises, and choose a model that your memory holds with that context. Best local LLM for coding compares the models and the memory of their context.

Using your models from other devices

Ollama listens only at 127.0.0.1 until you set the OLLAMA_HOST environment variable. Its local API has no authentication, so any device that reaches the port can use your models.

LM Studio has Serve on Local Network, which makes the server listen on your network. By default, it accepts requests with no token. Since version 0.4.0, you can require an API token for every request. LM Link, a preview, connects your devices through a private network built on Tailscale. It needs an LM Studio account, and the free plan covers up to 5 devices.

Licence and commercial use

Ollama is open source under the MIT licence. LM Studio is proprietary, and free at home and at work since 8 July 2025. Its terms allow personal use and internal business use. LM Studio's lms command and its SDKs are MIT-licensed.

Using both with Hearthscale

Hearthscale is a free app for Windows and Linux that runs AI models on your own device. It works with Ollama and LM Studio:

  • Both as providers. Start Ollama or LM Studio's server, and Hearthscale lists it under Settings → Providers → Runtimes on this device. Their models then show in the model picker of Ash, the assistant, and of other apps. Hearthscale doesn't start them or manage their models.
  • Their model files, where they are. Hearthscale Server finds the language models that Ollama and LM Studio keep on your device, and those of Msty, Jan and GPT4All. In the Server, choose Import model, then Use in place beside a model under Models in other apps. Nothing is copied, the other app doesn't need to run, and its files are never changed or deleted. See Import a model file.
  • More than chat. The same Server runs models for pictures, speech and music, for Image studio, Dictation, Meeting notes and Music studio.
  • Your other devices. Every device with Hearthscale can use the Server's models, end-to-end encrypted, with no port to open. You allow each new device on the Server. See Hearthscale Server.

Hearthscale is not open source, and it doesn't run on macOS yet. For more on each comparison, see Hearthscale and Ollama and Hearthscale and LM Studio. New to local AI? Start with How to run AI locally on Windows and Linux.

Download Hearthscale for Windows or Linux. Hearthscale is free, and you need no account.

Sources

Read on 19 November 2026.

More guides

Run a local LLM without a GPU

No graphics card? Run a local LLM on your processor on Windows or Linux: how fast common processors are, which models to choose, and why memory speed matters.

Bring your AI home.