{"slug":"lm-studio","name":"LM Studio","kind":"runbook","what":"Desktop app for discovering and running local models, plus the lms CLI and a local server.","page":"https://insidethemachine.ai/setups/lm-studio","status":"docs-checked","status_label":"Not run: commands checked against the official docs only","status_note":"Commands checked against the official docs on 2026-10-15. Not run end to end.","wrapper":"The wrapper scripts are generated from the site data. Every .sh passed bash -n and shellcheck and ran in plan mode on Linux (Debian 13). Every .ps1 passed the PowerShell parser and chat.ps1 ran in plan, verify and rollback mode under PowerShell 7 on Linux with Windows calls mocked. Not run on macOS or real Windows.","wrapper_tested":null,"sh":"https://insidethemachine.ai/install/lm-studio.sh","ps1":"https://insidethemachine.ai/install/lm-studio.ps1","md":"https://insidethemachine.ai/install/lm-studio.md","json":"https://insidethemachine.ai/install/lm-studio.json","one_liner":"curl -fsSL https://insidethemachine.ai/install/lm-studio.sh | bash","one_liner_windows":"irm https://insidethemachine.ai/install/lm-studio.ps1 | iex","actions":{"install":"curl -fsSL https://insidethemachine.ai/install/lm-studio.sh | bash","plan":"curl -fsSL https://insidethemachine.ai/install/lm-studio.sh | bash -s -- plan","verify":"curl -fsSL https://insidethemachine.ai/install/lm-studio.sh | bash -s -- verify","rollback":"curl -fsSL https://insidethemachine.ai/install/lm-studio.sh | bash -s -- rollback --yes"},"env":{"ITM_RAM":"memory in GB instead of detecting it"},"model_by_memory_gb":null,"low_memory":null,"platforms":{"macos":{"install":[{"title":"Install LM Studio","lines":[{"k":"mac","c":"brew install --cask lm-studio"},{"k":"run","c":"npx lmstudio install-cli"}]},{"title":"Configure (your choices)","lines":[{"k":"you","c":"lms server start","why":"start the local API server"},{"k":"you","c":"lms ls","why":"list downloaded models"}]}],"verify":[{"run":"lms status","expect":"shows LM Studio status"},{"run":"lms ls --json","expect":"machine-readable model list"},{"run":"curl -s http://localhost:1234/v1/models","expect":"JSON model list (1234 is LM Studio's usual server port; check the app if changed)"}],"rollback":[{"k":"run","c":"lms server stop"},{"k":"mac","c":"brew uninstall --cask lm-studio"},{"k":"note","c":"downloaded models and settings live under ~/.lmstudio; delete only if you want them gone"}]},"linux":{"install":[{"title":"Install LM Studio","lines":[{"k":"note","c":"download the Linux build from https://lmstudio.ai/ then run: npx lmstudio install-cli"}]},{"title":"Configure (your choices)","lines":[{"k":"you","c":"lms server start","why":"start the local API server"},{"k":"you","c":"lms ls","why":"list downloaded models"}]}],"verify":[{"run":"lms status","expect":"shows LM Studio status"},{"run":"lms ls --json","expect":"machine-readable model list"},{"run":"curl -s http://localhost:1234/v1/models","expect":"JSON model list (1234 is LM Studio's usual server port; check the app if changed)"}],"rollback":[{"k":"run","c":"lms server stop"},{"k":"mac","c":"brew uninstall --cask lm-studio"},{"k":"note","c":"downloaded models and settings live under ~/.lmstudio; delete only if you want them gone"}]},"windows":{"install":[{"title":"Install LM Studio","lines":[{"k":"note","c":"download the installer from https://lmstudio.ai/ then run: npx lmstudio install-cli"}]}],"verify":[{"run":"lms status","expect":"shows LM Studio status"},{"run":"lms ls --json","expect":"machine-readable model list"},{"run":"curl -s http://localhost:1234/v1/models","expect":"JSON model list (1234 is LM Studio's usual server port; check the app if changed)","you":true}],"rollback":[{"k":"run","c":"lms server stop"},{"k":"you","c":"brew uninstall --cask lm-studio","why":"macOS/Linux command; do the same by hand"},{"k":"you","c":"# downloaded models and settings live under ~/.lmstudio; delete only if you want them gone","why":"macOS/Linux command; do the same by hand"}]}}}