GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - lmstudio-ai/lms: LM Studio CLI

BranchesTags
Open more actions menu

Latest commit

 

History

349 Commits
349 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
.vscode
.vscode
 
 
src
src
 
 
.eslintignore
.eslintignore
 
 
.eslintrc.json
.eslintrc.json
 
 
.gitignore
.gitignore
 
 
.nvmrc
.nvmrc
 
 
.prettierrc.json
.prettierrc.json
 
 
CONTRIBUTING.md
CONTRIBUTING.md
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
package.json
package.json
 
 
tsconfig.json
tsconfig.json
 
 

Repository files navigation


lmstudio cli logo

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 model
    • lms load <model path> -y - To load a model with maximum GPU acceleration without confirmation
  • lms unload <model identifier> - To unload a model
    • lms unload --all - To unload all models
  • lms create - To create a new project with LM Studio SDK
  • lms log stream - To stream logs from LM Studio

Agentic use over LM Link

Use llmster or Bionic to make this device available for agentic use from your other devices:

lms link agent                 # Show whether agentic use is enabled
lms link agent enable          # Show the access warning and ask for confirmation
lms link agent enable --yes    # Enable without confirmation
lms link agent disable         # Disable without confirmation

Agents can read and modify files and run commands with your user permissions. Enabling agentic use can effectively give your other devices full control of this device. Confirmation requires an explicit Y or N; non-interactive enabling requires --yes.

These commands change only the agentic-use setting. The query reports the saved setting even when LM Link is offline or signed out. Managed Runner devices report their effective Runner policy and cannot change it with these commands. LM Studio does not support agentic use. These commands use the same app selection as other lms commands.

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.

About

LM Studio CLI

lms.dev

Topics

llmlmstudionodejstypescript

Resources

Readme
MIT license

Contributing

Contributing
Activity
Custom properties

Stars

5.4k stars

Watchers

41 watching

Forks

474 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.