> ## 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.

# Store your Anthropic key

> Store the Anthropic API key your organization uses for Upsun Dispatch workflows.

Upsun Dispatch workflows that use an AI model require a model key for your organization. Upsun Dispatch supports organization-level model keys for Anthropic and [OpenAI](/dispatch/docs/models/openai).

<Info>
  Model keys belong to the organization, not to an individual repository, GitHub installation, or GitLab project. Store the key once for the organization before running workflows such as [Code review](/dispatch/docs/workflows/code-review).
</Info>

## Store an Anthropic key

1. Sign in to Upsun Dispatch and open the organization you want to configure.
2. Go to the organization's **AI model keys** settings.
3. Select **Anthropic**.
4. Select **Add key**.
5. Enter your Anthropic API key in **API key**.
6. Select **Save**.

Upsun Dispatch validates the key with Anthropic before storing it. If the key is accepted, Upsun Dispatch stores it for the organization and does not show the full value again.

## Check key status

After a key is stored, Upsun Dispatch shows secret-free metadata only, including:

* the last four characters of the stored key,
* when the key was set, and
* when the key was last tested.

Upsun Dispatch never returns or displays the complete API key after storage.

## Rotate a key

To rotate the organization's Anthropic key, store the new key from the same settings area. The new key replaces the previous stored value.

After rotation, use the key status metadata to confirm the new key is set. The full key value is still hidden.

## Remove a key

Remove the Anthropic key if the organization should no longer use it.

Removing the key does not require you to disconnect source integrations. However, workflow runs that need the Anthropic key fail until you store a new key.

## Next steps

<CardGroup cols={2}>
  <Card title="Run your first review" href="/dispatch/docs/get-started/quickstart">
    Connect a repository, open a pull request or merge request, and watch Upsun Dispatch publish a review.
  </Card>

  <Card title="Learn about Code review" href="/dispatch/docs/workflows/code-review">
    See how Upsun Dispatch reviews GitHub pull requests and GitLab merge requests.
  </Card>
</CardGroup>
