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

# AI models

> Store the model keys Upsun Dispatch uses to run AI-backed workflows.

Upsun Dispatch workflows that use an AI model require a model key for your organization. Model keys belong to the organization, not to an individual repository, GitHub installation, or GitLab project.

An organization can store model keys for Anthropic and OpenAI. If you store more than one key, choose the default model integration Upsun Dispatch should use for workflows unless a workflow setting or repository override selects a different model integration.

<Note>
  Store at least one model key before running workflows such as [Code review](/dispatch/docs/workflows/code-review). To configure workflow-level model selection or repository overrides, see [Workflows in Upsun Dispatch](/dispatch/docs/workflows#workflow-settings).
</Note>

## Supported model integrations

<CardGroup cols={2}>
  <Card title="Store your Anthropic key" href="/dispatch/docs/models/anthropic">
    Add, replace, or remove the Anthropic key for your organization.
  </Card>

  <Card title="Store your OpenAI key" href="/dispatch/docs/models/openai">
    Add, replace, or remove the OpenAI key for your organization.
  </Card>
</CardGroup>

## Manage organization model keys

In your organization's AI keys settings, use model key management to:

<img src="https://mintcdn.com/upsun-c9761871/Fg69dHDfguHpp19S/images/dispatch/docs-models-index-0.png?fit=max&auto=format&n=Fg69dHDfguHpp19S&q=85&s=7b74c302c2741f550d5d0ffa46f4fe41" alt="AI model keys settings showing Anthropic as the default integration and the OpenAI key form." width="1440" height="900" data-path="images/dispatch/docs-models-index-0.png" />

The Models settings screen shows stored keys and the default model integration.

* add a model key for Anthropic or OpenAI,
* replace an existing key when you rotate it,
* remove a key your organization should no longer use,
* choose the default model integration for workflows, and
* manage an optional API base URL for model integration settings.

After a key is stored, Upsun Dispatch keeps it at the organization level and does not tie it to one connected source integration. Workflow runs that require a model key need an available key for the selected model integration.
