Beginner 12 minInterfaces

LM Studio: complete 2026 tutorial (installation, API)

LM Studio: complete 2026 tutorial (installation, API)

To install LM Studio, download the app from lmstudio.ai (Windows, Mac with Apple Silicon, or Linux), search for a model in the Discover tab, load it, and start chatting. This tutorial covers installation, a first model, the local API server, and MCP. Current version as of November 16, 2026: 0.4.28.

By Mohamed Meguedmi·Update 2026-11-19·Tested on Windows 11

#First result: download, loading, verification

The official documentation describes the Discover → download → Chat → model-loading workflow. Choose the file for your engine: GGUF for llama.cpp, or a compatible MLX distribution on Apple Silicon. A downloaded model is not loaded yet. Start with a short context, then ask a simple question before adding documents or an API server.

If memory is insufficient, reduce the context and choose a smaller file; control GPU offload. The model and context share the budget with the system on Apple Silicon. The Windows/macOS instructions are reviewed against the documentation; the September 12 run was executed under Linux with Ollama, not with LM Studio.

Check installed models and estimate loading requirements
lms ls
# Remplacer MODEL_KEY par une clé réellement affichée :
lms load MODEL_KEY --context-length 4096 --estimate-only

#Why LM Studio in 2026

The complete kit for building your own AI assistant.

Benefit from our experience and a guided path to go further with LM Studio and use your AI every day.

  • Lifetime online access
  • PDF + files
  • Refunded within 30 days

LM Studio fills a specific niche: users who want a real graphical app, not a CLI daemon. Open the app, find a model in the built-in search bar (which points to Hugging Face), click Download, and start chatting. Zero config files, zero command-line input.

LM Studio uses local engines, including llama.cpp and MLX on Mac Apple Silicon. In the 0.4 branch, Developer mode replaces the old User / Power User / Developer selection. It reveals advanced loading settings and development tools. MCP servers give the model access to tools according to the permissions you grant.

i
Licensing and commercial use
LM Studio is free for both personal and professional use. The “LM Studio at Work” form was removed in July 2025. The application’s free availability does not change the license of downloaded models: check their commercial-use terms separately.

#Prerequisites

Windows
Windows x64 with an AVX2 processor, or Windows ARM64 with the appropriate download. GPU performance depends on the hardware and installed engine.
macOS
macOS 14 or later on Apple Silicon (M1 and later). Intel Macs are not supported. Experimental engines may have higher prerequisites.
Linux
AppImage x64 or ARM64, depending on the machine. The documentation cites Ubuntu 20.04 or later; check your distribution’s compatibility and release notes.
RAM
16 GB is the comfortable minimum; 8 GB is limiting. For a 14B in Q4, plan for 12 GB free; for a 32B, 24 GB.
Disk
Plan for 30 to 50 GB: a 14B model in Q4 weighs ~9 GB, and you’ll download several.

#1. Installation on Windows, Mac, and Linux

Download the installer for your OS from the official website. No npm package, no Homebrew—it is a standard desktop app.

Official website
https://lmstudio.ai/download
  1. 01
    Windows
    Download the Windows installer for your architecture from the official site and run it. If Windows displays a warning, verify the file's origin and signature before continuing.
  2. 02
    macOS
    Open the .dmg and drag LM Studio.app into /Applications. On first launch, Gatekeeper may ask you to allow the app in System Settings → Privacy & Security. On Apple Silicon, LM Studio runs GGUF models with llama.cpp and can also run MLX models; see the next section.
  3. 03
    Linux
    Download the AppImage for your architecture, make the file executable, and then launch it. The exact name changes by version: replace the example name below with the one you downloaded.
Linux — first launch
# Remplacez ce nom par celui de votre téléchargement
chmod +x ./LM-Studio.AppImage
./LM-Studio.AppImage
→
2026 onboarding
In LM Studio 0.4, enable Developer Mode from Settings → Developer if you need advanced options. Older tutorials that ask you to select Power User describe the 0.3 interface. Labels may remain partially in English depending on the version.

#LM Studio on Mac: Apple Silicon, MLX, and memory

LM Studio runs on Apple Silicon Macs with macOS 14 or later; Intel Macs aren't supported. The documentation recommends 16 GB of memory or more; an 8 GB Mac can handle small models with a modest context. Its requirements page lists the M1 through M4 chips; however, the release notes for LM Studio 0.4.27 and Bionic 1.1.10 mention compatibility fixes for M5 Macs.

Two engines
On a Mac, LM Studio runs GGUF models with llama.cpp and MLX models (Apple's framework) with its MLX engine. You choose the format by picking which file to download. The MLX vs. llama.cpp guide covers the differences between the two engines.
Unified memory
The model, the context, and the system all share the same memory. Leave some headroom: a model that takes up almost all the memory makes the Mac slow. Reduce the context before you downsize the model.
Managing engines
The ⌘ Shift R shortcut opens runtime management. Splash, an experimental engine for Qwen3.8-27B and Qwen3.6-35B-A3B, requires an M3 Mac or newer, macOS 26.4 or later, and at least 36 GB of unified memory (48 GB recommended).
Updates
LM Studio 0.4.28 (October 31, 2026) fixes a Mac bug where “Restart to apply update” reopened the current version instead of installing the update.
Memory guidelines for a Mac (estimates from the site's catalog, Q4 model only, excluding context and system)
Unified memoryExample models from the catalogEstimated memory at Q4
16 GBGemma 4 12B; Qwen 3.5 9B≈ 7 GB; ≈ 6 GB
32 GBQwen 3.8 27B; gpt-oss 20B≈ 16 GB; ≈ 13 GB
64 GB and moreGemma 4 31B; Qwen 3.6 35B-A3B≈ 18 GB; ≈ 21 GB (headroom for a large context)

#2. Download Qwen3-Coder in GGUF

The Discover tab (magnifying glass) is your interface to Hugging Face. Enter a model name, choose a quantization, and click Download. For this tutorial, we use Qwen3-Coder-30B-A3B, the reference open-weight coding model for users with 16 GB of VRAM or more.

  1. 01
    Search for the model
    In Discover, type "qwen3-coder". LM Studio displays compatible GGUF repositories (usually bartowski, unsloth, lmstudio-community). Prefer the lmstudio-community or bartowski repositories: their GGUFs are validated against the current engine version.
  2. 02
    Choose the quantization
    Compare the file size, available memory, and loader estimate. Q4_K_M is a common starting point, but retaining “99% quality” is not guaranteed for every model and task. Leave room for the context and system.
  3. 03
    Start the download
    Click Download. Progress appears in the Downloads tab. On a fiber connection, allow ~5 minutes for a 17 GB file.
  4. 04
    Load the model
    In Chat, select the downloaded model. Enable Developer Mode for advanced settings; start with a reasonable context, then measure memory and speed before increasing it.
→
VRAM by size (Q4_K_M)
Quick reference: 3B ≈ 2 GB · 7B ≈ 5 GB · 14B ≈ 9 GB · 32B ≈ 19 GB · 70B ≈ 40 GB. If LM Studio refuses to load the model entirely onto the GPU, it switches to partial CPU offload—it works, but is 5 to 10× slower.
→
Newer models in the catalog
Qwen3-Coder is just an example here. For general use, the model pages on this site list about 16 GB in Q4 for Qwen 3.8 27B, 7 GB for Gemma 4 12B, and 13 GB for gpt-oss 20B. Check the license and whether a GGUF or MLX version is available in Discover before you download.

#3. First chat and GPU verification

With the model loaded, ask a question in Chat. LM Studio displays the tokens/sec, time to first token, and actual VRAM usage at the bottom of each response. It's more informative than running nvidia-smi in parallel.

Quick test
# Dans le chat LM Studio :
Écris une fonction Python qui parse un CSV streaming
sans charger tout le fichier en mémoire.

Speed depends on hardware, engine, quantization, and context length: LM Studio shows the actual numbers for your machine, so rely on those rather than an average figure. Qwen3-Coder-30B-A3B is an MoE model (3 billion active parameters out of 30): it needs about 19 GB at Q4 according to the site's model page, which exceeds a 12 GB card. In that case, choose a smaller model such as Qwen 3.5 9B (about 6 GB at Q4 according to the catalog), which fits with headroom for context.

i
“Just Show Me The Answer” mode
By default, reasoning models display their chain of thought in a collapsible section. In a chat's Settings, you can disable thinking display to see only the final answer. Note: Qwen 3.8 27B tends to overthink with its default reasoning setting—switch it to “low” effort if responses are taking unnecessarily long.

#4. OpenAI-compatible server on port 1234

This is the feature many people miss: LM Studio exposes an HTTP server compatible with the OpenAI API, by default on http://localhost:1234. You can therefore connect any OpenAI client (Python SDK, LangChain, Continue.dev, Cursor, your own app) to LM Studio without changing a line of business logic—just the base URL and key.

  1. 01
    Enable Developer Mode
    Open Settings → Developer and enable Developer Mode. Server features and advanced options then become available.
  2. 02
    Start the server
    In the Developer view, start the server on localhost:1234. For access from another machine, enable network listening and the Require Authentication option, then create an API token. Authentication is disabled by default.
  3. 03
    Check the endpoint
    The server exposes the /v1/models, /v1/chat/completions, /v1/completions, /v1/embeddings routes (if an embedding model is loaded). First, test the model list.
API test
curl http://localhost:1234/v1/models

curl http://localhost:1234/v1/chat/completions \
  -H "Content-Type: application/json" \
  -d '{
    "model": "qwen3-coder-30b-a3b",
    "messages": [{"role": "user", "content": "Bonjour"}],
    "stream": false
  }'
Official Python client
from openai import OpenAI

client = OpenAI(
    base_url="http://localhost:1234/v1",
    api_key="lm-studio",  # ignorée, n'importe quelle chaîne
)

resp = client.chat.completions.create(
    model="qwen3-coder-30b-a3b",
    messages=[{"role": "user", "content": "Refactore ce code en idiomatic Rust : ..."}],
)
print(resp.choices[0].message.content)
→
JIT model loading
Enable “Just-in-Time Model Loading” in the server settings. LM Studio then automatically loads the model requested by the API request — useful if you switch between multiple models from different clients.

#5. Native MCP support

Since 0.3.17, LM Studio has supported the Model Context Protocol (MCP)—the standard introduced by Anthropic in 2024 for connecting external tools to an LLM. In practice, your local model can access your file system, execute SQL, and call an API, provided an MCP server is configured.

Configuration is done in the mcp.json file, accessible from the Program → Edit mcp.json menu. Here is an example that adds Anthropic's official filesystem server and a SQLite server.

mcp.json
{
  "mcpServers": {
    "filesystem": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-filesystem",
        "/home/user/Documents"
      ]
    },
    "sqlite": {
      "command": "uvx",
      "args": ["mcp-server-sqlite", "--db-path", "/home/user/data.db"]
    }
  }
}

Once registered, the MCP tools appear under the plug icon in the chat. You can enable them as needed. The model then decides when to call them—useful for creating a mini local agent without coding, such as “summarize all the PDFs in the Research folder” or “how many rows are in the users table?”

!
Which model for tool use
Not all models are good at tool calling. Choose a model explicitly trained for function calling; the model card usually says so. Very small models get tool names wrong more often, so try a simple task before trusting one with a real project.

#LM Studio vs. Ollama vs. Jan

The three tools target the same goal (running an LLM locally without the cloud) with different philosophies.

LM Studio
Rich desktop app, built-in Hugging Face search, API server on :1234, MCP support, MLX on Mac. Proprietary but free, for both home and work use. Ideal if you want an all-in-one tool with a real interface.
Ollama
Lightweight daemon + CLI, listens on :11434, library of ready-to-use models (for example ollama run gemma4:e2b, the example from its documentation), OpenAI-compatible API, lots of integrations. Open source (MIT license). Ideal if you're comfortable in the terminal and want headless operation.
Jan
Open-source desktop application under the Apache 2.0 license, intended for local use. Jan’s license is separate from that of the models it downloads.
→
Winning combination
Many advanced users run Ollama as a server daemon (24/7, without a GUI) and use LM Studio as a client/explorer to test new models before pushing them into Ollama. The two can coexist—they don't listen on the same port.

For the detailed head-to-head, see Ollama vs LM Studio; for Jan and GPT4All, see the four-way comparison.

#Troubleshooting

The model won't load (OOM)
Manually reduce GPU Offload in the chat Settings. If offloading 100% to the GPU causes a crash, lower it to 80%—a few layers will use RAM instead, which is slower but works.
Very low tokens/sec
Check that Flash Attention is enabled and that the KV cache type is set to Q8_0 (not FP16). These settings require developer mode; you'll find them in the model loading settings.
The API server is not responding
Confirm that you are in Developer Mode and that the Start Server button is green. On Windows, the firewall may block port 1234 — allow LM Studio through Windows Defender Firewall.
Model not found in search
LM Studio lists only GGUF repositories compatible with its version of llama.cpp. For very recent models, update LM Studio (Help → Check for Updates) or download the GGUF manually and place it in the models folder.
Linux: AppImage refuses to launch
Install libfuse2 (sudo apt install libfuse2 on Ubuntu 22.04+). On Wayland, export QT_QPA_PLATFORM=xcb if the app does not display correctly.
Mac: the update won't install
LM Studio 0.4.28 fixes a bug where "Restart to apply update" reopened the current version. If you're on an older version, download the installer from lmstudio.ai/download.

#Frequently asked questions

FAQ
How do you install LM Studio?+
Download the installer from lmstudio.ai/download, run it, open the Discover tab, download a model, then load it in Chat. No command line is required for basic use.
Does LM Studio work on Mac?+
Yes, on Apple Silicon Macs running macOS 14 or later. Intel Macs aren't supported. Plan on 16 GB of memory or more to be comfortable; 8 GB is enough for small models.
Is LM Studio free?+
Yes, for both personal and business use since July 2025 (official announcement). Only optional services are paid, such as Bionic's plans or LM Studio Enterprise. You still need to check each model's license separately.
Does LM Studio work without internet?+
Chatting with an already downloaded model and the local server work offline. Searching for and downloading models, runtimes, and updates require a connection.
What is the latest version of LM Studio?+
As of November 16, 2026, the download page shows version 0.4.28, released on October 31, 2026. The release notes are at lmstudio.ai/changelog/lmstudio.
Which model should you choose to get started?+
Choose a model that fits in your memory with headroom: Qwen 3.5 9B (about 6 GB in Q4) or Gemma 4 12B (about 7 GB) for 12 to 16 GB, and Qwen 3.8 27B (about 16 GB) from 24-32 GB. The site's configurator helps you check your memory budget.

#Sources and verification as of November 16, 2026

Official documentation checked on November 16, 2026. Requirements may change: check these sources before installing.

#Go further

Three natural directions depending on what you want to do next:

Compare in more detail
The “LM Studio vs Ollama: which should you choose in 2026?” guide compares them feature by feature, with a decision matrix based on your profile.
Connect LM Studio to your PDFs
“Local RAG with LM Studio: chat with your documents” explains the Chat with Documents feature, its limitations, and when to switch to AnythingLLM.
Accelerating inference even further
“LM Studio and MTP (Multi-Token Prediction)” explains how to enable MTP on compatible models to gain 30 to 80% more throughput.
Did this guide help you?

Feedback, an error, or a clarification? Let us know—it improves the guide for everyone.