AI Engineer Guide

How to get Anthropic Claude Code Usage Locally

Getting aggregated usage cost in Claude Code is not straight forward.

However, all the interaction that you do with Claude Code is stored in ~/.claude/ directory which also includes date, model used, token usage, etc.

With these information we can get the high level overview of it.

You can also use ccusage - npm to get a really good report in a nice format

npx ccusage@latest

Like this 👇 2025-07-14 at 23.19.11@2x.png This is especially useful if you do not have access to view those information in Anthropic console.

You can checkout their docs to learn more about the filters supported in ccusage

Happy measuring cost!

#Claude-Code

Stay Updated

Get the latest AI engineering insights delivered to your inbox.

No spam. Unsubscribe at any time.