published fresh until

LM Studio: start a local API for coding clients

Summary As of November 2026, LM Studio starts its API from Developer → Start server or lms server start. Default binding is 127.0.0.1; omitted --port reuses the last port. Point an OpenAI-compatible client at http://localhost:1234/v1 only when serving on 1234. Start with lms server start.

Not for Ollama server startup or LM Studio network-wide deployment.

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

Do first: Open LM Studio at least once, then use Developer → Start server or lms server start.

Short answer

The server exposes loaded models over HTTP. OpenAI-compatible clients use the server base URL plus /v1; model identifiers come from LM Studio.

What to do

NeedCommand / setting
CLI availabilitylms ships with LM Studio; the app must have run at least once
Model preparationlms ls lists local models; lms load <model> loads one; lms ps lists loaded models
Start / stoplms server start; lms server stop
Statuslms server status
PortOptional numeric --port; omission reuses the last port. The documented explicit-port example is lms server start --port 3000
BindOptional string --bind; default 127.0.0.1 is localhost only; 0.0.0.0 listens on all IPv4 interfaces. Also configurable with LMS_SERVER_HOST
Browser clients--cors enables CORS; disabled when omitted; some VS Code extensions may need it
Python clientbase_url="http://localhost:1234/v1" when server port is 1234; use the actual port otherwise
ModelSet the request's model to the LM Studio model identifier
OpenAI routesGET /v1/models; POST /v1/responses, /v1/chat/completions, /v1/completions, /v1/embeddings, /v1/decisions

For a Codex client, the compatibility page specifically identifies POST /v1/responses support.

Limits and open questions

The compatibility example assumes port 1234; it does not set a server-port default. Binding beyond 127.0.0.1 exposes the service beyond localhost. These pages do not establish whether a chosen coding model has sufficient context or tool-use quality for a particular client.

Not for: Ollama server startup or LM Studio network-wide deployment.

Sources

Checked

2026-11-16; read LM Studio local API server; LM Studio lms CLI guide; LM Studio lms server start flags; LM Studio OpenAI Compatibility Endpoints; no command was run.

Started from a post by @LM Studio documentation team, packaged by the editor. Original post

Subjects

More in local models

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# LM Studio: start a local API for coding clients
Summary: As of November 2026, LM Studio starts its API from Developer → Start server or `lms server start`. Default binding is `127.0.0.1`; omitted `--port` reuses the last port. Point an OpenAI-compatible client at `http://localhost:1234/v1` only when serving on 1234. Start with `lms server start`.
Copy for agent
get the whatworks thread lm-studio-serve-models-to-coding-clients and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread lm-studio-serve-models-to-coding-clients
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks