By Person and Tool
The Person breakdown lists each engineer who has run at least one session in the selected period. For each person you see:- Sessions — total session count across all tools
- Cost — total spend attributed to them
- Cost per merged change — AI spend divided by the number of commits or PRs merged during the period
- Entitlement usage — how their spend breaks down across seat subscriptions, metered API keys, and prepaid credits
By Model
The Model breakdown shows token spend and cost grouped by the model that handled each call. Models you might see include:claude-sonnet-4.5gpt-5-codexopus-4.1grok-4-fasthaiku-4
Calls to the same model made via different routes — for example, Claude Sonnet called directly through the Anthropic API versus routed through OpenRouter — are priced separately and labeled with their route. The model name alone does not determine the rate.
By Provider and Rail
The Provider breakdown groups spend by the organization that billed the tokens and by entitlement type:
The rail column distinguishes between subscription seats (fixed cost per developer), metered keys (pay-per-token), and prepaid credits. Understanding rail distribution helps you decide whether to move more traffic onto seats or keep metered keys for overflow.
Change Context
From any row in any breakdown, you can navigate to the pull requests and commits associated with that person’s or model’s sessions. For each change Terma shows:- AI activity count — number of sessions that contributed to this change
- Attribution score — confidence that the session output maps to the commit content
- Review rounds — how many review cycles the PR went through before merge
- CI retries — how many times CI had to re-run before the change landed
Cross-Rail Findings
Terma surfaces findings when it detects spending patterns that suggest an inefficiency across your entitlement mix:- Rail imbalance — activity is heavily concentrated on one rail while another has available headroom (e.g. metered key spend is high while seat licenses sit underused)
- Window throttles — engineers are hitting their seat rate limit by mid-day, forcing fallback to metered keys at higher per-token cost
- Metered key handling work — tasks that required multiple long-context calls used a metered key when a seat subscription would have been cheaper for the volume
- Personal keys on work repos — sessions attributed to engineers show API key spend that does not map to any team-provisioned entitlement, suggesting personal keys are in use for work tasks
Cost per Merged Change
Cost per merged change is the headline efficiency metric in the Breakdowns view. It answers the question: for every piece of code that actually shipped, how much did AI assistance cost? You can compare this metric:- Across people — identify whether certain engineers get more value from the same AI spend
- Across tools — compare whether Claude Code or Codex sessions result in a lower cost per merged change on your codebase
- Over time — track whether the metric improves as your team builds better prompting habits and context documents
From the CLI
Useterma usage to pull the same data into your terminal. The --group flag controls the pivot dimension:
Group by model
Group by provider
Filter to one person
-o json or -o csv for machine-readable output suitable for further analysis or export to a spreadsheet.