# LM Studio

Using LM Studio with Quor

import NavigateToAiModels from "/snippets/navigate-to-ai-models.mdx";
import StandardAiModelConfigs from "/snippets/standard-ai-model-configs.mdx";

## Guide

Configure Quor to use models served by [LM Studio](https://lmstudio.ai/).

Quor has a built-in integration with LM Studio that auto-discovers your loaded models,
including their capabilities (vision, reasoning) and context length.

<Steps>
  <Step title="Setup LM Studio and Load Your Models">
    Download LM Studio from [lmstudio.ai](https://lmstudio.ai/) and load the models you want to use.

    Start the LM Studio local server:

    ```bash
    lms server start --port 1234
    ```

    LM Studio runs on port `1234` by default.

    <Tip>
      For best results, use a model with strong instruction-following and tool-use capabilities (e.g., Qwen 3.5).
    </Tip>

    If LM Studio is running on a different machine than Quor,
    make sure the server is accessible from the Quor host (e.g., `http://<lm-studio-host>:1234`).

    <Info>
      **Running Quor in Docker on the same machine as LM Studio?**

      By default, LM Studio binds only to `127.0.0.1`, which is unreachable from inside an Quor container. To fix:

      - In LM Studio's **Developer** tab, enable **"Serve on Local Network"** (or set the host to `0.0.0.0`) and restart the server.
      - Use `http://host.docker.internal:1234` as the **API Base URL** instead of `http://localhost:1234`.

      See [LM Studio's docs](https://lmstudio.ai/docs/developer/core/server/serve-on-network) for more details.
    </Info>
  </Step>

  <NavigateToAiModels />

  <Step title="Configure LM Studio">
    Select **LM Studio** from the available providers.

    Give your provider a **Display Name**.

    Set the **API Base URL** to your LM Studio server address (e.g., `http://localhost:1234`).

    If Quor is running in Docker on the same machine as LM Studio,
    use `http://host.docker.internal:1234` instead — `localhost` inside the container points to the container itself,
    not your host.
    Make sure LM Studio is set to **"Serve on Local Network"** (see the Info callout in the previous step).

    Quor will automatically connect and discover your loaded models.

    <img className="rounded-image" src="/assets/admins/ai_models/lm_studio_config.png" alt="LM Studio Provider Configuration"/>
  </Step>

  <StandardAiModelConfigs />
</Steps>
