# Anthropic

> For the complete documentation index, see [llms.txt](https://www.jetbrains.com/help/air/llms.txt).

Before configuring a connection to the Anthropic provider, set up your Anthropic account and get a valid API key for authentication. For more information, refer to the [Anthropic documentation](https://docs.claude.com/en/get-started).

Procedure: Add Anthropic provider

1. In the sidebar, under AI governance, select Providers.

If you don't see this page, or the controls on this page are inactive, make sure your role has the necessary [permissions](roles.html#permissions)[permissions](https://www.jetbrains.com/help/air/roles.html#permissions).

2. Click Add provider and select Anthropic. The Anthropic provider card appears on the page.

3. In the Endpoint field, specify an endpoint URL for communicating with the Anthropic service. The default endpoint is `https://api.anthropic.com`.

4. In the API key field, specify an API key to access the Anthropic API. For more information, refer to the [Anthropic documentation](https://docs.claude.com/en/manage-claude/authentication).

5. Click Connect.

The provider is saved first, and then the connection to it is tested.

If the test fails, the provider is still saved. The Error status appears next to the provider's name, and the provider card stays open for editing and displays an error message that you can expand to view the details. Correct the configuration and click Connect again to update the provider.

If the test passes, the configuration form is closed and a success message is displayed in the lower-right corner.

> **Tip:**
> If the connection fails, ensure the configuration is correct, and your API key has not expired.

To add models, click Add model in the Models table. For more information, refer to [Managing models](ai-providers-manage-models.html).

To edit the provider configuration, click ![Ellipsis icon](images/union.svg) in the provider card, then select Edit credentials and update the necessary fields.

