Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

LM Studio CLI

$ lms Official Low Risk
LM Studio · AI & Media · MIT · macos / linux / windows

LM Studio CLI (lms) controls local GGUF and MLX models, downloads weights (lms get), loads models into memory (lms load), and manages the local OpenAI-compatible server (lms server start). Query subcommands like lms ls --json, lms ps --json, and lms server status --json expose clean machine-readable state.

FCRS-1.0 Score
84 /100
Good
Medium Confidence
Zero-Friction Install
npx lmstudio install-cli
CLI vs MCP Decision CLI Only

lms manages local model downloads, VRAM estimates (lms load --estimate-only), and server lifecycle directly on the host machine.

Agent-Readiness Checklist

✓ JSON Output
— Field Filtering
✓ Non-Interactive
✓ Dry-Run
— Read-Only Mode
— NO_COLOR Clean
✓ Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 21 / 25

Provides --json on ls, ps, server status, and daemon status, plus -y (--yes) and --estimate-only for non-interactive checks.

  • lms ls --json and lms ps --json emit structured model metadata
  • lms load --estimate-only checks memory fit without loading weights
Trust & Safety 21 / 25

Runs locally with no cloud credentials; --bind defaults to local access and --ttl can auto-unload idle models, though lms get downloads multi-GB files.

  • Local-only model lifecycle with --estimate-only and --ttl safeguards
Setup & Portability 11 / 15

Supports macOS, Linux, and Windows via LM Studio or llmster, though it relies on the LM Studio runtime daemon rather than being standalone.

  • Cross-platform TypeScript CLI backed by LM Studio / llmster daemon
Utility & Efficiency 13 / 15

Cleanly automates model loading, GPU offloading ratios (--gpu), context sizing (--context-length), and server control.

  • Granular --gpu, --context-length, and --ttl controls
Maintenance & Lineage 9 / 10

Official lmstudio-ai/lms repository under MIT license with active releases.

  • Official LM Studio CLI repository (lmstudio-ai/lms, MIT)
Docs & Verifiability 9 / 10

Clear official CLI documentation at lmstudio.ai/docs/cli and complete --help output.

  • Dedicated reference docs at lmstudio.ai/docs/cli

Security, Auth & Guardrails

Auth Modes
No Auth
Credential Storage

No authentication required for local inference; downloaded models and state live under ~/.lmstudio/.

Side Effects
Read-Only Local Write
Cost & Quotas

MIT open-source CLI companion to LM Studio; local hardware RAM/VRAM and disk space required.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# LM Studio CLI (lms) Agent Rules
- Prefer `lms ls --json`, `lms ps --json`, and `lms server status --json` for state inspection.
- Run `lms load <model> --estimate-only` before loading large models; avoid `lms chat` without `-y`/prompts as it enters an interactive session.

Agent-Ready Command Recipes

Safe Read-Only Queries

List downloaded local models as JSON
lms ls --json

Returns all locally cached GGUF/MLX models, sizes, and architectures in structured JSON.

Check loaded models and server status
lms ps --json && lms server status --json

Inspects models currently loaded in memory and whether the local API server is running.

Controlled Writes & Previews

Estimate memory footprint without loading weights
lms load llama-3.1-8b --estimate-only --gpu max

Calculates VRAM/RAM usage for a model configuration without actually loading it into memory.

Strengths for Agents

  • + Machine-readable --json output across ls, ps, server status, and daemon status.
  • + Built-in lms load --estimate-only verifies memory fit before committing VRAM.

Caveats & Pitfalls

  • ! Requires the LM Studio desktop app or llmster daemon running locally.
  • ! lms server start and lms chat are long-running or interactive unless managed externally.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI