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

# Models

> Configure model availability, fallback, and credentials for your organization.

Open [Settings > Models](https://app.cotool.ai/platform/models) to see the built-in models available to your organization and change how chats and agents use them. The model picker in a chat or agent shows the choices available in that context.

> [!NOTE]
>
> To configure model settings, you need the **Manage Custom Models**
> permission (`setting.customModel.manage`).

## Automatic fallback and fast mode

* **Fall back to another provider** lets Cotool retry eligible failures, such as a provider outage or a model declining a request, on another model. Cotool manages fallback separately for its built-in Autonomous Hunt and Detection Engineer agents.
* **Choose fallback models** applies to declined requests. With automatic fallback on, enable this setting and add eligible built-in or custom models in the order Cotool should try them. With no custom order, Cotool chooses the fallback. Models that are unavailable at runtime aren't used.
* **Allow fast mode** is available on token-based plans. It permits supported chats and agents to use fast or Ultrafast speeds at higher prices. Turning it off returns agents to standard speed.

A run that starts on a custom endpoint is not rerouted to another provider.

## Bring your own key (Enterprise)

Use your organization's direct Anthropic or OpenAI API keys for built-in model calls, including chats and agent runs.

**1. Add a key**

On **Bring your own key**, select **Add key** for either provider and
enter its API key. For OpenAI, choose the endpoint that matches your
provider account.

**2. Review agents that need attention**

Before switching, review **Agents need attention**. A saved agent whose
selected model isn't supported by your keys can run on an available
substitute without changing its saved configuration. Choose a supported
model in the agent settings or use **Update to suggested models** where
offered to change those settings.

**3. Turn on your keys**

A saved key does not change routing until you turn on **Use my API
keys**; the change can take up to a minute.

> [!WARNING]
>
> If no usable key can serve a model, the call fails; Cotool doesn't silently
> use its own provider credentials. Your provider bills your account for those
> model calls.

Use **Replace** to rotate a key. A rejected key won't serve requests. To remove the last usable key, first turn off **Use my API keys**. Turning the setting off restores Cotool credentials for managed models but keeps your saved keys.

## Custom model endpoints (Enterprise)

A custom endpoint is an internet-reachable, OpenAI-compatible server, such as vLLM, LiteLLM, or OpenRouter. Its optional API key is separate from the Anthropic and OpenAI keys above. Custom models aren't offered while **Use my API keys** is on.

**1. Add the endpoint**

Select **Add custom endpoint**. Enter a name, a base URL such as
`https://models.example.com/v1`, and the API key if the endpoint
requires one.

**2. Add models**

Select models from the endpoint's `/models` list, or enter model IDs
manually if discovery isn't available. Only models you add appear as
model choices.

**3. Test the models**

Check the model status after Cotool tests it. Use **Test all models** or
an individual model's **Test** action to verify that the endpoint
handles a request with a tool. Review the failure detail if the test
doesn't pass.

**4. Correct limits if needed**

Use **Edit limits** to correct an assumed context window or output token
limit if you know the model's actual limits.

Use **Refresh model list** and **Add models** to make newly discovered models available.

> [!WARNING]
>
> Before removing a model or deleting its endpoint, check any agents or
> fallback settings that use it. Removing a model makes it unavailable to
> chats and agents; deleting the endpoint also deletes its stored key.


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