> ## Documentation Index
> Fetch the complete documentation index at: https://docs.onyx.app/llms.txt
> Use this file to discover all available pages before exploring further.

# LM Studio

> Using LM Studio with Onyx

## Guide

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

Onyx 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 theme={null}
    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 Onyx,
    make sure the server is accessible from the Onyx host (e.g., `http://<lm-studio-host>:1234`).
  </Step>

  <Step title="Navigate to Language Models">
    Access the Admin Panel from your user profile icon, then navigate to **Configuration → Language Models**.
  </Step>

  <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`).

    Onyx will automatically connect and discover your loaded models.

    <img className="rounded-image" src="https://mintcdn.com/danswer/_A_Pt85yeNTgVzmC/assets/admins/ai_models/lm_studio_config.png?fit=max&auto=format&n=_A_Pt85yeNTgVzmC&q=85&s=600969b617c77c2a5237ab3eb4714561" alt="LM Studio Provider Configuration" width="1730" height="1544" data-path="assets/admins/ai_models/lm_studio_config.png" />
  </Step>

  <Step title="Choose Visible Models">
    In the **Advanced Options**, you will see a list of all models available from this provider.
    You may choose which models are visible to your users in Onyx.

    Setting visible models is useful when a provider publishes multiple models and versions of the same model.
  </Step>

  <Step title="Designate Provider Access">
    Lastly, decide whether the provider should be public to all users in Onyx.

    If set to private,
    the provider's models will be available to Admins and User Groups you explicitly assign the provider to.
  </Step>
</Steps>
