Claude Code, Codex and Gemini CLI now export usage via OpenTelemetry
Between 13 and 15 October, Claude Code, Codex and Gemini CLI each shipped updates adding standard OpenTelemetry export, and the Claude Platform added OTel export for its API in beta. A single local collector can now gather usage data from all three tools into one cost ledger.
- Gemini CLI v0.65.0-preview.0 added custom OTLP headers for authenticated collectors
- Claude Code v2.1.300 split cache-write tokens by lifetime and added GenAI span attributes
- Codex 0.163.0 keeps custom OTLP metrics exporters when analytics is disabled
- A 93-line script normalises the three streams into one cost table
Read next
AI