New Tool Radar

Local AI

How to Stop the LM Studio Local Server from the Command Line

Use lms server stop to stop the LM Studio local server cleanly, and confirm it stopped with lms server status.

Schematic diagram with three steps: check the server with lms server status, stop it with lms server stop, and confirm it is stopped.

The LM Studio local server keeps serving API requests until you stop it — closing the chat window does not stop it, and neither does unloading the model. The CLI documentation gives the pair plainly: lms server start and lms server stop.

Related guide: Related Local AI guide

Stop it, then confirm

lms server status
lms server stop
lms server status

The first status call tells you whether the server is actually running and on which port — the default is 1234. lms server stop stops it. Run status again: it should now report the server as stopped. If status still says running, the stop command reached a different LM Studio instance than the one serving — the desktop app and the headless daemon (lms daemon) are separate targets, so check which one you started.

What stopping does not do

Stopping the server does not unload the model: the model stays in memory until you unload it with lms unload. If you are finishing for the day, run both — stop the server, then unload the model — so the GPU and RAM are actually free. And if you started the server with --bind 0.0.0.0 so other devices could reach it, stopping it is what closes that door again.

Expected result. We checked the LM Studio CLI docs for lms server start and stop, and the linked guides for the status check. We did not run this software ourselves for this guide, so no output here is a recorded result; steps marked UNTESTED were checked against the sources below, not run.

Limits

A stopped server refuses connections immediately, so any app using it will fail until you start it again. Stopping the server does not unload models or delete anything. We did not run lms ourselves, so the exact status wording is UNTESTED — it may differ by version.

Sources

Checked 2026-11-28.

See all