Every AI usage cost monitoring tool runs the same multiplication: tokens from a log file times a price from a table.
The tokens are easy. Claude Code and its cousins write them to disk with model names attached.
The price is the interesting part, ...