---
title: "AI providers and gateways"
description: "Add your own model provider keys or a model gateway to an organization, rotate or remove them, and choose which gateway models agents may use."
---

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

# AI providers and gateways

**AI providers** holds the model credentials for your organization. By default, supported models use AI Agent credits. When you add your own key or gateway, AI Agent sends requests for those models through that account, and the billing, retention, and training terms of that account apply.

## Where to find it

Open the account menu at the bottom of the sidebar rail and click **Settings**. Click **AI providers** in the group named after your organization. The page is titled **Model connections**.

An organization without a paid plan sees an upgrade prompt in place of the key fields.

## Add a provider key

The **Inference credentials** section lists five providers: **OpenAI**, **Anthropic**, **Google AI**, **xAI**, and **DeepSeek**. Each shows **Connected**, **Needs attention**, or **Not connected**.

1. In the row of your provider, paste the key into the field.
2. Click **Save**. The button reads **Validating…** while AI Agent checks the key.

When the key is valid, the button reads **Saved** and a message reads "Provider key saved". When the key is not valid, the row shows the reason and nothing is saved. Without a key for a provider, supported models use AI Agent credits.

Saved keys are not shown again. The row reads "A key is stored securely." To replace one, paste a new key and click **Rotate**. To remove one, click the trash icon in the row. A row that reads **Needs attention** shows that the stored key stopped working on a recent request. Rotate it with a new key.

## Add a model gateway

A gateway gives you a catalog of models through one account. Open **Model gateways** at the end of the list. Three gateways are available:

- **OpenRouter**.
- **Vercel AI Gateway**.
- **Cloudflare AI Gateway**. It also needs your **Cloudflare account ID** and a **Gateway ID**.

Paste the key, then click **Validate** to check it, or click **Save**. A connected gateway has **Rotate**, **Sync**, and a trash icon. **Sync** refreshes the model catalog, and the row shows when it last synced. Models from a gateway need that gateway connection.

### Choose the models that agents may use

Each connected gateway shows a catalog with a **Search cached models** field. Every model has a **Certified** or **Uncertified** badge and an **Available** or **Unavailable** badge. The **Allowed** switch works only for a model that is both certified and available.

AI Agent never turns on newly discovered models by itself. Fallback stays off until you allow a certified model. If a search finds nothing, click **Sync** to refresh the catalog.

## Related pages

- [Organization settings](/account/organization-settings)
- [Plans, credits, and usage](/billing/plans-credits-and-usage)

Source: https://docs.aiagent.app/account/ai-providers/index.mdx
