Run /usage in Claude Code to see your session cost and how much of your plan's limits is used. Team and Enterprise owners get a dashboard at claude.ai/analytics/claude-code; Zest adds each engineer's sessions, models and tokens next to the pull requests they merged.
Claude CodeFable 5.1 (max) (with fallback)70.4 · Coding Agent Index
CodexGPT-6 Astra (max)67.0 · Coding Agent Index
Muse CodeMuse Spark 1.3 (xhigh)64.2 · Coding Agent Index
Grok BuildGrok 4.5 (high)64.1 · Coding Agent Index
Kimi Code CLIKimi K362.6 · Coding Agent Index
OpencodeGemini 3.8 Flash (high)61.2 · Coding Agent Index
Cursor CLIComposer 2.5 Fast38.3 · Coding Agent Index
Demo setups use current model families. The pairings above are the combinations benchmarked by Artificial Analysis; rankings measure performance, not popularity.
Illustrative daily trends · Other totals: last 30 days. Build Hours: this week, model-estimated activity including overlap; not engineer hours.
USED BY ENGINEERING TEAMS AT
How to check your Claude Code usage
Run /usage inside Claude Code. /cost and /stats are aliases that open the same screen, which has three parts:
Session: tokens per model, API time and lines changed, with a dollar figure Claude Code estimates at list price. On a subscription, that figure is not your bill.
Plan usage on Pro, Max, Team and Enterprise: how much of your limits is used, and which skills, subagents, plugins and MCP servers used it.
Stats for the last 24 hours or 7 days (press d or w), read from this machine's history. Usage on other devices or on claude.ai is not in them.
The Claude Code analytics dashboard for Team and Enterprise
Owners of a Team or Enterprise plan open claude.ai/analytics/claude-code. It shows daily active users and sessions, lines of code accepted, the suggestion accept rate, and a top-10 leaderboard you can export for every user as a CSV.
Install Anthropic's GitHub app and it adds the pull requests and lines shipped with Claude Code's help, a public beta that Anthropic calls a deliberate underestimate. For each engineer's tokens and cost, the docs point to OpenTelemetry or the spend report. API customers get a smaller dashboard at platform.claude.com/claude-code, with each user's spend and lines this month.
The Claude Code Analytics API
Claude Console organizations can pull per-user numbers with an Admin API key. One call returns one UTC day: a record per user or API key with sessions, lines added and removed, commits and pull requests by Claude Code, accepted and rejected edits, and tokens and estimated cost per model. Data lags by up to an hour. On Enterprise, claude.ai usage comes from the Claude Enterprise Analytics API instead, with its own key.
For your own dashboards, Claude Code exports OpenTelemetry metrics and events to a collector you run. An admin can set the same variables for every engineer in the env block of the managed settings file.
The metrics include claude_code.session.count, claude_code.token.usage, claude_code.cost.usage, claude_code.lines_of_code.count, claude_code.commit.count and claude_code.pull_request.count. Each carries session.id and, when known, user.email, so you can group by engineer. Anthropic notes that the cost metrics are approximations.
export CLAUDE_CODE_ENABLE_TELEMETRY=1
export OTEL_METRICS_EXPORTER=otlp # or prometheus, console
export OTEL_LOGS_EXPORTER=otlp # events: prompts, tool results, API requests
export OTEL_EXPORTER_OTLP_PROTOCOL=grpc
export OTEL_EXPORTER_OTLP_ENDPOINT=http://localhost:4317
export OTEL_EXPORTER_OTLP_HEADERS="Authorization=Bearer your-token"
claude
Usage trackers: ccusage, /usage and a team view
ccusage, an open-source CLI, reads the local logs of Claude Code, Codex and 16 other coding agents into daily, weekly, monthly and session reports, plus Claude Code's 5-hour blocks. Like /usage, it sees one machine, and Claude Code deletes transcripts after 30 days unless you raise cleanupPeriodDays.
Local counts can disagree. On the Claude Code version we ran, the cache behind /stats counted 1.9 to 2.7 times the tokens of a deduplicated recount of the same transcripts (September 5 to 12, 2026), because each response's usage is logged once per content block. The status line's own cost estimate came within 8% of our recount.
And one laptop isn't the team: in the 30 days to October 3, our heaviest user's laptop opened 596 of the 878 pull requests we merged (68%). The rest came from three other engineers, Codex and other machines.
bunx ccusage claude daily # Claude Code tokens and cost by day
bunx ccusage blocks # usage per 5-hour window
How Zest tracks Claude Code usage
Each engineer installs the Zest plugin, which takes about a minute (setup). Three hooks record session start, session end and every tool call, and each session lands on the team dashboard:
Zest needs no collector and doesn't read OpenTelemetry exports, so the two can run side by side.
Per session: models, input, output and cache tokens, and a cost estimated from list prices. Plans and token rates are on Claude Code pricing.
Context and 5-hour and weekly limit use at the end of each session, from the status line data.
Skills, subagents and MCP tools per session, rolled up per engineer in the AI Stack view.
The branch, commits and pull request a session touched, so the Zest GitHub App can match it to what merged.
Secrets and personal data are redacted on the engineer's machine before upload; /zest:ignore turns tracking off for a folder.
Token usage for one Claude Code session in Zest
What Claude Code usage looks like on our own team
Of the 2,620 pull requests merged in our two repos from July 5 to October 3, 2026, 95% carry an AI agent's signature and about 90% carry Claude Code's.
866 pull requests merged in our two repos from August 12 to October 4, 2026 carry a session-analytics block, written by the agent that opened them. The blocks show the default model changing twice in four weeks: Fable 5 and Opus 5 in August, then Fable 5.1 from September 1, then Opus 5.5 from September 22, which wrote every pull request in October. Opus 5.5's merged in a median 25 minutes and Opus 5's in 47, over different weeks and different work.
TRY IT ON YOUR TEAM
See what your team ships with AI.
Starter is free (3 seats, no credit card). Pro is $49 a month with 5 seats and Max is $149 a month with 10 seats — priced per workspace, not per engineer, with extra seats at $19 a month.
Run /usage in Claude Code. On Pro, Max, Team and Enterprise plans it shows how much of your limits is used and what used it; /cost and /stats open the same screen.
How do I see Claude Code usage across my team?+
Install the Zest plugin in each engineer's Claude Code (/plugin marketplace add https://github.com/Winding-Labs/zest-claude, then /plugin install zest, then /reload-plugins, then /zest:login) and connect your GitHub org. Sessions appear on the Zest dashboard per engineer, with their models, tokens, skills and the pull requests they led to.
Is there a Claude Code usage API?+
Yes. Claude Console organizations call GET /v1/organizations/usage_report/claude_code with an Admin API key for each user's daily sessions, lines, commits, pull requests, tokens and estimated cost; Enterprise plans use the Claude Enterprise Analytics API.
Does Zest upload our source code?+
No code diffs are uploaded. The Claude Code plugin sends the text of the conversation, not tool inputs or outputs, after redacting secrets and personal data on the engineer's machine. Message text is kept for at most 90 days.