How to Detect LM Studio on Company Endpoints

LM Studio is the friendliest way to run a local model: a desktop app with a model browser, a chat window and a local API server. It installs per user and stores models in the home folder. Here is how to find it and what to check.

By Kuntur team · Published

What LM Studio is and why security teams care

LM Studio, from Element Labs, downloads open-weight models (mostly from Hugging Face) and runs them on the laptop. It has a chat interface, a command-line tool called lms, and a local server with an OpenAI-compatible API that other tools on the machine can use.

What a security team should look at:

Where LM Studio leaves traces

SignalWindowsmacOSLinux
Application%LOCALAPPDATA%\Programs\LM Studio, %LOCALAPPDATA%\Programs\lm-studio/Applications/LM Studio.appAppImage ~/Applications/LM-Studio*.AppImage, or /opt/LM Studio
Installed programsUninstall entry containing LM Studio--
ProcessesThe app (LM Studio) and the CLI (lms)SameThe app (lm-studio or LM Studio) and lms
CLI%USERPROFILE%\.lmstudio\bin\lms.exe~/.lmstudio/bin/lms~/.lmstudio/bin/lms
User data and models%USERPROFILE%\.lmstudio~/.lmstudio; older versions ~/.cache/lm-studio~/.lmstudio; older versions ~/.cache/lm-studio
MCP servers%USERPROFILE%\.lmstudio\mcp.json~/.lmstudio/mcp.json~/.lmstudio/mcp.json
Local serverPort 1234 by default, configurableSameSame

Models sit under models/<publisher>/<model>/ inside the data folder, so a directory listing two levels deep gives you the model list without opening any file. Users can move the models folder in the app's settings, so a large unexplained folder elsewhere may be the same thing.

Check one machine

Both checks only read files, the process table and, where relevant, the local listener table. They send nothing over the network and change nothing.

Windows (PowerShell)

# Read-only, no network. Run as the user (not SYSTEM).

# 1. Installed and running?
"$env:LOCALAPPDATA\Programs\LM Studio", "$env:LOCALAPPDATA\Programs\lm-studio",
  "$env:USERPROFILE\.lmstudio\bin\lms.exe" | Where-Object { Test-Path $_ }
Get-Process -Name 'LM Studio', lms -ErrorAction SilentlyContinue | Select-Object Name, Id, Path

# 2. Server exposed? 127.0.0.1 is local only; 0.0.0.0 or :: is reachable from the network
Get-NetTCPConnection -State Listen -LocalPort 1234 -ErrorAction SilentlyContinue |
  Select-Object LocalAddress, LocalPort, OwningProcess

# 3. Downloaded models (publisher/model)
foreach ($d in "$env:USERPROFILE\.lmstudio\models", "$env:USERPROFILE\.cache\lm-studio\models") {
  Get-ChildItem $d -Directory -ErrorAction SilentlyContinue | Get-ChildItem -Directory |
    ForEach-Object { '{0}/{1}' -f $_.Parent.Name, $_.Name }
}

# 4. MCP servers available to local models (names only)
$mcp = "$env:USERPROFILE\.lmstudio\mcp.json"
if (Test-Path $mcp) { (Get-Content $mcp -Raw | ConvertFrom-Json).mcpServers.PSObject.Properties.Name }

macOS and Linux (bash)

# Read-only, no network. Run as the user.

# 1. Installed and running?
ls -d "/Applications/LM Studio.app" "/opt/LM Studio" ~/Applications/LM-Studio*.AppImage ~/.lmstudio/bin/lms 2>/dev/null
pgrep -il 'lm.studio|lms'

# 2. Server exposed? Look at the bound address
lsof -nP -iTCP:1234 -sTCP:LISTEN 2>/dev/null   # macOS
ss -ltn 'sport = :1234' 2>/dev/null             # Linux

# 3. Downloaded models (publisher/model) and their size
for d in ~/.lmstudio/models ~/.cache/lm-studio/models; do
  find "$d" -mindepth 2 -maxdepth 2 -type d 2>/dev/null
done
du -sh ~/.lmstudio/models 2>/dev/null

# 4. MCP servers available to local models (names only, needs jq)
[ -f ~/.lmstudio/mcp.json ] && jq -r '.mcpServers // {} | keys[]' ~/.lmstudio/mcp.json

The port is configurable, and lms remembers the last one used, so if nothing listens on 1234 but the app is running, list the listeners of the LM Studio process instead of assuming the default.

What to look at beyond the install

The same rule that works for Ollama works for LM Studio: allowed on approved machines, server bound to loopback, models from an approved list, and no MCP servers that can write files or run commands unless someone signed off on them. See Finding Ollama and local LLMs for the network-side checks and finding local model files for models stored outside the default folder.

Find it across a fleet

The commands above answer the question for one laptop. Across a fleet, run the same read-only checks from the management tool you already use and collect one line per device. Each of these guides has a tested script that already includes LM Studio:

Those scripts walk every profile under C:\Users or /Users, because MDM scripts usually run as SYSTEM or root, where %USERPROFILE% and ~ point at the wrong home folder. On Linux, run the bash checks through whatever configuration management you have (Ansible, Salt, a cron job) and loop over /home/* the same way.

How Kuntur detects LM Studio

Kuntur's catalog identifies LM Studio by its install paths, the lms binary, its processes, the Windows installed-programs entry and the ~/.lmstudio and ~/.cache/lm-studio folders. The agent lists downloaded models per user, reads ~/.lmstudio/mcp.json like any other MCP client, and raises LOCAL_LLM_EXPOSED when the LM Studio server listens on a non-loopback address and LOCAL_MODEL_UNCENSORED for models whose names mark their safeguards as removed.

To check one machine now, the free Kuntur scanner lists LM Studio together with every other AI tool, extension, local model and MCP server it finds:

  1. Download scan.ps1.
  2. Read it. It's plain text; here's what it does.
  3. Check its SHA-256 against the published hash: Get-FileHash .\scan.ps1 -Algorithm SHA256
  4. Run it: powershell -ExecutionPolicy Bypass -File .\scan.ps1

Windows shortcut, if you trust the source (PowerShell)

irm https://app.kuntur.io/scan.ps1 | iex

macOS and Linux (Terminal)

curl -fsSL https://app.kuntur.io/scan.sh | sh

It needs no account and no admin rights, writes an HTML report to the Desktop (or home folder) and uploads nothing. You can read scan.ps1 or scan.sh before running it; what it collects is documented.

Across a fleet, the Kuntur agent reports the same inventory for every user profile on Windows, macOS and Linux. You mark LM Studio approved or unauthorized once for the organization, the dashboard shows which machines carry it, and every decision lands in an audit log.

Free for up to 5 endpoints. Pro is US$3 per endpoint per month (or US$30 per endpoint per year) for 10 to 30 endpoints. The trial needs no credit card. Kuntur detects and reports; it does not block or uninstall anything.

FAQ

What port does LM Studio use?
Its local server commonly runs on port 1234, the default in its documentation. The port is configurable, so check the listening port of the LM Studio process rather than assuming it.
Where does LM Studio store models?
Under ~/.lmstudio/models (%USERPROFILE%\.lmstudio\models on Windows) by default; older versions used ~/.cache/lm-studio/models. The folder can be changed in the app.
Does LM Studio send data to the cloud?
Inference runs locally. The app contacts the internet to search and download models and to check for updates.
Can LM Studio models use MCP servers?
Yes, in recent versions. They are configured in ~/.lmstudio/mcp.json with the same mcpServers format as other clients, and Kuntur reports them with the same findings.

Sources

  1. ggml: GGUF file format specification
  2. Hugging Face: safetensors format

Detect other AI tools:

Related guides: