Plugins
ApplicationCommunity
Claude Code Stats logo

Claude Code Stats

timurdigital

Get plugin

Overview

The Overview tab is the landing page of Claude Code Stats. It summarizes your team's Claude Code usage for the selected time range and filters.

The Overview tab with totals, cost and token trends and environment breakdowns

Check usage at a glance

The top row shows four totals:

PanelWhat it shows
Total CostEstimated cost in US dollars.
Total TokensAll tokens: input, output, cache reads and cache writes.
SessionsDistinct Claude Code sessions started. Launches of the claude agents dashboard don't count.
Active UsersTeam members whose Claude Code reported cost data in the period. This includes members with an open but idle session, because Claude Code keeps reporting its cost counter. Unattributed usage isn't counted.

Cost is the estimate Claude Code reports. For billing data, use your Anthropic or cloud provider console.

The row under the totals compares cost, tokens, sessions and active users with the previous period of the same length, such as the 7 days before the last 7 days. The row is hidden when the previous period had no cost, such as in a new setup. Otherwise each panel shows No previous period when its own total had nothing to compare with, and -100% when the previous period had some but this period has none.

Check efficiency

The second row shows three ratios for the period:

PanelWhat it shows
Cache Hit RateThe share of prompt tokens read from the prompt cache: cache reads divided by input, cache reads and cache writes. Cache reads cost much less than input.
Cost per SessionEstimated cost divided by Sessions.
Cost per Active HourEstimated cost divided by active time, in hours.

Compare team members

Team Leaderboard has one row per team member with their cost, tokens, sessions, active time, lines added and removed, commits, pull requests and edit acceptance rate. It grows with the number of members and scrolls past about five. It's sorted by cost. Click a column header to sort by it, or click a member's name to filter every tab to that member, keeping your other filters. Usage that can't be attributed to anyone isn't listed, but still counts in the totals and the other per-member panels.

PanelWhat it shows
Cost Over TimeCost per interval, one series per model.
Cost by Team MemberEach member's share of cost.
Token Usage Over TimeTokens per interval, stacked by token type.
Active Time Over TimeActive time per interval, stacked as User (interaction, such as typing) and CLI (running tools and generating responses).
Sessions by Start TypeSessions by how they started: fresh, resume, continue or agents_view.

Check your team's environment

The bottom row shows how usage splits across environments, weighted by cost: OS Type, Architecture, Terminal, Claude Code Version and Surface. Surface shows where Claude Code ran, such as the CLI, the VS Code extension, the desktop app or the SDK. It needs OTEL_METRICS_INCLUDE_ENTRYPOINT=true and says so when it's missing.

Filters on this tab

Team Member applies to every panel except Cost by Team Member and Team Leaderboard. Model applies to the cost and token panels only: Total Cost, Total Tokens, Cache Hit Rate, Cost per Session, Cost per Active Hour, Cost Over Time, Cost by Team Member, Token Usage Over Time and the cost and tokens columns of Team Leaderboard. Active time isn't recorded per model, so with a model selected Cost per Active Hour divides that model's cost by all active time. Repository and any filter labels apply to every panel.

Insights

  • Adoption

    Running on 816 active Grafana instances.

  • Activity

    Last updated 20 Nov 2026.

    3 releases in the past year.

Version
2.0.2
Dependencies
  • Grafana >=13.2.0
Developer
timurdigital

Grafana Cloud

Connect any plugin in Grafana Cloud.

  • 150+ data source integrations
  • Grafana Assistant - AI that correlates your data, builds queries, and answers questions
  • 10k Prometheus metrics + 50 GB logs, traces, and profiles on the free tier
  • ...and more
Create free account