Anthropic launched the Claude Code Analytics API, giving enterprise teams programmatic access to daily aggregated usage metrics across their organisation. The API enables custom dashboards and reporting for engineering leaders who need to measure the impact of AI-assisted development at scale.
The metrics tracked are comprehensive. Organisations can monitor developer productivity through session counts, lines of code added and removed, commits created, and pull requests opened using Claude Code. Tool usage analytics show acceptance and rejection rates for different Claude Code capabilities, revealing which features teams actually rely on versus which they override. Cost analysis endpoints break down spending by team, user, and project — critical data for organisations managing AI tooling budgets across hundreds of developers.
The launch coincides with Claude Code's 300% user growth, which created urgent demand from enterprise customers for visibility into how their teams use the tool. The New Stack reported that the analytics dashboard was one of the most requested enterprise features, as engineering managers need to justify AI tooling investment with concrete productivity data rather than anecdotal reports.
For context engineers managing team adoption, the Analytics API answers the questions that matter most: which developers are getting value from Claude Code, which workflows benefit most from AI assistance, and where the organisation should invest in training or process changes to maximise returns on their Claude Code deployment.