> ## Documentation Index
> Fetch the complete documentation index at: https://danswer-mintlify-deep-research-1773355783.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Overview

> Configuring AI Providers and Models in Onyx

<Tip>
  You can configure Onyx to work with any AI provider and model!
</Tip>

## AI Configuration

Navigate to: **Admin Panel → Configuration → LLM** to access the AI configuration page. From here,
you can select which provider and models you want to use in Onyx.

<img className="rounded-image" src="https://mintcdn.com/danswer-mintlify-deep-research-1773355783/mwF-EX7U3MAkhK8q/assets/admins/ai_models/ai_config_overview.png?fit=max&auto=format&n=mwF-EX7U3MAkhK8q&q=85&s=44310dbf2c66be19a9d49dfcdd9a64a9" alt="AI Configuration Overview" width="3308" height="1790" data-path="assets/admins/ai_models/ai_config_overview.png" />

### AI Providers

<AccordionGroup>
  <Accordion title="Cloud Providers" icon="cloud">
    Cloud providers are either foundation model developers (e.g. OpenAI, Anthropic) or cloud platforms (e.g. AWS,
    Google, Azure) that make AI models accessible via hosted API endpoints.

    Some AI models are only available directly from the model creator (e.g. OpenAI's GPT models).
    Others are distributed through managed cloud services such as AWS Bedrock, Google Vertex AI, or Azure OpenAI.
    These platforms provide enterprise-grade access with integration into their broader cloud ecosystem.

    Onyx natively supports both types.

    <Tip>
      Oftentimes,
      managed cloud services maintain the same Terms of Service and Data Processing Agreements for AI inference as their
      other services.
    </Tip>
  </Accordion>

  <Accordion title="Self-Hosted Providers" icon="server">
    Self-hosted providers are tools and frameworks that let you run AI models on your own infrastructure,
    rather than relying on an external cloud service.
    Self-hosted models are open-weight and available for free download, such as Meta's Llama models, DeepSeek, and Qwen.

    Onyx supports any OpenAI-compatible gateway or inference server, like [Ollama](/admins/ai_models/ollama).
  </Accordion>
</AccordionGroup>

### Recommended Models

<Note>
  If cloud AI models are approved for your organization, we recommend using them because of capability, speed, and cost.
</Note>

#### Cloud Models

* **OpenAI**: State of the art models for reasoning, coding, image generation, and general tasks. Use models like `GPT-4o`, `GPT-4.1`, `o3`, `GPT-5`.
* **Anthropic**: Excels at natural, human-sounding language and coding. Use models like `Claude 4 Sonnet` and `Claude 4 Opus`

#### Self-Hosted Models

* **gpt-oss-20b**: OpenAI's open-weight model optimized for chain-of-thought reasoning.
* **Llama 4 and 3.3. family**:
  Meta's latest models with excellent performance and varying model sizes for various hardware.
* **Qwen-3 family**
* **DeepSeek-R1**

<Info>
  Self-hosting models is only recommended for advanced users and teams with specific needs.
</Info>

## Configure Your Providers

<Columns cols={3}>
  <Card title="OpenAI" icon="bolt" href="/admins/ai_models/openai" />

  <Card title="Azure OpenAI" icon="microsoft" href="/admins/ai_models/azure_openai" />

  <Card title="Anthropic" icon="brain" href="/admins/ai_models/anthropic" />

  <Card title="AWS Bedrock" icon="aws" href="/admins/ai_models/bedrock" />

  <Card title="Google Vertex AI" icon="google" href="/admins/ai_models/google_ai" />

  <Card title="OpenAI-Compatible Providers" icon="server" href="/admins/ai_models/custom_inference_provider" />
</Columns>

## Best Practices

* Review the Terms of Service and Data Processing Agreements for the providers you want to use
* Review the data you choose to index in Onyx
* Clearly instruct your users on appropriate data to use with Onyx
