# Connect Anthropic

With Anthropic as the [model provider](https://docs.faustine.ai/workspace/model-providers/), Faustine calls the Anthropic API with your own key. One key covers analysis, updates, the Advanced editor and chat, and Anthropic bills the usage to your account.

## Before you begin

- An Anthropic API key. Create one in the [Claude Console](https://console.anthropic.com/settings/keys).
- For knowledge, an OpenAI API key. Anthropic has no embeddings API.

## Connect Anthropic

To connect:

1. In the portal, go to **Settings** > [**Model Provider**](https://auth.faustine.ai/go?to=%2Fsettings%3Ftab%3Dprovider) and select **Configure a provider**.
2. In **Provider**, select **Anthropic**.
3. In **Credentials**, enter the key in **Anthropic API key** and select **Continue**.
4. In **Embeddings**, select **OpenAI API key** and enter the **Model** and the **API key**, or select **Not configured**. See [Choose an embeddings provider](https://docs.faustine.ai/workspace/embeddings/).
5. Select **Continue**.
6. In **Review & save**, select **Test connection**.
7. Select **Save & activate**.

The tab shows the **Anthropic** card with an **Active** badge. The chat models an agent can pick come from the list Anthropic returns for your key.

## What the validation checks

**Test connection** and the save both send the key to Anthropic's models endpoint, which costs no tokens.

| Result | Meaning |
| --- | --- |
| **Credentials verified** | Anthropic accepted the key. |
| `The Anthropic API key was rejected by the provider (invalid or revoked)` | Anthropic answered 401 or 403. The configuration is not saved. |
| `Could not reach Anthropic to verify the key` | Anthropic did not answer. The test cannot tell whether the key works. |

If embeddings are configured, the test also sends one embeddings request and reports **Embeddings working** or the reason it failed.

## Replace the key

To rotate the key, select **Edit** in the **Credentials** row, enter the new key and save. Leaving **Anthropic API key (optional)** empty keeps the stored key.

## Next steps

- [Model providers](https://docs.faustine.ai/workspace/model-providers/): status, test and the other providers.
- [Choose an embeddings provider](https://docs.faustine.ai/workspace/embeddings/): turn on knowledge.
- [Choose the chat model](https://docs.faustine.ai/web-agents/chat-model/): pick the Claude model an agent answers with.
