Claude Code Usage Analyzer

·

·

Here’s a little command that I learned about today:

npx ccusage@latest monthly

You can also see daily or session breakdowns. More usage options on npm.

This will output your Claude usage in tabular form by month. Widen your terminal window to see more columns. Here’s mine:

┌──────────┬───────────────────────┬──────────┬──────────┬──────────┐
│ Month    │ Models                │    Input │   Output │     Cost │
│          │                       │          │          │    (USD) │
├──────────┼───────────────────────┼──────────┼──────────┼──────────┤
│ 2026-01  │ - haiku-4-5           │    7,802 │      365 │    $5.97 │
│          │ - opus-4-5            │          │          │          │
├──────────┼───────────────────────┼──────────┼──────────┼──────────┤
│ 2026-02  │ - haiku-4-5           │  143,071 │  176,532 │  $104.50 │
│          │ - opus-4-5            │          │          │          │
│          │ - opus-4-6            │          │          │          │
│          │ - sonnet-4-5          │          │          │          │
│          │ - sonnet-4-6          │          │          │          │
├──────────┼───────────────────────┼──────────┼──────────┼──────────┤
│ 2026-03  │ - haiku-4-5           │  196,186 │  859,595 │  $210.37 │
│          │ - opus-4-6            │          │          │          │
│          │ - sonnet-4-6          │          │          │          │
├──────────┼───────────────────────┼──────────┼──────────┼──────────┤
│ 2026-04  │ - haiku-4-5           │  132,530 │ 3,708,4… │  $894.78 │
│          │ - opus-4-6            │          │          │          │
│          │ - opus-4-7            │          │          │          │
├──────────┼───────────────────────┼──────────┼──────────┼──────────┤
│ 2026-05  │ - haiku-4-5           │    2,642 │  455,533 │  $151.70 │
│          │ - opus-4-7            │          │          │          │
├──────────┼───────────────────────┼──────────┼──────────┼──────────┤
│ Total    │                       │  482,231 │ 5,200,4… │ $1367.32 │
└──────────┴───────────────────────┴──────────┴──────────┴──────────┘

I was using Cursor until the end of January. Then it looks like my usage exploded in April. I think a lot of that can be attributed to the fact that I started doing more product work in April. Plus Opus 4.7 was released, which is pricier than 4.6.

Today is May 1 and I’ve already racked up $150. 😮 I ran multiple agents in the morning (I don’t often do this because I find it tricky to keep up with reviewing everything (and yes, I do review everything)), and was doing some planning and design for an improvement to an existing feature. I had it set to use high effort for the planning / design, then switched to medium effort for implementation. I guess that all added up to $151.70!

Tags:

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *