# Anthropic

Connect your Anthropic API key for unlimited features at cost.

---

## Overview

By integrating your Anthropic account with Suger, you can utilize your own Anthropic API key. This allows you to access certain AI-powered features within Suger, with billing for API usage handled directly by Anthropic.

### Org-Level vs User-Level

There are two types of Anthropic integrations:

| Type | Description | Billing |
|------|-------------|---------|
| **Org-Level** | Uses Anthropic API key for org-wide access to Claude models | Billed to the organization |
| **User-Level** | Either a personal **API key**, or a **Claude Code** connection tied to your own Anthropic account | Billed to the individual user |

At the user level there are **two connection methods** — connect with an API key, or connect Claude Code. Both are personal to you and billed to you; pick whichever matches how you already pay Anthropic. See [Create User Integration](#create-user-integration) below.

## Create Integration (Org-Level)

1.  Navigate to the [Suger Console Integration](https://console.suger.io/settings?tab=integrations) page.
2.  Find the **Anthropic** integration and click the `Connect` button.
3.  In the dialog that appears, provide the following information:
    - **API Key**: Your Anthropic API key for accessing Claude models.

> <img src="/img/integration/anthropic/create-integration.png" alt="Anthropic integration dialog with API key field" style="max-width:880px;width:100%;display:inline;margin:0 auto;box-shadow: 5px 5px 5px #eee" />

## Create User Integration

Use a user-level integration when you want Claude to run against **your own** Anthropic account with individual billing. Two connection methods are available.

### Option 1 — Anthropic API key

Use this when you have an Anthropic API key of your own.

1. Click `Connect Now` button in the User Integrations section
2. Enter your personal Anthropic API key
3. Return to Suger to confirm connection

### Option 2 — Claude Code

Use this when you want to connect your Anthropic account itself rather than manage an API key. This method uses a **manual code-paste (PKCE) authorization** — Suger gives you an authorization link, you approve it with Anthropic, and Anthropic hands you back a code that you paste into Suger to finish the connection. No API key is created or stored.

1. Find the **Claude Code** card in the User Integrations section and click `Connect Now`.
2. The **Connect Claude Code** dialog opens. Click **Open authorization page** — it takes you to Anthropic.
3. Sign in to your Anthropic account if prompted, and approve the request.
4. Anthropic displays an authorization **code**. Copy it.
5. Paste it into **PKCE authorization code** and click **Complete connection**. The field also accepts the whole callback URL, a query string, or a `code#state` value, so you do not have to pick the code out by hand. The integration then shows as connected.

![The Connect Claude Code dialog — the instruction to open the authorization page and paste the code back, an "Open authorization page" button, and the PKCE authorization code box above the Complete connection button](images/claude-code-connect-dialog.png)

:::info
The link-then-paste step is intentional: it keeps the authorization on Anthropic's own page and means Suger never sees your Anthropic password. Complete the paste in the same sitting — if you leave the dialog before pasting the code, start the connect flow again to get a fresh link.
:::

This is the Anthropic counterpart to the OpenAI **Codex** user integration, which uses a device-code flow instead — see [OpenAI](/integrations/openai/#create-user-integration-codex).

:::warning
Deleting the integration will remove access to Claude immediately.
Your API key is stored securely but deletion cannot be undone.
:::

## Edit Integration

Editing the Anthropic integration is not supported. To change the API key, you must delete the current integration and create a new one.

## Delete Integration

You can delete the Anthropic integration at any time. Please be aware that this action is irreversible and will permanently remove the integration credentials.
