It turns out measuring token usage across sessions, agents, local and frontier models is a bit of a mess. Prompt caching and tooling make it hard to get a straight answer, so I spent some time figuring it out.
aymeric.fyi
Introduction to Counting Tokens, Prompt Caching, and Session Analytics Tools
Someone recently asked me how many tokens I used after my Qwen 3.8 27B experiment. I had no idea, nor did I know how to verify it. This post explains how to count tokens, how prompt caching works, and...