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

# LLM Models

> Connect your own LLM providers to Overcut, configure custom models and control which model each agent uses in your workflows.

Overcut ships with a set of system-managed models, but you can bring your own API keys (BYOK) to connect models from any supported provider. Custom models are configured once at the workspace level and can then be assigned to individual agents, workflows, or set as the workspace default.

***

## Overview

![The LLM models page: a table of configured models with their description, provider (Anthropic, OpenRouter, OpenAI, AWS Bedrock, Azure OpenAI) and test status, and the Add LLM model button.](https://mintcdn.com/overcut/El8kYwWlwbs1eD7z/images/reference/llm-models.png?fit=max\&auto=format\&n=El8kYwWlwbs1eD7z\&q=85\&s=20ed87e307a93e6deaab87e6853fd948)

> [card] Bring Your Own Key
>
> Connect your existing API keys from OpenAI, Anthropic, Azure, AWS Bedrock, or OpenRouter.

> [card] Per-Agent Control
>
> Assign a specific model to each agent: use a fast model for triage and a powerful model for code review.

> [card] Cascade Defaults
>
> Set defaults at the workspace, workflow, or agent level. Agents inherit the closest configured default automatically.

> [card] Encrypted Storage
>
> API keys are encrypted at rest and never exposed in the UI, logs, or to the LLM itself.

***

## Supported Providers

| Provider | Config Type | Notes |
| - | - | - |
| **OpenAI** | API key + model name | Supports optional gateway settings for proxies and compatible APIs |
| **Azure OpenAI** | API key + endpoint + deployment | Standard Azure OpenAI Service. Supports extra static headers |
| **Azure OpenAI (Responses API)** | API key or token + model + endpoint | Azure-native Responses API with full gateway settings |
| **Anthropic** | API key or Claude subscription token + model | Supports Anthropic directly and Anthropic-compatible gateways that provide the `/v1/messages` API |
| **AWS Bedrock** | Bedrock API key or IAM credentials + region + model | Supports a Bedrock model ID or inference-profile ID |
| **OpenRouter** | API key + model name | Access 200+ models. Supports optional gateway settings |

***

## Built-in Models

Built-in models are managed by Overcut and are available only on Overcut Cloud. Access is part of your license or package. On a self-hosted installation, or if your package doesn't include them, connect a custom model with your own provider credentials.

***

## Creating a Custom Model

**1. Open LLM Models**

Navigate to **LLM Models** in the main menu.

**2. Create a new model**

Click the **Add LLM Model** button. Enter a model name (e.g. "Claude Sonnet for Production") and select a provider.

**3. Configure the provider**

Fill in the provider-specific configuration. Each provider requires different fields. For gateway-backed providers, configure endpoint, auth, and header settings only when your gateway requires them. See the [Provider Configuration](#provider-configuration) section below.

**4. Test the model**

Click **Test Model** next to **Save Changes**. Overcut checks the connection and detects what the model supports. See [Testing a Model](#testing-a-model).

**5. Save**

Click **Save Changes**. Overcut encrypts your API key or token and stores the model together with its test result. It is now available for assignment.

> [!NOTE]
>
> Once a model is created, the provider and model key cannot be changed. To switch providers, create a new model and reassign your agents. Use **Edit Config** on the model page to change credentials, endpoints, or the model ID within the same provider.

***

## Testing a Model

Testing a model confirms that Overcut can reach it with your credentials and detects what it supports, so runs use the right features from the start. Click **Test Model** next to **Save Changes** when you create a model or edit its configuration, or on the page of any saved custom model.

The test checks the connection first, then four capabilities:

* **Tool calling**: Whether agents can use tools during a run.
* **Vision**: Whether images can be sent to the model.
* **Native PDF**: Whether PDF attachments can be sent as documents, or should be converted to text first.
* **Prompt caching**: Whether the provider can reuse the shared prefix of each request. See [Prompt caching](#prompt-caching).

When the results look right, click **Looks right** and save. Overcut stores the detected capabilities with the model and enables each feature it supports: images go only to models with vision, PDFs go as documents or as extracted text, and prompt caching turns on where it is verified. Open a model at any time to see its result under **Detected Capabilities**.

Each model shows a status of **Tested**, **Test failed**, or **Not tested**. If the connection fails, the dialog shows the provider's error so you can fix the configuration and test again. Changing any provider setting resets the status to **Not tested** until you test the new configuration.

> [!NOTE]
>
> You can save a model without testing it. Overcut then falls back to assumptions based on the provider, the model name, and the **Supports Vision** setting. Testing replaces those assumptions with verified results.

### Vision support

Until a model passes a test, the model page shows a **Supports Vision** toggle. It is off by default. Turn it on only when both the model and its configured endpoint accept images. After a successful test, the detected **Vision** result replaces the toggle.

> [!WARNING]
>
> Enabling **Supports Vision** for an incompatible model or endpoint can cause requests with image content to fail. Test the model to detect vision support instead.

### Prompt caching

Overcut handles prompt caching for you. The shared prefix of each request (tools and system prompt) is reused across turns, which lowers latency and cost. OpenAI and Azure OpenAI cache automatically on their side and need nothing from Overcut. Anthropic and AWS Bedrock require an explicit cache checkpoint in the request, and Overcut adds it automatically for Claude models on Anthropic, OpenRouter, and AWS Bedrock.

Testing the model confirms that caching works with your configuration. A **Supported** result shows the verified method (**Anthropic cache breakpoints** or **Bedrock Converse cache points**), and Overcut uses that method for every run. For OpenAI and Azure OpenAI, the result is **Not supported** because no checkpoint is needed.

***

## Provider Configuration

### OpenAI

**API Key** *required*

Your OpenAI API key.

**Model** *required*

The model identifier (e.g. `gpt-4.1`, `gpt-4o`, `o3`).

**Base URL**

Optional. Overrides the API endpoint for proxies, gateways, or OpenAI-compatible endpoints.

For gateway authentication and header options, see [Gateway and Custom Endpoint Settings](#gateway-and-custom-endpoint-settings).

### Azure OpenAI

**API Key** *required*

Your Azure OpenAI resource key.

**Endpoint** *required*

The Azure OpenAI resource URL (e.g. `https://your-resource.openai.azure.com`).

**Deployment Name** *required*

The name of the deployed model in your Azure resource.

**API Version** *required*

The Azure OpenAI API version (e.g. `2024-02-15-preview`).

For static gateway headers, see [Gateway and Custom Endpoint Settings](#gateway-and-custom-endpoint-settings).

### Azure OpenAI (Responses API)

**API Key / Token** *required*

Your Azure OpenAI key or the gateway token your endpoint expects.

**Model** *required*

The model deployment name to use.

**Base URL** *required*

Your Azure OpenAI resource endpoint with the `/openai` path (e.g. `https://your-resource.cognitiveservices.azure.com/openai`).

**API Version** *required*

The API version (e.g. `2025-04-01-preview`).

**Use Responses API**

Choose **Yes** to use the Responses API format, or **No** when your endpoint expects the non-Responses format.

For gateway authentication and header options, see [Gateway and Custom Endpoint Settings](#gateway-and-custom-endpoint-settings).

### Anthropic

**API Key**

Your Anthropic API key from `console.anthropic.com`. Use this or a **Claude Subscription Token**, not both.

**Claude Subscription Token**

A token generated by running `claude setup-token`. Usage is billed against your Claude subscription, and available models depend on your plan. Use this or an **API Key**, not both.

**Base URL**

Optional. The URL of an Anthropic-compatible gateway. The gateway must support the Anthropic `/v1/messages` API. OpenAI-compatible endpoints do not work.

**Model** *required*

The Claude model ID (for example, `claude-sonnet-4-5-20250929`) or an alias such as `sonnet`, `opus`, or `haiku`.

**Fallback Model**

Optional. A model to use when the primary model is unavailable.

> [!NOTE]
>
> An Anthropic model configured with only a **Claude Subscription Token** works with the **Claude** engine. The **Overcut** engine requires an Anthropic **API Key**.

### AWS Bedrock

**Bedrock API Key**

A Bedrock API key generated in the AWS console. When you provide this key, you can leave both IAM credential fields empty.

**Access Key ID**

Your AWS access key ID. Not needed when a **Bedrock API Key** is set; required together with **Secret Access Key** when using IAM credentials.

**Secret Access Key**

Your AWS secret access key. Not needed when a **Bedrock API Key** is set; required together with **Access Key ID** when using IAM credentials.

**Region** *required*

The AWS region where your Bedrock models are available (e.g. `us-east-1`).

**Model** *required*

The Bedrock model ID or inference-profile ID (e.g. `anthropic.claude-3-sonnet-20240229-v1:0`).

> [!NOTE]
>
> Provide either a **Bedrock API Key** or a complete **Access Key ID** and **Secret Access Key** pair. The **Bedrock API Key** takes precedence when both methods are populated. Validation fails if you provide only one IAM field or neither authentication method.

### OpenRouter

**API Key** *required*

Your OpenRouter API key.

**Model** *required*

The OpenRouter model identifier, in `provider/model` format (e.g. `anthropic/claude-sonnet-4`, `openai/gpt-4.1`).

**Base URL**

Optional. Overrides the default OpenRouter endpoint when you use a compatible gateway.

For gateway authentication and header options, see [Gateway and Custom Endpoint Settings](#gateway-and-custom-endpoint-settings).

***

## Gateway and Custom Endpoint Settings

Gateway settings appear only for providers that support OpenAI-compatible endpoints or static gateway headers. Use them when your provider traffic must pass through a proxy, API gateway, Azure API Management, or another OpenAI-compatible endpoint.

| Field | Appears for | Use it when |
| - | - | - |
| **Base URL** | OpenAI, OpenRouter, Azure OpenAI (Responses API) | You need to send requests to a proxy, gateway, custom endpoint, or compatible API instead of the provider's default endpoint. |
| **Auth method** | OpenAI, OpenRouter, Azure OpenAI (Responses API) | Your gateway expects the API credential in a specific authentication header. |
| **Custom auth header name** | OpenAI, OpenRouter, Azure OpenAI (Responses API) | You choose **Custom header** in **Auth method** and need to name the header that carries the credential. |
| **Extra headers (JSON)** | OpenAI, OpenRouter, Azure OpenAI, Azure OpenAI (Responses API) | Your gateway requires static routing headers, tenant headers, or other fixed headers on every request. |
| **Use Responses API** | Azure OpenAI (Responses API) | You need to choose whether the endpoint uses the Responses API format. |

### Auth method choices

For OpenAI, OpenRouter, and Azure OpenAI (Responses API), choose the **Auth method** that matches your endpoint or gateway:

* **Bearer token (Authorization header)**: Sends the credential in the Authorization bearer header. This is the default choice for OpenAI-compatible endpoints.
* **api-key header**: Sends the credential in the `api-key` header. Use this when Azure OpenAI or your gateway expects an `api-key` header.
* **Custom header**: Sends the credential under the header you enter in **Custom auth header name**.

When you choose **Custom header**, fill in **Custom auth header name** with the exact header name your gateway expects, such as `x-api-key`. Overcut requires this field when **Auth method** is **Custom header**.

### Extra headers (JSON)

Use **Extra headers (JSON)** for static headers that should be sent with every request to the endpoint. The value must be a JSON object. Header names and header values must both be strings.

```json theme={"dark"}
{
  "X-Tenant-Id": "acme",
  "X-Gateway-Route": "production"
}
```

Do not use **Extra headers (JSON)** for the primary API credential when **Auth method** can represent it. Use **Auth method** and **Custom auth header name** for the credential header, then use **Extra headers (JSON)** for additional fixed headers.

***

## Assigning Models

### Per-Agent

Each agent has a model selector in its settings. Choose a specific model or leave it on **Default Model** to inherit from the workflow or workspace.

**1. Open the agent**

Navigate to **Agent Roles** and select an agent.

**2. Select a model**

Use the **Model** dropdown to pick a custom model or **Default Model**.

### Per-Workflow

Set a workflow-level default in the Workflow Builder so all agents in that workflow inherit the same model unless they have their own override.

**1. Open Workflow Settings**

Click the canvas background to open **Workflow Settings**.

**2. Set Default LLM Model**

Select a model from the **Default LLM Model** dropdown.

### Per-Workspace

Set a workspace-wide default in **Account → Settings**. All workflows and agents that don't specify their own model will use this default.

***

## Inactive Models

Set a model to inactive when you want to stop it from being selected without losing its configuration. Inactive models remain visible in **LLM Models** so you can review them, edit their details, or reactivate them: open the model and use the **Inactive** control to switch it back to **Active**.

Inactive models are hidden anywhere a model is selected: agent **Model** dropdowns, workflow **Default LLM Model** dropdowns, and the workspace default model picker.

## Token Limits per Model

To cap how many tokens one of your models can use per day, week, or month, add a token limit on it from the **Limits** page. A run that calls a model whose limit is full is stopped. Limits can be set only on models your workspace connected, not on Overcut's system models. See [Usage Limits](https://docs.overcut.ai/docs/governance/usage-limits.md).

***

## Model Cascade

Model resolution depends on the execution engine. Both engines use the first configured value in their cascade, but the Claude engine has its own workspace default and eligibility requirements.

### Overcut engine cascade

1. **Coordinator override**: The model selected for the coordinator in an Agent Session step. This override applies only to the coordinator, not its sub-agents.
2. **Agent model**: The agent's own model selection.
3. **Workflow default**: The **Default LLM Model** set in Workflow Settings.
4. **Workspace default**: The **Default LLM Model** set in Account → Settings.
5. **System default**: Overcut's managed default model.

### Claude engine cascade

1. **Coordinator override**: The model selected for the coordinator in an Agent Session step.
2. **Agent model**: The agent's own model selection.
3. **Workflow default**: The **Default LLM Model** set in Workflow Settings.
4. **Workspace Claude default**: The **Default Claude Engine Model** set in Account → Settings.
5. **Main workspace default**: The **Default LLM Model** set in Account → Settings.

**Default Claude Engine Model** is separate from **Default LLM Model**, so you can choose a Claude-compatible workspace default without changing the default for the Overcut engine. You can also clear **Default Claude Engine Model** to let the Claude cascade continue to the main workspace default.

The Claude engine validates the first model resolved by this order. It does not skip an invalid candidate and continue down the cascade. The resolved model must be active, owned by the current workspace, non-system, and provided by Anthropic or AWS Bedrock. If it does not meet every requirement, the step fails. The Claude engine does not fall back to a system model.

> [!NOTE]
>
> For a step-by-step walkthrough of configuring defaults at each level, see the [Default Model Configuration](https://docs.overcut.ai/docs/quick-starts/default-model-configuration.md) guide.

***

## Overcut vs. Claude

Overcut supports two execution engines. In the Workflow Builder, use **Execution Engine** to select **Overcut** or **Claude** for an agent step. This section covers model eligibility only. For what else changes between engines (tools, sub-agents, recovery, usage reporting), see [Execution Engines](https://docs.overcut.ai/docs/concepts/execution-engines.md).

### Overcut

The default engine supports every provider listed on this page.

* **Model selection**: Uses agent, workflow, and workspace model settings, with a system model available as the final fallback.
* **Providers**: OpenAI, Azure OpenAI, Anthropic, AWS Bedrock, and OpenRouter.
* **Credentials and billing**: Custom models use your provider credentials and billing. System models use Overcut billing.

### Claude

The Claude engine runs the Claude Agent SDK with credentials from a compatible custom **LLM Model**.

* **Eligible models**: The resolved model must be active, owned by the current workspace, non-system, and provided by Anthropic or AWS Bedrock.
* **Model selection**: Uses the Claude-specific cascade above, including the separate **Default Claude Engine Model**. The first resolved candidate must be eligible.
* **Credentials and billing**: Usage goes through the Anthropic or AWS credentials saved on the selected model.
* **No system fallback**: The Claude engine cannot use system models. If the cascade does not resolve an eligible custom model, the step fails and you must select or configure one.

> [!NOTE]
>
> Provider compatibility differs by engine. OpenAI, Azure OpenAI, and OpenRouter models can run with the **Overcut** engine, but not the **Claude** engine. An Anthropic model that uses only a **Claude Subscription Token** can run only with the **Claude** engine.

> [!TIP]
>
> Both engines support [MCP Servers](https://docs.overcut.ai/docs/reference/mcp-servers.md), the same agent roles, and the same Overcut tools for ticketing, pull requests, and Git operations.

***

## Security

* API keys are **encrypted at rest** and never returned through the UI or API.
* Decrypting a model's configuration requires the `llmModel.readEncryptedConfig` permission.
* System models (managed by Overcut) cannot be edited or deleted by workspace users.

***

## Next Steps

* **[Default Model Configuration](https://docs.overcut.ai/docs/quick-starts/default-model-configuration.md)**: Step-by-step guide for setting workspace, workflow, and coordinator defaults
* **[Claude Agent SDK Integration](https://docs.overcut.ai/docs/integrations/claude-agent-sdk.md)**: Detailed setup guide for the Claude Code engine
* **[Vault](https://docs.overcut.ai/docs/reference/vault.md)**: Manage secrets used across your workspace
* **[Core Building Blocks](https://docs.overcut.ai/docs/building-blocks.md)**: Understand how agents, actions, and triggers connect


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