> For the complete documentation index, see [llms.txt](https://docs.logilica.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.logilica.com/integration/connecting-tools/claude-code.md).

# Claude Code

The Claude Code connector imports daily Claude Code usage for every developer in your Anthropic organisation, so your AI Coding dashboard shows how the tool contributes to your work — lines written, tool acceptance, token usage and estimated cost.

## Authentication

Logilica connects to Anthropic's organisation usage reporting at `https://api.anthropic.com` using an **Admin API key**, supplied in the `x-api-key` header.

An Admin API key is required — a standard Anthropic API key cannot read organisation-wide usage and cost reports. Admin keys are the only keys with access to the usage reporting used by this connector. The key is provided when you install the connector, and Logilica only reads usage data.

See [Connecting Tools](/integration/connecting-tools.md) for the general installation flow.

## What's Imported

Logilica reads Anthropic's Claude Code usage report and imports usage at a **daily, per-user** granularity, keyed on each developer's email address. For each developer and day it brings in:

* **Lines added and removed by Claude Code** — the AI-attributed line counts for that day.
* **Tool accepts and rejects** — accepted and rejected tool actions (edits, multi-edits, notebook edits and file writes), summed into total accepts and rejects.
* **Token counts** — total token usage, summed across all models used that day.
* **Estimated cost** — the estimated spend across all models for the day.
* **Most-used model** — the model the developer used most that day.

Contributor identities are created from the email address on each usage report, so usage resolves to the right developer and team.

## Good to Know

* **Kept in sync automatically.** After the initial import, Logilica refreshes this connection on a regular schedule — you don't need to re-trigger imports.
* **First import covers the last 180 days.** Logilica requests usage starting from 180 days before the scan date.
* **Usage is reported per day, per developer.** Unlike GitHub Copilot, Claude Code provides a per-user breakdown, so individual developer usage appears on the dashboard.
* **Claude Code data feeds the AI Coding dashboard**, where AI usage is shown alongside your delivery metrics.
