Skip to main content

Connect Anthropic

Anthropic cost and usage from your organization appear in CloudYali after you connect an Admin API key. CloudYali reads cost by workspace, model and API key, next to your cloud spend. Setup takes about 5 minutes.

Before you start​

  • Your Anthropic account must be an organization, not a standalone account.
  • You need to be an organization admin in Anthropic to create an Admin API key. See Anthropic Admin API key.

What CloudYali can read​

DataWhy CloudYali needs it
The cost report, by workspace and line itemAnthropic cost in Cost Explorer and budgets
Usage by model, workspace and API keySplitting cost by model and by key
Claude Code usageClaude Code activity and cost, when your organization has it
Workspaces, API keys, users and workspace membersNaming the workspaces and keys behind the cost

An Admin API key can do more than read. Anthropic permissions lists the calls CloudYali makes.

Connect Anthropic​

  1. In CloudYali, open Integrations and select Connect on the Anthropic card (Add account if Anthropic is already connected).
  2. Enter an Account name. It labels the connection on the Connected tab.
  3. Paste the Admin API key. It starts with sk-ant-.
  4. Select Connect.
Connect Anthropic: four steps to create an Admin API key in the Anthropic Console, then the account name and the Admin API key field, filled and hidden.

CloudYali checks the key with Anthropic and reads the organization's name before it stores the key. The key is stored encrypted and is not shown again.

Check that it worked​

The console shows Connected with the organization's name, and the connection appears on the Connected tab of Integrations. The first data arrives with the next daily sync, not straight away. The first sync reads 6 months of cost and usage; after that, CloudYali syncs once a day.

Replace a key or disconnect​

The console cannot replace an Anthropic key yet. To change it, contact support@cloudyali.io.

To disconnect, open the Connected tab and select Remove on the row. CloudYali deletes the stored key and keeps the cost history it has. To revoke the key itself, delete it in the Anthropic Console under API keys → Admin keys.

Troubleshooting​

SymptomCauseFix
That does not look like an Anthropic keyThe key does not start with sk-ant-Copy the whole Admin API key
Failed to validate API key with AnthropicThe key is a standard API key, not an Admin API key, or the account is not an organizationCreate an Admin API key in an Anthropic organization
An account for organization '…' is already connectedThis organization is already connected to CloudYaliFind it on the Connected tab
No data after a dayThe first daily sync has not run yetCheck Last sync on the Connected tab the next day