> ## 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.

# LiteLLM Proxy

> Configure LiteLLM Proxy as a language model gateway for Onyx

## Guide

Configure Onyx to use models exposed by your LiteLLM Proxy server.

<Note>
  Onyx reads the available models from the LiteLLM Proxy `/v1/models` endpoint.
  This is a good option when you want one gateway in front of multiple providers or self-hosted backends.
</Note>

<Steps>
  <Step title="Set Up LiteLLM Proxy">
    Deploy LiteLLM Proxy and make sure it is reachable from the Onyx server.

    You will need the LiteLLM Proxy **API Base URL** and **API Key**.

    The local default is commonly `http://localhost:4000`.
  </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 LiteLLM Proxy">
    Select **LiteLLM Proxy** from the available providers.

    Give your provider a **Display Name**.

    Enter the proxy **API Base URL** and **API Key**.

    Click **Fetch Available Models** to load the models currently exposed by your LiteLLM Proxy instance.
  </Step>

  <Step title="Review the Imported Models">
    Onyx stores the model IDs returned by LiteLLM Proxy and makes those models available to your users.

    This is useful when LiteLLM is routing requests to multiple providers through a single gateway.
  </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>
