Llm usage normalizer
@agentcosts/llm-usage-normalizer
Convert Anthropic and OpenAI usage exports, or your own app's token logs, into one usage schema with customers, tasks, cached and uncached tokens, and cost from a price table you edit. Fixes the classic mistake of counting cached tokens twice, and lists unmapped keys and unpriced models.
- Activity
- New: be the first to try it
- Installs
- 0 installs
- Likes
- 0 likes
- Clones
- 0 clones
What this kit declares, in the same words the CLI shows before you install. On Claude Code the CLI turns these into permission rules, so the agent stops anything undeclared.
Command
Runs the command: node scripts/normalize.mjs (with any arguments, without asking)
Reads
Reads files in ./data/**
Writes
Writes files in ./data/llm-prices.csv
Writes
Writes files in ./data/customer-map.csv
Writes
Writes files in ./out/usage-normalized*
- Works with
- claude-code
- License
- MIT
