LM Studio normally needs its window open, which is awkward if you only use it as a server for another app. Its headless mode fixes that: run it as a background service with no GUI, so the local server is there after a restart without anyone opening the app. There are two ways to do it — a standalone daemon called llmster, or the desktop app in headless mode.
Option 1: llmster, the standalone daemon
llmster is “the core of the LM Studio desktop app, packaged to be server-native, without reliance on the GUI”, and LM Studio’s docs call it the recommended way. Install it:
curl -fsSL https://lmstudio.ai/install.sh | bash
On Windows, the docs give the PowerShell equivalent: irm https://lmstudio.ai/install.ps1 | iex. Then start the daemon:
lms daemon up
For setting up llmster as a startup task on Linux, the docs point to a dedicated Linux Startup Task page.
Option 2: the desktop app on machine login
If you already have the desktop app installed, head to app settings (Cmd / Ctrl + ,) and check the box to run the LLM server on login. The docs say that when this setting is enabled, “exiting the app will minimize it to the system tray, and the LLM server will continue to run in the background.” Your last server state is saved and restored on launch, so a server left on comes back on — and you can force it on from a terminal with lms server start.
Check it survives a restart
Restart the machine, open a terminal, and ask the server for its model list. With just-in-time loading on — the default on new installs — the server loads a model into memory when a request arrives, so you do not need to load one first:
curl http://localhost:1234/v1/models
| Check | What you should see | If you do not see it |
|---|---|---|
| Daemon | lms daemon up reports the daemon is up (llmster route) |
Run lms daemon up again and read its output |
| Login | After a restart, no LM Studio window is open but the server answers | Check the run-on-login box in settings, and that the server was on before the restart |
| Server | curl http://localhost:1234/v1/models returns a model list |
Start it with lms server start, then check again |
Expected result. We checked LM Studio’s own headless docs and release post for the llmster install, the run-on-login setting, and the restart check. We did not run LM Studio.
Limits
Only the steps above come from LM Studio’s own docs; the Linux startup-task setup is a separate docs page linked from the headless page, not covered in full here. A server started this way listens on localhost by default — opening it to your network is a separate choice, and the docs recommend turning on authentication before you do. We did not run LM Studio, so no output here is a recorded result.
