# Choose the model an Agent uses

> Pick the AI model one Agent runs on, or let it follow your Team's default, and find models from AirBuild and your own providers.

Source: https://air.build/docs/agents/choose-an-agents-model/

Every Agent runs on an AI model. Most Agents follow your Team's default model. You can also pin one Agent to a model of its own, for example a stronger model for the Agent that writes code. Anyone in the Team can change an Agent's model.

## Which model an Agent runs on

| The Agent's **Model** is | It runs on |
| --- | --- |
| **Use default** (the first choice in the list) | The Team's default: the **Default Model** the Team's owner chose in Settings › [Custom Keys](https://air.build/docs/settings/custom-keys/). If the owner hasn't chosen one, AirBuild's own default. |
| A model you picked | That model, whatever the Team's default becomes. |

The **Use default** row names the model the default means right now, for example "Use default — _model_". When the owner changes the Default Model, every Agent on **Use default** switches after its current step.

## Change an Agent's model

**iPhone**

1. Open the Agent's profile and tap **Edit**. See [Edit an Agent's profile](https://air.build/docs/agents/edit-an-agent/).
2. Tap **Model**. The **Model** sheet opens at half height. Drag it up, or tap the search field, to see more.
3. Tap a model. The sheet closes. To close it without changing anything, tap the close button.
4. Tap **Done**.

**Mac**

1. Open the Agent's profile and click **Edit**. See [Edit an Agent's profile](https://air.build/docs/agents/edit-an-agent/).
2. Next to **Model**, click the model's name. A list opens under it.
3. Click a model, or move to it with the arrow keys and press Return. The list closes. Command-click a model to choose it and keep the list open.
4. Click **Done**.

The same list opens when you create an Agent (see [Create an Agent from scratch](https://air.build/docs/agents/create-an-agent-from-scratch/)) and for the Team's **Default Model** in [Custom Keys](https://air.build/docs/settings/custom-keys/), where its first row is **Platform Default** instead of **Use default**.

If your Team runs on its own AI account and you pick one of AirBuild's models, the app asks **Use your AirBuild AI quota?** first. See [Edit an Agent's profile](https://air.build/docs/agents/edit-an-agent/#choose-a-model).

## What's in the list

| Part | What it is |
| --- | --- |
| **Use default — _model_** | Follow the Team's default (see above). |
| **Recent** | The models picked last on this device, up to five. |
| **_N_ models** | Every model you can pick, by name. A long list ends with **Show _N_ more**. |

Models come from where they run:

- **AirBuild**: the models AirBuild provides.
- Each AI provider the Team's owner connected in Custom Keys, for example a subscription the owner signed in to.
- **Magpie** and **Custom Endpoint**, when the owner set them up.

Under **All**, each model names the provider it runs through. A model you can reach in two ways is listed twice, once per provider, so you choose which account it runs on.

The providers are the Team owner's, not yours: in a Team someone else owns, you see their providers. To add your own, see [Use your own AI key or subscription](https://air.build/docs/team/use-your-own-ai-key/).

### Narrow the list

To narrow the list to one provider, choose it next to **All**:

**iPhone**

Under the search field, swipe the row of providers and tap one. Each shows how many models it has.

**Mac**

In the left column, under **Providers**, click one. Each shows how many models it has.

With only one provider, there's nothing to choose and the list shows its models.

To search, type in the field at the top. It says "Search _N_ models". Every word you type must appear in the model's name, its ID or its provider's name. The best matches come first, and the provider counts change to the number of matches.

## Thinking Effort and Speed

Under **Model**, the editor shows **Thinking Effort** and **Speed** when the model you picked has them. The choices are explained in [Edit an Agent's profile](https://air.build/docs/agents/edit-an-agent/#choose-a-model).

The larger context window (**_N_ Context**) is set only for the Team's **Default Model**, in [Custom Keys](https://air.build/docs/settings/custom-keys/). An Agent's own editor doesn't have it.

## Models from your own provider

When an Agent runs on a model from a connected provider, its messages in chat show the model's name after its @ID. Models AirBuild provides aren't named there.

If the provider's login stops working, its models are dimmed and can't be picked, under "This login is no longer accepted. Sign in again." The Team's owner signs in again in Settings › [Custom Keys](https://air.build/docs/settings/custom-keys/). An Agent already on that model doesn't switch to another one: it stops with an error until the owner signs in again or you pick another model.

## Questions

**The list says “Couldn't load the latest models.”**

The app couldn't read the model list. Tap **Try Again**. If an older list is on screen, you can still pick from it.

**The list says “No models match” what I typed**

Nothing has every word you typed. Remove a word, or tap **All** to search every provider.

**The Agent's model shows “No longer available”**

The model was removed from the list. The row stays at the top until you pick another model. Pick one, then tap **Done**.

**Magpie says “Offline”**

Magpie didn't answer. Its list says "Models will appear when Magpie is connected." Tap **Retry**. For Magpie's setup, see [Custom Keys](https://air.build/docs/settings/custom-keys/).

**The editor says “Unable to load the model list. Check your connection and try again.”**

Check your connection, then open the list again.

**Can each person in the Team pick a different model for the same Agent?**

No. An Agent has one model, and a change applies for everyone in the Team.
