> For the complete documentation index, see [llms.txt](https://codemash.gitbook.io/codemash/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://codemash.gitbook.io/codemash/cloud/ai/llm/providers/anthropic.md).

# Anthropic

Connect Anthropic as an LLM integration.

Anthropic runs the Claude models.

{% hint style="warning" %}
You can connect and test Anthropic in Cloud, but the AI chat cannot run on it yet: every chat question fails with *Error while running chat turn* (the server has no Anthropic chat connector). For the chat, use an OpenAI-compatible provider — [OpenAI](/codemash/cloud/ai/llm/providers/openai.md), [Groq](/codemash/cloud/ai/llm/providers/groq.md), [Mistral](/codemash/cloud/ai/llm/providers/mistral.md), [OpenRouter](/codemash/cloud/ai/llm/providers/openrouter.md) or [Grok](/codemash/cloud/ai/llm/providers/grok.md). Through the SDK, CLI and API the integration is saved the same way: [Save Llm Integration](/codemash/api-reference/ai/integrations/save-llm-integration.md).
{% endhint %}

## Get your credentials

1. Open the [Claude Console](https://console.anthropic.com/) and sign in.
2. Go to **Settings → API keys** and press **Create Key**; name it, for example `norbix-reports`, and pick the workspace.
3. Copy the key (it starts with `sk-ant-`). It is shown only once. Buy credits under **Settings → Billing**.
4. Pick a model from the [models overview](https://docs.claude.com/en/docs/about-claude/models/overview), for example `claude-sonnet-4-6`.

More in the provider's own guide: [Claude API — get started](https://docs.claude.com/en/api/getting-started).

## Connect it in Cloud

**Where:** Project → Integrations → LLM → **Add New Integration** → Anthropic → **Connect** · `/projects/<project>/ai/llms/integrations/new/anthropic`

| Field            | Required | What it does                                                                                                                              | Example                       |
| ---------------- | -------- | ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------- |
| API Key          | yes      | The Anthropic key. Stored encrypted, never shown again.                                                                                   | `sk-ant-placeholder-not-real` |
| Endpoint         | no       | Another address for the Anthropic API. Empty = `https://api.anthropic.com/v1` (Cloud shows this value when you open a saved integration). | empty                         |
| Default Model    | no       | The model used when a request names none. Empty = the provider's default.                                                                 | `claude-sonnet-4-6`           |
| Integration Name | yes      | How the integration is listed in Norbix.                                                                                                  | `Report writer`               |

<figure><img src="https://712692422-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHy372bqsaex2cqS3ikhL%2Fuploads%2Fgit-blob-28b22fa9049bc55593372c3b201b822f0c0d0703%2Fanthropic-form-1.png?alt=media" alt="New Anthropic Integration form filled with placeholder values"><figcaption><p>The filled form (the key is a made-up placeholder).</p></figcaption></figure>

Press **Save**. The title becomes *Editing Anthropic integration*, the badges say **ENABLED** and **NOT TESTED**, the id (`int_…`) appears with a copy button, the key field is empty again with the note that the key will not be displayed, and the test panel appears at the bottom.

<figure><img src="https://712692422-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHy372bqsaex2cqS3ikhL%2Fuploads%2Fgit-blob-cf0f4a3a860ccb44ad9c06e4a214d720e8634e52%2Fanthropic-saved-2.png?alt=media" alt="The Anthropic integration after save: badges ENABLED and NOT TESTED, the integration id, and the Test integration panel"><figcaption><p>After save.</p></figcaption></figure>

## Test and set as default

**Test integration** checks only that Norbix can read the stored key; it does not call Anthropic, so a wrong key also passes — see [Test an LLM integration](/codemash/cloud/ai/llm/test.md). Ask the [AI chat](/codemash/cloud/ai/ai-chat.md) a question to check it for real.

The first LLM of an environment gets the **DEFAULT** badge. To make this one the model the AI uses, pick it as the project's **Default LLM** — see [Set the default LLM](/codemash/cloud/ai/llm/set-default.md). To turn it off: [Disable or delete](/codemash/cloud/ai/llm/disable.md).

## Common errors

| Message                                                 | Cause                                                                                                                          | Fix                                                                                                         |
| ------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------- |
| *Required* under **API Key**                            | The key is empty — it is asked again on every save.                                                                            | Type the key again.                                                                                         |
| *Domain URL format is invalid* (`CM-ERRORS-DOMAIN-002`) | **Endpoint** is not a full address.                                                                                            | Write it with `http://` or `https://`.                                                                      |
| *Error while running chat turn* on every chat question  | Norbix has no chat connector for Anthropic yet: the server log says *Service of type 'IChatCompletionService' not registered*. | Use an OpenAI-compatible provider (OpenAI, Groq, Mistral, OpenRouter, Grok) for the chat until it is added. |
