
LM Studio CLI (lms)
CLILM Studio's official CLI: list, load and unload local models, start and stop the local API server, and check status and logs; ls, ps and other commands support --json output for scripts and agents. Requires the LM Studio desktop app.
lms - Command Line Tool for LM Studio
Built with lmstudio.js
Installation
lms ships with LM Studio 0.2.22 and newer.
If you have trouble running the command, try running npx lmstudio install-cli to add it to path.
To check if the bootstrapping was successful, run the following in a 👉 new terminal window 👈:
lms
Usage
You can use lms --help to see a list of all available subcommands.
For details about each subcommand, run lms <subcommand> --help.
Here are some frequently used commands:
lms status- To check the status of LM Studio.lms server start- To start the local API server.lms server stop- To stop the local API server.lms ls- To list all downloaded models.lms ls --json- To list all downloaded models in machine-readable JSON format.lms ls --decision- To list only downloaded decision models.
lms ps- To list all loaded models available for inferencing.lms ps --json- To list all loaded models available for inferencing in machine-readable JSON format.
lms load- To load a modellms load <model path> -y- To load a model with maximum GPU acceleration without confirmation
lms unload <model identifier>- To unload a modellms unload --all- To unload all models
lms create- To create a new project with LM Studio SDKlms log stream- To stream logs from LM Studio
Local app selection
lms prefers a running LM Studio or llmster over Bionic. It connects to Bionic when Bionic is the
only running app, without starting another backend. When none are running, it tries valid recorded
installations in this order: llmster, LM Studio, Bionic. Missing or stale installations are skipped.
Discovery, CLI authentication, and REST server settings all come from the selected app. Bionic uses
~/.lmstudio/apps/bionic/.internal; LM Studio and llmster retain ~/.lmstudio/.internal (under your
configured LM Studio home). Shared model and runtime storage is unchanged.
lms status, lms server status, and lms server stop do not start an app. In development,
LMS_API_SERVER_INFO_PATH selects one exact instance and never falls back to another app or starts
one if that instance is unavailable.
Contributing
The CLI is part of the lmstudio.js monorepo and cannot be built standalone.
Building and Testing the CLI
# Clone and build the entire monorepo
git clone https://github.com/lmstudio-ai/lmstudio-js.git --recursive
cd lmstudio-js
npm install
npm run build
# Test your CLI changes
node publish/cli/dist/index.js <subcommand>
Example:
node publish/cli/dist/index.js --help
node publish/cli/dist/index.js status
See CONTRIBUTING.md for more information.
Recursos relacionados

Ollama
CLIDownload and run open models such as Gemma locally with one command. Provides a REST API and Python/JS libraries, and ollama launch can point Claude Code, Codex and other agents at local models.
ollama/ollama183k
OpenCode
CLIOpen-source terminal coding agent that switches freely between model providers. Includes a build agent that edits code, a read-only plan agent for analysis, subagents, and a desktop app. Formerly sst/opencode.
anomalyco/opencode214k
Gemini CLI
CLIGoogle's official open-source terminal agent using Gemini models with a 1M-token context. Built-in Google Search, file and shell tools, plus MCP support. Personal Google accounts get a free quota.
google-gemini/gemini-cli107k
Aider
CLIAI pair programming in your terminal: builds a repo map of the whole codebase, auto-commits changes to git, works with Claude, DeepSeek, OpenAI and almost any other model including local ones, and can run lint and tests after edits.
Aider-AI/aider49.6k
Qwen Code
CLIOpen-source terminal coding agent from Alibaba's Qwen team with subagents, auto memory, skills and MCP. Works with Qwen, OpenAI, Anthropic, Gemini and other APIs or local models, with IDE plugins and a headless mode (qwen -p).
QwenLM/qwen-code28.5k
LLM
CLISimon Willison's LLM CLI and Python library: call OpenAI, Claude, Gemini and local models from the terminal, with conversations logged to SQLite automatically, plus embeddings, structured extraction, tool calling and a plugin system.
simonw/llm12.6k