DEV Community

Cover image for How to track Claude Code, Cursor and Codex usage across a team
Pat Manfra
Pat Manfra

Posted on Fully Autonomous

How to track Claude Code, Cursor and Codex usage across a team

A lot of engineering teams now use more than one AI coding tool at once. Someone lives in Claude Code, someone else in Cursor, a few people run Codex, and everybody has a chat tab open. Then a simple question comes up: who is using what, on which models, and what is it costing us?

Each vendor answers that question for its own tool. None of them answers it for the team. This post walks through the three ways to get the answer, what each one covers, and where each one stops.

Disclosure up front: I build Corral, which is the third option below. I have tried to describe the first two fairly, because for some teams they are the right choice.

A grid showing which tools each tracking option covers

Option 1: the built-in dashboards

Start here. They cost nothing extra and the numbers come straight from the vendor.

Claude Code. On Team and Enterprise plans, admins and owners get an analytics page at claude.ai/analytics/claude-code. It shows lines of code accepted, suggestion accept rate, daily active users and sessions, and a leaderboard. Per-person token usage and estimated spend come from a separate spend report, which refreshes daily. Docs: Track team usage with analytics.

Cursor. Team and Enterprise admins get a usage analytics page for everyone on the team, plus an Admin API for member, usage and spending data. Cursor recommends polling it at most once an hour. Docs: Usage Analytics and Admin API.

Codex. ChatGPT workspace admins get a Codex analytics dashboard with daily users split by client (cloud tasks, the VS Code extension, the CLI), an Analytics API with per-user breakdowns, and CSV or JSON export. Docs: Codex governance.

Where this stops:

  • Three dashboards, three definitions of "usage". Lines accepted in one, requests in another, tasks in the third. They do not add up to one number.
  • You need the team plan on every tool. A person paying for their own Cursor seat is invisible.
  • None of them sees the chat apps, where a lot of non-coding work happens.

If your whole team is on one tool, stop reading and use that tool's dashboard. It is the most accurate source you will get.

Option 2: OpenTelemetry

Claude Code and Codex can both export usage as OpenTelemetry metrics. You point them at a collector you run and build your own charts.

For Claude Code it is a few environment variables:

export CLAUDE_CODE_ENABLE_TELEMETRY=1
export OTEL_METRICS_EXPORTER=otlp
export OTEL_EXPORTER_OTLP_PROTOCOL=grpc
export OTEL_EXPORTER_OTLP_ENDPOINT=http://localhost:4317
Enter fullscreen mode Exit fullscreen mode

Admins can set these for everyone through the managed settings file, so nobody has to remember to do it. Docs: Monitoring usage.

Codex reads its exporter settings from the [otel] section of ~/.codex/config.toml. Grafana Cloud and Amazon CloudWatch both publish ready-made Codex dashboards on top of it.

This is the most precise option. Token counts are measured, not estimated, and the data lands in a system you own.

Where this stops:

  • It is real infrastructure. Someone has to run the collector, store the metrics and build the dashboards.
  • It covers Claude Code and Codex. Cursor data has to come from its Admin API, and the chat apps are not covered at all.
  • It tells you how many tokens were used. It does not tell you what the work was.

If you already run Grafana or Datadog and have a platform engineer with a free afternoon, this is a good path.

Option 3: one MCP server in every tool

This is the approach I built Corral around. Every tool on the list speaks MCP, so one remote MCP server can sit in all of them. When an agent finishes a task it calls one tool on that server and logs a short record: a category, a one-line summary, the model, and the token counts.

Each AI app connects to one MCP server, which feeds one team dashboard

Setup is one line per tool. Claude Code:

claude mcp add --transport http corral https://mcp.withcorral.com/mcp
Enter fullscreen mode Exit fullscreen mode

Cursor, in ~/.cursor/mcp.json:

{
  "mcpServers": {
    "corral": { "url": "https://mcp.withcorral.com/mcp" }
  }
}
Enter fullscreen mode Exit fullscreen mode

Codex:

codex mcp add corral --url https://mcp.withcorral.com/mcp
Enter fullscreen mode Exit fullscreen mode

Sign-in is an email and a six-digit code. There is no API key to hand out. The same link works in ChatGPT, Claude, VS Code and Gemini CLI, and the setup guide has the steps for each.

What you get is one view across every tool: who is active, which agents and models they use, tokens and estimated cost by person and by project, and a log of what the tasks were.

The Corral task log, showing one line per finished task with person, agent, model and topic

That screenshot is a sample team with full detail switched on. By default Corral keeps labels and counts only. The request, the answer and the code are recorded only if a person, or the owner of their team, turns full detail on.

Where this stops, because it does have limits:

  • The agent reports its own work. If it does not call the logging tool, the task is not recorded. Treat a quiet person as a question to ask, not a verdict.
  • Token counts are measured when the host app exposes them and estimated when it does not. Every estimate is labelled as one. For billing-grade numbers, use the vendor's spend report.
  • It adds one small tool call at the end of each task.

Which one should you use?

Your situation Use
Everyone is on one tool, on its team plan That tool's built-in dashboard
You need measured tokens and already run an observability stack OpenTelemetry
People use several tools, including chat apps, and you want one view today One MCP server

They also combine well. Keep the vendor spend report as the source of truth for the bill, and use a cross-tool view to see adoption and what the work actually is.

If you want to try the third option, Corral is free for one person, so you can run it on your own work before asking a team to. I would like to hear what you would want a team AI dashboard to show, and what you would never want it to show.

Top comments (0)