lmstudio-ai/lms
LM Studio CLI
What it solves
lms gives users a terminal-based way to control LM Studio, a local LLM runtime. Instead of clicking through the desktop app, you can run commands to check status, start or stop the API server, list downloaded models, load or unload them, create projects, stream logs, and manage agentic access over LM Link. This is useful for scripted workflows, remote management, and automation.
How it works
lms ships with LM Studio 0.2.22 and newer, and can also be bootstrapped via npx lmstudio install-cli. It provides a set of subcommands such as status, server start, server stop, ls, ps, load, unload, create, and log stream. These commands talk to LM Studio's SDK (lmstudio.js) and automatically pick the right local app (LM Studio, llmster, or Bionic) based on what's running or recorded in known installations. For agentic use over LM Link, the lms link agent subcommands let you enable or disable remote control with explicit confirmation. Outputs can be formatted as JSON for scripting.
Who it's for
Developers and power users who want to interact with LM Studio from a terminal, integrate it into scripts or CI/CD pipelines, or enable agentic functionality from other devices via LM Link. It also suits anyone who prefers command-line tools over graphical interfaces.
Highlights
- Wide range of subcommands: status, server control, model listing/loading/unloading, project creation, and log streaming.
- Machine-readable JSON output for automation.
- Supports loading models with maximum GPU acceleration using
-y. - Agentic use over LM Link can be enabled or disabled with a simple command, with explicit confirmation prompts.
- Automatically chooses the best local app (LM Studio, llmster, or Bionic) when available.
Related
- Project
- Project
- Project
- Project
- Project