news

Analyzing Claude Code usage with CloudWatch and OpenTelemetry | Amazon Web Services

AWS engineers detail how to export Claude Code OpenTelemetry metrics into CloudWatch via bearer-token API keys, tracking claude_code.token.usage and cost.usage per developer — under $15/month for a 200-person org.

Published 2026-06-17Source: Amazon Web Services
Amazon Web Services source artwork

Why it matters

Most teams fly blind on coding-agent spend. This wires per-developer token and cost metrics into CloudWatch with no collector to run, so finance can see who burns tokens and where via attributes like user.id, team.id, and cost_center.

Tokenmaxxing read

Tokenmaxxing dies in the dark — you cannot cut spend you cannot see. At under $15/month to meter 200 engineers, observability is the cheapest lever before routing or caching. Slice claude_code.cost.usage by department to find the heavy seats, then ration.

Source takeaway

AWS's own walkthrough by Rodrigue Koffi, Gianluca Cacace, and Vadim Omeltchenko — recent (June 17). It assumes Bedrock-backed Claude Code; adapt metric names for other providers, and note CloudWatch retains these metrics for 15 months.

Topic links

tokenmaxxingcoding-agentstopicagentstopicscoreboards
Related projects

Tools that match this angle

#4In spirit
Agents

LangGraph

langchain-ai/langgraph

A framework for building resilient stateful agents with explicit graphs, persistence, human-in-the-loop flows, and controllable execution.

39.9K6.7KMIT
agentsstateworkflows
#5Direct
Evaluation

promptfoo

promptfoo/promptfoo

A CLI and CI workflow for testing prompts, agents, and RAG systems across models, with evals and red-team style checks.

24.3K2.2KMIT
prompt-evalscirag
#6In spirit
Evaluation

DSPy

stanfordnlp/dspy

A framework for programming and optimizing language-model pipelines rather than hand-tuning one prompt at a time.

37.3K3.2KMIT
optimizationprogrammingevals
Related feed

More source-linked context

CNX Software - Embedded Systems News source artwork
newsCS
news

Token Monitor - An ESP32-S3 desktop display that tracks AI coding assistant usage (Crowdfunding) - CNX Software

Fractal Manifold is crowdfunding Token Monitor, a EUR 99 ESP32-S3 desk display with a 4-inch touchscreen that shows quota use, session limits, reset timers and estimated token costs for Claude Code, Codex CLI and Antigravity CLI.

tokenmaxxingcoding-agentsagents
Read note
theclimatebrink.com source artwork
newsT
news

The real energy use of agentic AI

Climate scientist Zeke Hausfather metered his own Claude Code habit: 1,138 typed prompts fanned out to more than 14,000 model calls and 3.2 billion tokens in eight weeks, drawing roughly 170 kWh of data-center electricity.

tokenmaxxingcoding-agentsagents
Read note
HackerNoon source artwork
newsH
newsmedium review

Claude Code Was Burning Tokens Until I Put a Gate in Front of It | HackerNoon

Prateek Kapoor wrapped Claude Code in a PreToolUse hook that rejects unbounded greps and whole-file reads, hands the agent a corrected command, and reports 75% to 80% lower token use on heavy editing tasks.

tokenmaxxingcoding-agentsagents
Read note