SysArt
Book a briefing
SysArt

On-premises AI

LM Studio: What It Is, Its API, Licence and Enterprise Use

LM Studio explained: the desktop app, lms CLI, llmster server and OpenAI-compatible API, its licence for work use, data handling, security and how to govern it.

Last reviewed by SysArt AI Architecture Team10 min readHow we review

In short

LM Studio is a free desktop app from Element Labs for running open-weight language models on your own computer. It runs GGUF models through llama.cpp and MLX models on Apple silicon, serves them over OpenAI- and Anthropic-compatible APIs, and has a CLI (lms) and a headless server (llmster). The app is proprietary but free for work use.

Key takeaways

  • LM Studio combines a desktop chat app, a local API server, the MIT-licensed lms CLI and SDKs for TypeScript and Python; llmster, introduced in version 0.4.0 in January 2026, runs the same core as a headless daemon on servers.
  • It runs GGUF models through llama.cpp on macOS, Windows and Linux, and MLX models on Apple silicon only; its server offers OpenAI-compatible, Anthropic-compatible and native REST endpoints.
  • The app is proprietary software licensed for personal and internal business use, free at work since July 2025; redistribution, resale and service bureau use are not permitted under the terms dated 23 August 2026.
  • Local chats stay on the device, but model search and downloads reach Hugging Face, update checks send version, OS and IP address data, and the separate Bionic agent app can use LM Studio's US-hosted cloud models.
  • The server binds to 127.0.0.1 by default but API authentication is off by default; a 2026 path-traversal flaw in the model downloader (fixed in 0.4.22+1) shows why model sources and versions need control.
A laptop and an external monitor on a wooden desk in a home office

What is LM Studio?

LM Studio is a desktop application for finding, downloading and running open-weight large language models on your own computer. It is built by Element Labs, Inc., a US company, and is free to download for macOS, Windows and Linux.

An open-weight model is one whose trained parameters are published, so you can run it on your own hardware instead of calling a vendor’s cloud API. LM Studio wraps that process in four parts:

  • The desktop app. A chat interface with model search, document chat (local retrieval over files you attach), support for tools through the Model Context Protocol (MCP) and settings for each model.
  • A local API server. It serves loaded models to other programs on the same machine or, if you allow it, on your network.
  • The lms command-line tool. lms ships with the app and is MIT-licensed on GitHub. It downloads (lms get), loads (lms load), lists (lms ls, lms ps) and serves models.
  • SDKs. lmstudio-js for TypeScript and lmstudio-python for Python, both MIT-licensed.

As of 21 November 2026, the download page offers LM Studio 0.4.28. The system requirements list Apple silicon Macs on macOS 14 or newer (Intel Macs are not supported), x64 and ARM Windows PCs, with AVX2 required on x64, and x64 and ARM64 Linux as an AppImage on Ubuntu 20.04 or newer. LM Studio recommends 16 GB of RAM or more.

Which models and engines does LM Studio run?

LM Studio runs models in the GGUF file format through llama.cpp on every platform, and models in Apple’s MLX format on Apple silicon Macs only. You install and update these engines, which LM Studio calls runtimes, from inside the app.

GGUF is the single-file format used by llama.cpp, usually holding a quantised model: weights stored at lower precision, such as 4 or 8 bits, so a model fits in less memory. MLX is Apple’s machine-learning framework for its own chips; LM Studio’s MLX engine is open source under the MIT licence. Our guide to llama.cpp and llama-server explains GGUF and quantisation in more depth.

The “LM Studio models” people search for are not LM Studio’s own. The Discover tab searches Hugging Face and LM Studio’s catalogue, then downloads third-party open-weight models such as Llama, Qwen, Gemma, DeepSeek and gpt-oss. Each keeps its own licence, which may limit commercial use or field of use; see our explainer on open-weight model licences. How large a model your hardware can hold is a sizing question that the LLM GPU sizing calculator helps answer.

Version 0.4.0, released on 28 January 2026, added parallel requests with continuous batching to the llama.cpp engine, so several requests to the same model run together instead of queueing. LM Studio said then that the MLX engine did not yet support it.

What APIs does LM Studio offer?

LM Studio’s server offers three families of endpoints: OpenAI-compatible, Anthropic-compatible and its own REST API. Most applications that accept a custom base URL can use it without code changes.

  • OpenAI-compatible: /v1/models, /v1/chat/completions, /v1/responses, /v1/embeddings and /v1/completions, with documented tool use and structured output.
  • Anthropic-compatible: /v1/messages, added in version 0.4.1 in January 2026, with streaming and tool use.
  • Native REST API (v1): chat with stateful conversations, plus routes to list, load, unload and download models. A conversation can also call MCP tools configured in LM Studio.

The documentation’s examples use port 1234, so the usual OpenAI base URL is http://localhost:1234/v1. The SDKs and the native REST API add model management that the compatible endpoints do not cover.

How do you run LM Studio headless on a server?

Use llmster, the core of the desktop app packaged as a background daemon without a graphical interface. It was introduced with version 0.4.0 for Linux servers, cloud instances, GPU machines and CI pipelines, and also installs on macOS and Windows.

You install llmster with a script from lmstudio.ai, start it with lms daemon up and start the API with lms server start. On Linux, the documentation describes registering it as a systemd service so it starts at boot. Alternatively, the desktop app can run its server on login and keep serving from the system tray.

Two flags matter for any shared machine:

  • --bind sets the listening address. The default is 127.0.0.1, so only the same machine can connect. Setting 0.0.0.0, or the LMS_SERVER_HOST environment variable, listens on all interfaces.
  • --cors allows browser-based web apps on other origins to call the server. It is off unless you set it.

LM Studio’s documentation recommends turning on authentication whenever you bind beyond localhost or enable CORS.

Can you use LM Studio with Claude Code or OpenCode?

Yes. Claude Code can use LM Studio through the Anthropic-compatible endpoint, and OpenCode discovers LM Studio as a built-in local provider.

LM Studio’s January 2026 instructions for Claude Code set ANTHROPIC_BASE_URL to the local server address, set ANTHROPIC_AUTH_TOKEN to a placeholder value and start Claude Code with a local model name. LM Studio advises a context window of at least 25,000 tokens. OpenCode’s documentation lists LM Studio with the provider ID lmstudio and a default endpoint of http://127.0.0.1:1234/v1, which you can change to a GPU host on your network.

The trade-offs of running a coding agent on a local model, from smaller context windows to the data that still leaves the machine, are the same as with Ollama. We cover them in Claude Code with local models.

Is LM Studio free for work, and what does the licence allow?

Yes. LM Studio has been free to use at work since 8 July 2025, when it dropped the requirement for companies to request a separate commercial licence. The app itself remains proprietary software.

The App Terms of Use, in the version dated 23 August 2026, grant a non-exclusive, non-transferable licence for personal and internal business purposes. Points a procurement or legal team will want to note:

  • Not permitted: redistributing, reselling or sublicensing the software; service bureau use; reverse engineering it, except where law allows; and creating derivative works.
  • Liability: the software is provided as is, and Element Labs caps its total liability at USD 50, with the usual exceptions.
  • Law and venue: New York law and New York courts.
  • Changes: Element Labs may update the terms by posting a new version, and continued use counts as acceptance.
  • Models: third-party models are governed by their own licences.

The internal-use limit matters for architecture. Running LM Studio on an employee’s laptop or an internal server fits the terms; building a customer-facing product on top of it needs a separate legal check.

For organisations, LM Studio’s July 2025 announcement describes an Enterprise plan with single sign-on (SSO), model and MCP gating and private collaboration, and its work page lists team organisations and a SOC 2 Type 2 report. Pricing for these is not published, so request terms directly. This article is not legal advice.

Does LM Studio keep your data on the device?

For local models, yes: LM Studio’s privacy policy, last updated 19 October 2026, says local chats, messages and documents do not leave the device and that the app contains no telemetry. Some network traffic remains, and cloud features change the picture.

What still goes out, according to LM Studio’s offline and privacy documentation:

  • Model search and downloads call Hugging Face and LM Studio’s catalogue. LM Studio says search queries are anonymised and download IP addresses are kept briefly.
  • Runtime downloads fetch engine updates such as llama.cpp.
  • Update checks on macOS and Windows send the app version, build and operating system; the content delivery network adds the IP address.

Everything else works offline, and you can sideload model files obtained by other means, which suits restricted or air-gapped environments.

Two newer products need separate review. LM Studio Bionic, launched on 16 July 2026, is a separate agent app for coding, documents and research, not a renamed LM Studio. It can use local models, models on your own devices, or “frontier open models” in LM Studio’s cloud, which LM Studio describes as zero data retention; its pricing page lists US-hosted open models in paid plans. Prompts sent to that cloud leave your infrastructure, so a European organisation must treat it as a processor relationship under the GDPR, with a contract and a transfer assessment. LM Link connects your own devices over encrypted Tailscale-based tunnels so a laptop can use a model loaded on a stronger machine; LM Studio says only the device list reaches its servers.

What security risks does LM Studio have?

The main risks are an exposed API without authentication, untrusted model files and unmanaged versions. LM Studio’s defaults help with the first only partly.

  • Authentication is off by default. LM Studio requires no token for API requests until you switch on authentication in Server Settings. Since version 0.4.0 you can create named API tokens with their own permissions and send them as Bearer tokens. On localhost this matters less; on a network-bound server it is essential.
  • Model supply chain. CVE-2026-119979, published in the US National Vulnerability Database on 30 October 2026, describes a path-traversal flaw in LM Studio’s model downloader before version 0.4.22+1. A crafted model repository could write files outside the models folder and make the app run an attacker’s Python code at every launch. VulnCheck, which assigned it, rated it 8.7 (high) under CVSS 4.0. Downloading a model is therefore a software-install decision, not just a data download.
  • MCP tools. MCP servers configured in LM Studio run with the user’s permissions, and the REST API can call them, so treat each server as third-party code.
  • Patching. As of 21 November 2026, LM Studio’s open-source repositories on GitHub (lms, the two SDKs and the MLX engine) show no published security advisories, and the closed-source app has no public advisory feed. Track the changelog and CVE databases, and keep installs current.

Where does LM Studio fit next to Ollama and vLLM?

LM Studio fits best as a desktop tool for individuals, evaluation work and developers, and as a small private endpoint. A shared production service usually calls for a server engine.

Ollama is the closest alternative: an MIT-licensed tool and server with a command line, its own model library and an OpenAI-compatible API. LM Studio’s strengths are its graphical app, MLX support on Apple silicon and the bundled SDKs; Ollama’s are its open-source licence and a server-first workflow. For many concurrent users, engines such as vLLM add features built for throughput and operations. Our comparison of vLLM, Ollama, llama.cpp and SGLang covers that choice.

NeedLM Studio role
Staff try open models on approved laptopsGood fit, with managed installs and an approved model list
Developers test applications against a local APIGood fit; OpenAI- and Anthropic-compatible endpoints
A small team shares one model on a workstationPossible with llmster, authentication and network controls
An organisation-wide, audited chat or RAG serviceUsually a server engine behind a gateway and a web front end
A product sold or hosted for customersOutside the terms’ internal-use licence; seek legal review

How should an enterprise govern LM Studio?

Decide whether to allow, manage or block it, then make the approved route easier than the unapproved one. Desktop LLM tools are a common form of shadow AI, meaning AI used without the organisation’s knowledge or approval.

A practical baseline:

  1. Inventory. Detect LM Studio installs, llmster daemons and listeners on port 1234 through endpoint management and network monitoring. Our guide to shadow AI discovery and governance describes the methods.
  2. Managed install. Deploy a current version through software distribution, keep the server bound to localhost on laptops and require API tokens wherever it listens on a network.
  3. Approved models. Publish a list of models with checked licences and sources, mirror them internally where possible and block unvetted downloads in sensitive environments.
  4. Cloud features. Decide explicitly on Bionic’s cloud models, web search and LM Link, because they move data or connections beyond the device.
  5. Data rules. State which data classes staff may process in local models, and record the processing in your GDPR records where personal data is involved.
  6. AI literacy. Under Article 4 of the EU AI Act, as amended by the Digital Omnibus on AI, providers and deployers must take measures to support the AI literacy of staff who operate or use AI systems on their behalf. No specific level is mandated. The obligation has applied since 2 February 2025, and national market surveillance authorities supervise it from 2 August 2026. The Commission’s guidance says staff using generative AI tools at work are in scope, so include local tools in training. Your obligations depend on your role and use case; take legal advice where needed.

How SysArt helps

SysArt designs and runs private language-model services for regulated European organisations, from governed desktop tools to shared, audited model endpoints on your own infrastructure or in a dedicated EU environment. We help you choose engines and models, set network, identity and data controls, and document the evidence your risk and compliance teams need. See our private LLM deployment service.

Featured image by Max Andrey on Unsplash.

Frequently asked questions

What is LM Studio?

LM Studio is a desktop application for downloading and running open-weight large language models on your own computer, made by Element Labs, Inc. It provides a chat interface, document chat, MCP tool support and a local API server compatible with OpenAI and Anthropic clients. It also ships the lms command-line tool and llmster, a headless version of its core for servers and CI pipelines.

Is LM Studio free for commercial use?

Yes, for internal use. Since 8 July 2025 LM Studio has been free to use at work without a separate commercial licence. Its terms, dated 23 August 2026, license the software for personal and internal business purposes only. You may not redistribute it, resell it or use it as a service bureau for others. Each model you load keeps its own licence, which you must review separately.

Is LM Studio open source?

No. The LM Studio desktop app is proprietary software owned by Element Labs, and its terms prohibit reverse engineering and derivative works. Several surrounding components are open source under the MIT licence, including the lms CLI, the lmstudio-js and lmstudio-python SDKs and the MLX engine. The inference engines it uses, llama.cpp and Apple's MLX, are separate open-source projects.

What port does the LM Studio API use?

LM Studio's documentation and examples use port 1234, so the OpenAI-compatible base URL is usually http://localhost:1234/v1, and tools such as OpenCode look there by default. You can change the port with lms server start --port. The server binds to 127.0.0.1 unless you pass --bind 0.0.0.0 or set LMS_SERVER_HOST, and the documentation recommends enabling authentication before exposing it.

Can LM Studio run on Linux or a headless server?

Yes. The desktop app runs on x64 and ARM64 Linux as an AppImage, with Ubuntu 20.04 or newer required. For servers without a display, LM Studio offers llmster, the app's core packaged as a daemon. You install it with a script from lmstudio.ai, start it with lms daemon up and can register it with systemd on Linux to start at boot.

Is LM Studio better than Ollama?

Neither is better in general. Both run open-weight models locally and expose OpenAI-compatible APIs. LM Studio centres on a graphical desktop app, adds MLX support on Apple silicon and is proprietary. Ollama is an MIT-licensed command-line tool and server with its own model library. For a shared production service, both are usually compared with server engines such as vLLM. Test with your own models and hardware.

Does LM Studio send my data to the cloud?

Not when you chat with local models. LM Studio's privacy policy says local messages, chats and documents stay on the device and that the app has no telemetry. It still contacts the internet to search and download models from Hugging Face, download runtimes and check for updates, which shares version, OS and IP address data. Cloud models and web search in the Bionic app do send content out.

Related insights

Plan your private AI with people who build it

Book a briefing. We look at your use case, data and constraints, and you leave with the deployment options and governance steps that fit.