New Tool Radar

Local AI

How to Use Open WebUI with LM Studio as the Backend

Start LM Studio's local server, then add http://localhost:1234/v1 as an OpenAI-compatible connection in Open WebUI and pick an LM Studio model.

Schematic diagram with three steps: start LM Studio's local server on port 1234, add an OpenAI-compatible connection in Open WebUI, then pick an LM Studio model and chat.

Open WebUI is a self-hosted web interface with no inference engine of its own: it connects to a model server and gives you a chat page in the browser. Ollama is the usual backend, but LM Studio works too — it manages and serves your local models, and Open WebUI adds web access, knowledge bases, and team features on top. The connection is different from the Ollama one: LM Studio is added as an OpenAI-compatible connection, not under the Ollama connections, and on port 1234, not 11434.

Start LM Studio’s server

In LM Studio, start the local API server — the default port is 1234 — with a model loaded. Open WebUI’s own LM Studio page says: “LM Studio’s OpenAI-compatible API server works well as a backend for Open WebUI. You can use LM Studio to manage and serve your local models, then connect Open WebUI to LM Studio’s API.”

Add the connection in Open WebUI

In Open WebUI, go to Settings, then Connections (in the admin section), and add a new OpenAI-compatible connection with the URL http://localhost:1234/v1. Open WebUI’s connection guide says to add Ollama servers under Manage Ollama API Connections and everything else under Manage OpenAI API Connections — LM Studio belongs in the second list, with the setting “Provider > LM Studio to manage models from Open WebUI”. To set it, open Admin Settings, Connections, click the gear icon next to the connection (or + for a new one), expand Advanced, and pick LM Studio from Provider. For Auth, choose None: the guide says None “calls the server without a key”, which fits LM Studio’s server, which needs no login by default. Save the connection, and your LM Studio models will appear in the model selector.

Check What you should see If you do not see it
Server LM Studio’s local server is running on port 1234 Start the server in LM Studio and load a model first
Connection An OpenAI-compatible connection with URL http://localhost:1234/v1 and Provider set to LM Studio You added it under the Ollama connections — move it to the OpenAI connections list
Picker Your LM Studio model appears in the model selector The server was not running when Open WebUI checked, or the URL is wrong
Reply An answer to “Say hello in one sentence.” appears in the chat The model is not loaded in LM Studio — load it and try again

Expected result. We checked Open WebUI’s own LM Studio page and its provider-connection guide for the URL, the Connections location, and the Provider setting. We did not install Open WebUI or run a chat.

Limits

Open WebUI is only the chat page; the model still runs in LM Studio, so a model that is not loaded there does not appear in the picker, and Open WebUI cannot fix a server that is not running. The Provider setting is optional — Default sends plain OpenAI format, which every OpenAI-compatible server accepts — but LM Studio is the option that unlocks model management from Open WebUI. If Open WebUI runs in Docker, localhost inside the container is the container itself, so use your host machine’s address instead of localhost. Keep the page on your own computer and do not expose it to the internet. We did not test any of this ourselves.

Sources

See all