A headless model server needs maintenance independently of the desktop application. On Linux, LM Studio's standalone llmster daemon can be updated to the latest stable release while retaining the account's model library and settings.
The installation belongs to the account that installed it, so lms must run under that same account during maintenance. Updating the daemon is separate from selecting a newer inference runtime for a particular model.
Stopping llmster disconnects API clients and unloads models from memory. A backup of the stopped installation provides a recovery point if the new release cannot start or reload an existing model.
Steps to update LM Studio's llmster daemon:
- Record the running llmster version before the update. Example output:
$ lms daemon status llmster v0.0.25+1 is running (PID: 10670)
The version and process ID vary. This is the daemon's version, rather than the CLI's commit identifier. A missing installation needs the standalone setup first.
Related: How to run LM Studio headlessly with llmster - Identify an existing model to reload after the update. Example output:
$ lms ls You have 2 models, taking up 575.51 MB of disk space. LLM PARAMS ARCH SIZE DEVICE qwen2.5-0.5b-instruct 630M Qwen2 491.40 MB Local ✓ LOADED ##### snipped #####
The model key used here is qwen2.5-0.5b-instruct; your library may contain a different model. The downloaded weights remain on disk when the daemon stops.
- Record the HTTP server's current port if you use its API. Example output:
$ lms server status The server is running on port 1247.
The sample installation already uses port 1247. A server reported as stopped does not need starting just for the update; the server restoration steps apply only when it was in use.
- Stop the running llmster daemon.
This interrupts requests and unloads every model in this account's daemon. Clients remain unavailable until the daemon, required models, and HTTP server are running again.
$ lms daemon down Shutting down llmster... Done.
If a startup service owns the daemon, stopping that service replaces this command so it cannot restart during maintenance. For the lmstudio.service setup, the stop command is sudo systemctl stop lmstudio.service.
Related: How to create an llmster startup service on Linux - Copy the stopped installation to a dated backup directory.
$ cp -a "$HOME/.lmstudio" "$HOME/lmstudio-backup-$(date +%Y%m%d-%H%M%S)"
This preserves the default installation, settings, runtimes, and model files under ~/.lmstudio, so the destination needs enough space for the entire directory. A relocated LM Studio home or external model directory also needs a backup of its actual location. If the upgrade fails, recovery means keeping the failed installation separately and restoring the saved directory as ~/.lmstudio while the daemon and its startup service are stopped. The backup should remain available until normal model use works again.
- Install the latest stable llmster release. Example output:
$ TMPDIR="$HOME" PATH="$PATH:/usr/sbin:/sbin" lms daemon update ##### snipped ##### Checking for updates (channel: stable, current: 0.0.25+1) ##### snipped ##### Update found: 0.0.27+1 -> downloading ##### snipped ##### Update completed successfully. To start the daemon, run: lms daemon upThe command uses the stable channel without –beta. TMPDIR keeps the large download and extraction on the home filesystem instead of a potentially small memory-backed /tmp; the temporary PATH addition lets the installer find ldconfig on Ubuntu and Debian. Node.js experimental or deprecation warnings can precede a successful update. An already-current result means there was no newer stable release to install.
Related: LM Studio's daemon update reference - Start the updated daemon under the installation's account.
$ lms daemon up Starting local model service... llmster started (PID: 11034).
For an installation managed by lmstudio.service, sudo systemctl start lmstudio.service replaces this command and restores the models and server configured in that unit.
- Confirm that the running daemon reports the newer version. Example output:
$ lms daemon status llmster v0.0.27+1 is running (PID: 11034)
The running version must match the release installed by the updater. A stopped daemon or the old version means the upgrade has not restored the intended service.
- Load your existing model using its key in place of qwen2.5-0.5b-instruct. Example output:
$ lms load qwen2.5-0.5b-instruct --gpu off --context-length 2048 --identifier local-chat ##### snipped ##### Model loaded successfully in 1.08s. (468.64 MiB) To use the model in the API/SDK, use the identifier "local-chat".
The small Qwen model uses CPU execution and a 2048-token context here; another model may need different GPU or context settings. On Ubuntu or Debian, CPU loading requires libgomp1. A model already restored by a startup service does not need loading again.
Related: How to load a model with lms in LM Studio - Confirm that the existing model appears as a loaded instance. Example output:
$ lms ps IDENTIFIER MODEL STATUS SIZE CONTEXT PARALLEL LOAD CONFIG DEVICE TTL local-chat qwen2.5-0.5b-instruct IDLE 491.40 MB 2048 4 LM Studio Local
IDLE means the model is loaded and waiting for a request. An absent instance or load error means the model has not returned to service, even if the daemon is running.
- Restore the HTTP server if it was running before maintenance.
$ lms server start Success! Server is now running on port 1247
Without –port, the server uses its last-used port. The default bind address is 127.0.0.1, which keeps the API local. An HTTP server already started by the startup service needs no second start.
- Confirm that the restored HTTP server uses its previous port. Example output:
$ lms server status The server is running on port 1247.
The port must match the value recorded before maintenance. A stopped server or unexpected port means the API has not returned to its previous address.