Integrations · Agents

Claude Code cost per feature

See what every Claude Code session costs, on its feature, under the seat plan or API account that paid for it.

  • CollectorsThe mod with tc, or tc alone, the GitHub Action
  • Usage endpointsToken entries API, OpenTelemetry
  • Contract fromHow the session was signed in

From session to feature and contract

  1. 1

    Push telemetry

    An admin sets it up once for everyone. Each model call arrives with its tokens, model, person and how Claude Code was signed in.

  2. 2

    Add the mod

    It records how each session was signed in when it starts, writes a one-line summary, and shows the cost above the prompt. tc reads the session files and adds the branch and the keys in your prompts.

  3. 3

    Find the contract

    A session signed in to a Claude organization goes to that organization's own contract, created the first time it matches. A session on an API key gets its contract from your rules, or waits in the review list.

AgentContractTagCostMAClaude Codeclaude-teamKD-1400.00TOClaude Codeanthropic-apino project150.00
# inside Claude Code /plugin marketplace add tokencontroller/tokencontroller /plugin install token-controller # then, in any session /tc feature KD-1 # put this session on a feature /tc report # a report table, right in the session /tc submit # submit everything since your last submit
What arrivesTelemetryMod and tcTokens by kind, modelPerson, repositoryHow it was signed inRoute to the modelBranch, pull requestKeys found in promptsSummary of the work

Right in the session

Summaries, not transcripts

Prompts, responses and file contents are removed on arrival, unless your organization switches keeping them on. The summary is a short line about the work.

Counted once

When telemetry and the session file report the same call, it counts once.

Ask Claude about cost

Ask "what did KD-1 cost this week?" and get a report table in the session.

In the docs

Start alone in minutes. Add your team later.

Solo is free forever and needs no card.