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.
#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.
- Official getting-started path
- Official loading parameters
- Check the memory budget
- Choose a free first course
- Getting started in 10 minutes (beginners)
- LM Studio: the interface
#Why LM Studio in 2026
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.
#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.
- 01WindowsDownload 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.
- 02macOSOpen 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.
- 03LinuxDownload 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.
#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.
| Unified memory | Example models from the catalog | Estimated memory at Q4 |
|---|---|---|
| 16 GB | Gemma 4 12B; Qwen 3.5 9B | ≈ 7 GB; ≈ 6 GB |
| 32 GB | Qwen 3.8 27B; gpt-oss 20B | ≈ 16 GB; ≈ 13 GB |
| 64 GB and more | Gemma 4 31B; Qwen 3.6 35B-A3B | ≈ 18 GB; ≈ 21 GB (headroom for a large context) |
- Local LLMs on an M5 Mac: MLX and llama.cpp
- MLX vs llama.cpp on Mac
- Get the most out of an Apple Silicon Mac
- Which LLM for a Mac mini M4
#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.
- 01Search for the modelIn 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.
- 02Choose the quantizationCompare 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.
- 03Start the downloadClick Download. Progress appears in the Downloads tab. On a fiber connection, allow ~5 minutes for a 17 GB file.
- 04Load the modelIn Chat, select the downloaded model. Enable Developer Mode for advanced settings; start with a reasonable context, then measure memory and speed before increasing it.
#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.
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.
#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.
- 01Enable Developer ModeOpen Settings → Developer and enable Developer Mode. Server features and advanced options then become available.
- 02Start the serverIn 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.
- 03Check the endpointThe server exposes the /v1/models, /v1/chat/completions, /v1/completions, /v1/embeddings routes (if an embedding model is loaded). First, test the model list.
#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.
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?”
#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.
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
How do you install LM Studio?+
Does LM Studio work on Mac?+
Is LM Studio free?+
Does LM Studio work without internet?+
What is the latest version of LM Studio?+
Which model should you choose to get started?+
#Sources and verification as of November 16, 2026
Official documentation checked on November 16, 2026. Requirements may change: check these sources before installing.
- LM Studio release notes (current version)
- Downloading LM Studio
- Official prerequisites
- Documentation: llama.cpp and MLX
- Official getting-started path
- Offline operation
- Official loading parameters
- Splash: Mac requirements
- Free for work, with no form
- 0.4 interface and developer mode
- Token authentication
- Ollama: quick start
- Official Jan license
#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.
- LM Studio: complete guide
- Your first local chat in 10 minutes
- LM Studio as an API server
- LM Studio plugins
Feedback, an error, or a clarification? Let us know—it improves the guide for everyone.