I don't think it's that tricky - there's tools like ccusage that show what you would have paid for Claude at api rates, and I think codex just straight up shows you how many tokens you've used if you run /usage.