Get the full picture on your AI adoption and impact.

We'll show you exactly how AI is impacting your speed and code quality.

NO CODE ACCESS
FREE AI ROI REPORT
NO CREDIT CARD
4.7/5
AI ROI

Tracking Token Consumption Across Copilot, Cursor, and Claude

October 8, 2026
Sudheer Bandaru
CEO

You can't track token consumption across Copilot, Cursor, and Claude Code in one native view, because the three tools don't report in the same unit. Claude Code exports tokens and cost through OpenTelemetry. Cursor exposes usage events and spending through an Admin API on Enterprise plans. GitHub Copilot reports adoption and activity through its usage metrics API and shows AI-credit cost in a dashboard. The workable approach is to pull each source, convert everything to dollars per user per day, tag it by team, and join it to merged pull requests from Git.

Most leaders discover this the hard way. Finance asks for total AI coding spend by team, and three admin consoles return three different answers in three different units.

Key takeaways

  • Tokens are not a common unit. Claude Code reports tokens and USD, Cursor reports usage events and spend, and Copilot reports adoption and activity with cost shown in AI credits.
  • Normalize to dollars per user per day first. Add tokens only where a source provides them.
  • Copilot’s usage metrics API does not include token consumption, and the ROI cost view is available only in the dashboard, per GitHub’s docs.
  • Cursor’s Admin and Analytics APIs are listed for Enterprise teams. Check your plan before you design around them.
  • Spend alone says little. Join it to merged PRs to get cost per merged PR, and flag spend with no matching commits or PRs.

Why is token tracking hard now that AI tools bill by usage?

Not long ago you paid a flat price per seat. Today, part of the bill moves with use. Cursor's pricing page says every plan includes a set amount of model usage and that on-demand usage beyond it is billed in arrears. GitHub's plans page prices Copilot with AI credits, where one credit is $0.01, and lets paid plans set a dollar budget for usage beyond the included allowance. Claude Code is billed by API token consumption, and Anthropic says per-developer costs vary widely with model choice, codebase size, and usage patterns.

Variable cost needs a variable view. A budget set once a year can't tell you that one team's agent run cost more than its seats did.

Where does each tool keep its usage data?

Tool Unit it reports Where to get it Gaps to plan for
Claude Code Tokens (input, output, cache read, cache creation) and USD OpenTelemetry metrics such as claude_code.token.usage and claude_code.cost.usage; Claude Console and org analytics for per-user spend (Anthropic docs, 2026) Telemetry is off by default. Costs are computed locally at list price unless an admin sets contracted rates, so they estimate the bill.
Cursor Usage events and spend, by team and user Admin API (usage, spending, spend limits) and Analytics API, listed for Enterprise teams; admin dashboard otherwise (Cursor docs, 2026) Token counts are not mentioned on the API overview page. Rate limits apply, about 20 requests per minute on Admin endpoints.
GitHub Copilot Adoption, engagement, acceptance, lines of code, PR metrics. Cost in AI credits Usage metrics APIs at enterprise, organization, repository and user level, plus NDJSON export (GitHub docs, 2026) Token consumption is not covered.
Cost-per-developer ROI views are dashboard-only, not in the API.

Two lessons follow. First, if your leadership asks for tokens across all three, say that only some sources provide them. Second, API access differs by plan, so a team on a lower tier may need the dashboard export instead.

What about DIY and open-source trackers?

Developers built their own answers to the visibility gap. Two examples are worth knowing. ccusage, an MIT-licensed command-line tool, analyzes token usage and cost from local data for Claude Code and a long list of other coding agent CLIs (ccusage on GitHub). Tokscale, also MIT-licensed, covers more than 60 clients and estimates cost from LiteLLM pricing data (Tokscale on GitHub).

They suit one developer checking a personal bill. They read data on that developer's machine, and the cost is an estimate. They give you no org-wide view, no identity mapping to your directory, and no link to pull requests. If you try to run them across 300 laptops, you'll spend your time on collection.

How do you track token consumption across all three tools?

Step 1: How do you normalize the data?

Create one table with the same columns for every source: date, tool, user ID from your identity provider, team, model, unit, quantity and USD. Convert each tool's native unit to dollars using the vendor's own cost field where one exists, and a price table you maintain where it doesn't. Keep the native quantity alongside the dollars so you can audit the conversion.

Tip

Label Claude Code telemetry by team at the source. Set CLAUDE_CODE_ENABLE_TELEMETRY=1, pick an exporter with OTEL_METRICS_EXPORTER, and add labels with OTEL_RESOURCE_ATTRIBUTES, for example team.id=platform,cost_center=eng-123. Values can’t contain spaces, and every custom key becomes a metric label, so keep them low-cardinality (Anthropic docs, 2026).

If you route API traffic through a gateway, a proxy such as LiteLLM tracks spend by virtual key, user and team, with budgets and rate limits per key (LiteLLM docs). Gateways only see the traffic you send through them, so seat-based tools used through their own apps stay outside it.

Step 2: How do you connect spend to engineering output?

Join the spend table to merged PRs from your Git provider by user and by week. Then compute two numbers per team: cost per merged PR, and the share of merged PRs that were AI-assisted. Telemetry counts creation, not merge. Claude Code's pull request metric counts PRs created, so merged outcomes, review time and rework have to come from Git and CI.

This is what we mean by token efficiency. It is the engineering value you get from the tokens you pay for, measured on code that merged. High efficiency means AI output merges and holds up. Low efficiency means code gets thrown away or expensive models do simple work. Our guide to AI metrics that prove ROI to your board and the post on why acceptance rate misleads explain why we avoid suggestion counts here.

Here is a hypothetical. A team spends $6,000 in a month across three tools and merges 150 AI-assisted PRs, so cost per merged PR is $40. Next month spend rises to $9,000 and merged AI-assisted PRs rise to 160. The cost per merged PR is now $56.25. Something changed and it's worth a conversation, even though the team 'used more AI'.

Step 3: How do you spot zombie agents and runaway CI?

Hivel uses the phrase zombie agent for an autonomous process that keeps consuming tokens after its task is done or its user has moved on. The causes are usually ordinary. Anthropic's cost docs name scheduled tasks that fire on their interval even while a session is idle, agent teammates that keep spending until they exit, and very long sessions that resend the full conversation with each request. Anthropic also says agent teams use roughly 7x more tokens than standard sessions when teammates run in plan mode (Anthropic docs, 2026).

Use a simple rule to catch them. For each user or service account, compare daily spend with that account's commits and PRs for the same days. Sustained spend with no matching output is the flag. Start with alerts for any account above your own 95th percentile of daily spend, and tune from 60 days of data.

Step 4: How do you check whether you're using the right model?

Anthropic's guidance is to use Sonnet for most coding tasks, reserve Opus for complex architectural decisions or multi-step reasoning, and set a default model deliberately. Check which model each team runs by default, then compare cost per merged PR by model for similar work. Models change quickly, so review the choice quarterly rather than hard-coding a rule.

How do you make renewal decisions with this data?

Run side-by-side trials with a purpose. Many teams compare Copilot and Cursor over a few weeks. Measure merged AI-assisted PRs, rework, and cost per merged PR for each tool and each cohort. As an illustration, if 95% of merged AI-assisted code in a pilot came from one tool, you'd have a strong case to consolidate seats on the next renewal. Use your own data, and look at rework before you decide. Our post AI Value Is a Measurement Problem, explains why boards need this evidence.

Frequently Asked Questions

How do I track token consumption across Copilot, Cursor and Claude in one place?

Consolidate seats, credits, and token usage from every AI tool into a single dashboard, since each vendor dashboard only shows its own activity. Then link that spend to merged code so you see what each token produced.

What is a zombie agent?

A zombie agent is an autonomous AI process that keeps consuming tokens after its task is done or its user has disengaged. Typical causes are background scripts and unmonitored CI jobs. Spot them through sustained token burn on a service account with no matching rise in merged code.

What does token efficiency mean, and how do I measure it?

Token efficiency is the engineering value you get per token consumed. High efficiency means AI output gets merged and ships. Low efficiency means code is thrown away or expensive models are used for simple tasks. Compare token spend against production-merged code, not vendor activity logs.