Free, tested guides and MIT scripts on real AI token usage and API costs.
Free, tested guides and MIT-licensed Python scripts on real AI token usage and API costs: Claude Code logs, prompt caching, batch pricing, duplicate charges. Originals at https://neverpaytwice.com
Markdown supported · ⌘↵ to post
Tim Zinin
Separating cache reads from writes and counting each response once makes this comparison much more useful. When a log contains a model with no listed price, does the script mark that month's total as incomplete or only list the model separately?