Once a team adopts Claude Code, someone soon asks three questions: who is using it, how much, and what does it cost? The answer depends on how each developer signs in. This guide lists the options that work without any third-party product, in the order most teams try them, and ends with where Insaidy fits.
First, check how your team signs in
Anthropic's cost documentation separates three setups: a Claude for Teams or Enterprise plan, the Claude Console with API billing, and cloud providers such as Amazon Bedrock, Google Cloud and Microsoft Foundry. Each setup has its own place to see spend and its own way to get per-user numbers. If developers use different sign-in methods, each person is metered by the method they used, so you may need more than one of the steps below.
Step 1: Let each developer check their own numbers
Every developer can run /usage in Claude Code. The Session block shows token usage for the current session and a dollar estimate that Claude Code calculates locally at list price. On Pro, Max, Ultra, Team and Enterprise plans, the same screen shows what counts against plan limits for the last 24 hours or 7 days.
These figures come from session history on that one machine. Usage from other devices or claude.ai is not included. /insights analyzes recent sessions on that machine and saves an HTML report about how you work. Both are useful self-checks, but neither gives a team view.
Step 2: Open the dashboard that comes with your plan
- Claude for Teams or Enterprise. Owners and Admins can open the analytics dashboard at
claude.ai/analytics/claude-code. It shows daily active users, sessions, lines of code accepted and the suggestion accept rate. Contribution metrics for merged pull requests need the Claude GitHub app and are in public beta. For per-user token counts and cost estimates, export the spend report from your organization's analytics settings or use OpenTelemetry (Step 4). - Claude Console. Members with the UsageView permission can open
platform.claude.com/claude-code. It shows lines accepted, accept rate, active users, sessions and daily spend, plus a per-member table for the selected period, 30 days by default. Anthropic labels these spend figures as estimates and points to the Console Cost page for actual costs. - Cloud providers. Usage through Bedrock, Google Cloud or Foundry does not appear in Anthropic's dashboards. Use your cloud billing console for spend, and OpenTelemetry or a gateway for per-user numbers.
Step 3: Pull the numbers with an API
If your organization uses the Claude Console, the Claude Code Analytics API returns one day of data per request, per user or API key. Each record includes sessions, lines added and removed, commits and pull requests created through Claude Code, accepted and rejected edits, and tokens and estimated cost by model. It needs an Admin API key, and data appears after about an hour.
curl "https://api.anthropic.com/v1/organizations/usage_report/claude_code?starting_at=2026-11-09&limit=100" \
-H "anthropic-version: 2026-10-21" \
-H "x-api-key: $ANTHROPIC_ADMIN_KEY"This API does not return usage from developers who sign in with a Claude subscription. On the Enterprise plan, the Claude Enterprise Analytics API covers that usage with a key that has the read:analytics scope. It is not available on the Teams plan.
Step 4: Export OpenTelemetry to your own stack
OpenTelemetry works with every setup. Claude Code can export metrics and events to any OTLP endpoint. Administrators can set the variables for everyone through the env block of the managed settings file, so no developer has to configure anything.
export CLAUDE_CODE_ENABLE_TELEMETRY=1
export OTEL_METRICS_EXPORTER=otlp
export OTEL_EXPORTER_OTLP_PROTOCOL=grpc
export OTEL_EXPORTER_OTLP_ENDPOINT=http://collector.example.com:4317
export OTEL_RESOURCE_ATTRIBUTES="team.id=platform,department=engineering"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.active_time.total. The team.id attribute lets you group by team in your own charts.
Two details matter before you switch it on. Prompt text is redacted unless someone sets OTEL_LOG_USER_PROMPTS=1. Standard attributes include the user's email address when it is available, so decide who can read the metrics backend. To receive the data, run the open-source OpenTelemetry Collector and forward it to the metrics tool you already use.
Step 5: Use a free local tool for personal reports
ccusage is an MIT-licensed command-line tool. Run npx ccusage@latest daily to see tokens and estimated cost per day from the logs on your computer. It also has weekly, monthly and session reports. Its documentation says the analysis stays on your machine and only covers that machine. For a team, each person can share a summary voluntarily. That is simple, but it relies on people remembering to do it.
Decide what you will look at before you collect it
The tools above can show data per person, including email addresses. Before rollout, agree on the question you want answered. Spend per team? Adoption over time? Who needs help getting started? Tell developers what is collected and who can see it. Many cost and adoption questions can be answered with team-level totals.
When Insaidy helps
Insaidy is an independent Velantix product with plugins for VS Code, Visual Studio and JetBrains. It processes supported assistant activity, including Claude Code, on the developer's computer. Reports exclude raw prompts, answers, source code, file paths and project names. Personal use is free.
It can help when your team works in more than one editor or with more than one coding assistant and you want one report. It can also help when you want each developer to see their own coaching before anything is shared. Be aware that in a Company workspace, owners, admins and assigned managers see named metrics for the people in their scope. Insaidy is not a billing tool: use Anthropic's Cost page or your plan's spend report for spend. If your team only uses Claude Code on one plan, the dashboard and OpenTelemetry may be all you need.
Claude and Claude Code are products of Anthropic. Insaidy is not affiliated with or endorsed by Anthropic.
Sources
All pages were checked on 10 November 2026.
- Manage costs effectively (Claude Code docs)
- Track team usage with analytics (Claude Code docs)
- Monitoring usage with OpenTelemetry (Claude Code docs)
- Claude Code Analytics API (Claude Platform docs)
- OpenTelemetry Collector (OpenTelemetry docs)
- ccusage on GitHub and the ccusage guide