Skip to main content

Connecting Your Anthropic Account

This guide walks you through connecting your Anthropic account to CloudYali for cost tracking and optimization.


Prerequisites

Before you begin, ensure you have:

  • An Anthropic Organization (individual accounts cannot generate Admin API keys)
  • Organization Admin access to generate API keys in the Anthropic Console
  • A CloudYali account with permissions to add cloud integrations
Organization Required

Admin API keys are only available to Anthropic Organizations. If you have an individual account, you'll need to set up an organization first.

To create or verify your organization:

  1. Go to console.anthropic.com
  2. Navigate to SettingsOrganization
  3. Follow the prompts to set up your organization if not already configured

Step 1: Access Cloud Providers in CloudYali

  1. Log in to your CloudYali account
  2. Navigate to Settings in the left sidebar
  3. Select Cloud Providers from the settings menu

Step 2: Select Anthropic Integration

On the Cloud Providers page, locate the Anthropic integration card and click Connect or Add Account.

Anthropic Integration Card


Step 3: Generate an Admin API Key in Anthropic Console

  1. Open a new browser tab and go to the Anthropic Console
  2. Log in with your Anthropic account credentials
  3. Navigate to ManageAPI keys
  4. Select the Admin keys tab
  5. Click + Create Admin Key
  6. Enter a descriptive name (e.g., "CloudYali Integration")
  7. Click Add and copy the generated API key
Store Your Key Securely
  • Copy and store this key immediately—you won't be able to view it again after leaving the page
  • Admin API keys start with sk-ant-admin
  • CloudYali uses this key in read-only mode to access usage and cost data only

Step 4: Enter API Key in CloudYali

  1. Return to CloudYali's Anthropic onboarding form
  2. Paste your Admin API key in the API Key field
  3. The key will be validated automatically

Step 5: Configure Organization Details

Enter your Anthropic organization information:

  • Organization ID: Found in your Anthropic Console under Settings → Organization
  • Organization Name: A friendly name for reference in CloudYali (e.g., "My Company - Production")

Step 6: Add Workspace (Optional)

If your organization uses multiple Anthropic workspaces, you can configure workspace-level tracking:

  1. Toggle Enable Workspace Tracking
  2. Enter the Workspace ID from your Anthropic Console
  3. Provide a Workspace Name for easy identification

You can add additional workspaces later from the account settings.


Step 7: Verify Connection

  1. Click Connect or Save to complete the setup
  2. CloudYali will verify your API key and establish the connection
  3. A success message confirms your account is connected

What Happens Next

After connecting your Anthropic account:

  • Daily data syncs run automatically once per day
  • Initial data typically appears within 24 hours of connecting
  • Historical data from the last 15 days is imported during the first sync
  • Cost reports become available in the Cost Analysis section
Data Sync Schedule

CloudYali syncs your Anthropic usage data once daily. Unlike real-time integrations, you should expect to see your cost data within 24 hours of connecting your account.

You can monitor sync status from the Cloud Providers page.

Next Steps

Once your data is synced, explore these features:


Troubleshooting

Invalid API Key Error

  • Ensure you copied the complete API key without extra spaces
  • Verify the key starts with sk-ant-admin (Admin key format)
  • Check that the key hasn't been revoked in the Anthropic Console
  • Confirm you're using an Admin key, not a regular API key

"Organization Required" Error

  • Admin API keys require an Anthropic Organization
  • Individual accounts cannot generate Admin keys
  • Set up an organization in your Anthropic Console first

Connection Timeout

  • Verify your network connection
  • Try regenerating a new API key in Anthropic Console
  • Contact support if the issue persists

Missing Cost Data

  • Data syncs run once daily—allow up to 24 hours for initial data to appear
  • Ensure your Anthropic account has recent API usage
  • Check that the API key has the correct permissions
  • Verify your organization has billing enabled

Managing Your Connection

After setup, you can:

  • View sync status from the Cloud Providers page
  • Update API key if you need to rotate credentials
  • Add workspaces for granular cost tracking
  • Disconnect the integration if no longer needed

For additional help, please contact our support team at support@cloudyali.io.