Integrations

Anthropic (Claude Code) Integration

Connect your Anthropic API key to track Claude Code usage, token consumption, spend, and model breakdown across your engineering team.

Connecting Anthropic lets Koalr track Claude Code and Anthropic API usage across your organization — total token consumption, daily spend, model breakdown, and estimated engineering hours saved.

What Koalr syncs

  • Daily token usage — input tokens, output tokens, cache read tokens, and cache write tokens per day (30-day trend)
  • Total API spend — daily cost in USD, trended over 30 days
  • Model breakdown — distribution across claude-opus-4, claude-sonnet-4-5, claude-haiku-4-5, and other Claude models
  • Estimated hours saved — rough estimate based on token throughput ((inputTokens + outputTokens) / 750,000 × 8 hours)

Koalr tracks org-level Anthropic usage — the API does not expose per-developer attribution, so active user counts are not available for this integration.

Prerequisites

  • An Anthropic account with API key access
  • The API key must have read access to usage data (standard API keys include this)

Setup

  1. In Koalr, go to Integrations.
  2. Click Connect next to Anthropic (Claude Code).
  3. Paste your Anthropic API key (starts with sk-ant-api03-...).
  4. Click Connect Anthropic. Koalr syncs the past 30 days of usage data immediately.

AI Analytics dashboard

After connecting, Anthropic data appears in AI Analytics (/ai-analytics) under the Claude Code section:

  • Total input/output tokens — cumulative 30-day token consumption
  • Total spend — USD cost over the last 30 days
  • Top models — which Claude models your team uses most, by request count
  • Daily token trend — stacked area chart of input vs. output tokens per day
  • Estimated hours saved — productivity impact estimate

The dashboard also shows GitHub Copilot and Cursor data side-by-side if those integrations are connected.

Privacy and visibility

  • Koalr reads only usage metadata (token counts, model names, timestamps, costs) from the Anthropic API
  • No prompt content, completions, or code is ever accessed
  • Usage data is stored encrypted in Koalr's database and is only visible to Admins and Owners of your organization

Troubleshooting

"Failed to connect" error: Verify the API key is valid and hasn't been revoked. The key must be from the same Anthropic organization whose usage you want to track.

Data showing 0 after connecting: Anthropic's usage API may have a short delay (up to a few hours). Check again the following day, or trigger a manual sync from the integrations page.

No per-developer breakdown: The Anthropic API provides only org-level aggregates. Per-developer attribution is not available through the API. If your team uses Claude Code heavily, Cursor's API (which does provide per-member data) may be a complementary integration.