Connect Models

Connect LM Studio

Three things have to be true before Big-AGI can reach LM Studio: the server running, CORS enabled, and Direct Connection on. The address is prefilled.

Browse documentation

LM Studio runs a server on your own machine, and Big-AGI connects to it by address, with no key involved. The hosted app uses that address exactly as a self-hosted one does (models on your own machine).

Three things have to be true before it works: the server is running, CORS is enabled, and Direct Connection is on.

Install and download a model

Install from lmstudio.ai and download at least one model. Weights are large and speed depends on your RAM and GPU, so start with a small one.

Every downloaded model is listed, loaded or not. Just-in-Time Model Loading, in Server Settings, loads one on its first request; with that switch off, only an already-loaded model answers.

Starting the server and enabling CORS

  1. Start the server: run lms server start, or open the Developer tab and switch Status from Stopped to Running (LM Studio's instructions).
  2. It listens on port 1234, so the base address is http://localhost:1234. Opening http://127.0.0.1:1234/v1/models in a browser tab shows what it serves, independently of Big-AGI.
  3. Turn on Enable CORS: in the Developer tab press Server Settings, then switch it on. Without it LM Studio answers your terminal and refuses your browser, whichever address you use (server settings).
The LM Studio Developer tab with the Server Settings popover open, marker 1 on the Server Settings button and marker 2 on the Enable CORS row, its toggle switched on
Enable CORS lives in the Server Settings popover. Serve on Local Network, three rows above it, is the separate switch for reaching LM Studio from another machine.

The address, prefilled

Open Models with Ctrl + Shift + M, press More Services if the Setup AI Models wizard shows, then Add -> LM Studio. LM Studio API arrives prefilled with http://localhost:1234. Press Models (add and manage your keys).

Direct Connection

Direct Connection starts off, and for LM Studio you have to turn it on - on a self-hosted Open build the toggle sits behind Advanced. It is not a speed option here: with it off the request is made by Big-AGI's edge servers, which cannot reach an address on your own machine. On, your browser talks to LM Studio directly - which is the reason LM Studio needs CORS.

Note

Direct Connection works only with your API key stored in the browser, and with an AI service that permits direct browser calls (CORS). Where it cannot be used, requests route through the Big-AGI fast edge servers instead - everything still works, within the standard upload size and time limits.

When this doesn't work

What you seeWhat it meansWhat to do
The panel asks you to enable CORSLM Studio is reachable but refuses your browser's origin.Enable CORS above, then press Models
[LM Studio network issue]: Could not connect:The server is stopped, the address is wrong, or Direct Connection is off.I don't see the model I want

© 2026 Token Fabrics·Built with passion in San Diego