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

# Connect a provider

1. In **Settings → Models**, click **Connect provider**.
2. Pick a provider, or **Custom** for any OpenAI-compatible server.
3. Enter the provider's details and [credentials](https://docs.sourcebot.dev/docs/configuration/language-models/provider-authentication.md).
4. Click **Check and connect**.

Sourcebot checks the credentials, lists the provider's models, and fills the [modes](https://docs.sourcebot.dev/docs/configuration/language-model-providers#how-sourcebot-picks-a-model) with them.

The owner can also connect a provider during onboarding, on the **Connect a model** step, which you can skip.

![The Connect a provider dialog, listing each provider and how many models it offers](https://mintcdn.com/sourcebot/GXVBx-Rf3UnnNIuv/images/models_connect_provider.png?fit=max\&auto=format\&n=GXVBx-Rf3UnnNIuv\&q=85\&s=31a8e2d738a1bc8b4da5a1e5fecc52a2)

## What each provider needs

| Provider | What you enter |
| - | - |
| Anthropic, OpenAI, Google Gemini, Mistral, xAI, DeepSeek, OpenRouter | An API key |
| Google Vertex AI | A project ID and location |
| Amazon Bedrock | A region |
| Azure OpenAI | A resource name, an API key, and your deployment names |
| Custom | A base URL, and an API key if the server needs one |

The sections below describe each field. For keys and cloud identities, see [Authentication](https://docs.sourcebot.dev/docs/configuration/language-models/provider-authentication.md).

### Common fields

Most providers have these fields under **Advanced**.

| Field | What it's for |
| - | - |
| **Name** | Shown next to the provider's models. Each provider needs a unique name. |
| **Base URL** | Where Sourcebot sends requests. It starts as the provider's own API. Change it to go through a proxy or gateway. |
| **Models added by ID** | Models the provider doesn't list, or that models.dev doesn't know yet. Enter one ID per line. Sourcebot calls each new one once to check that it works. |

### Google Vertex AI

Vertex AI serves both Gemini and Claude models.

| Field | What it's for |
| - | - |
| **Project ID** | The Google Cloud project to call Vertex AI in, such as `my-project-123`. It needs the Vertex AI API turned on. |
| **Location** | The Vertex AI region your models run in, such as `us-east5`, or `global`. |

### Amazon Bedrock

| Field | What it's for |
| - | - |
| **Region** | The AWS region to call, such as `us-east-1`. Sourcebot lists each model under the ID this region can call, such as the inference profile `us.anthropic.claude-sonnet-5-5`. |
| **Base URL** | Optional, under **Advanced**. With the server's IAM role, it must be a Bedrock runtime endpoint in the provider's region, such as a VPC endpoint. With an access key, it can be any address, such as a gateway. |

The credentials need permission to call models, but not to list them.

### Azure OpenAI

| Field | What it's for |
| - | - |
| **Resource name** | The name in your endpoint, as in `https://my-resource.openai.azure.com`. |
| **Deployments** | Your deployment names, one per line. Azure doesn't list them, so Sourcebot calls each new one once to check that it works. |
| **API version** | Optional, under **Advanced**. Leave it empty to use Azure's `v1` API. |
| **Base URL** | Optional, under **Advanced**. Use it instead of a resource name for an endpoint at another address. |

### Anthropic

| Field | What it's for |
| - | - |
| **Send the key as a bearer token** | Under **Advanced**. Sends the key as `Authorization: Bearer` instead of `x-api-key`, for gateways that expect it. |

### Custom

For any OpenAI-compatible server, such as Ollama, vLLM or LiteLLM.

| Field | What it's for |
| - | - |
| **Base URL** | Your server's OpenAI-compatible API, such as `https://llm.internal.example.com/v1`. |
| **API key** | Optional. Enter one if your server needs it. |

## Models

Sourcebot lists the provider's models that can chat and call tools, using [models.dev](https://models.dev). When the list is more than a day old, Sourcebot refreshes it the next time an owner opens **Settings → Models**.

If Sourcebot can't reach models.dev, the provider still connects, but lists no models until models.dev is reachable. Add models by ID in the meantime. Custom servers list their models either way.

## Edit or disconnect

Each provider's menu (**⋯**) has **Edit** and **Disconnect**.

To connect a second account for the same provider, connect it again. Sourcebot adds a number to the name, such as **Anthropic 2**, to avoid a naming conflict.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.