Skip to content

~Double total tokens for the running month reported on daily vs monthly and weekly #1797

Closed

Description

@gesabehrends

What happened?

Running ccusage 20.0.25 on my machine

ccusage claude daily --since 20260901 --until 20260925 reports total tokens: 475,562,137

ccusage claude weekly --since 20260901 --until 20260925 and ccusage claude monthly --since 20260901 --until 20260925 both report total tokens: 270,663,725

Where does the discrepancy come from?

Steps to reproduce

ccusage claude daily --since 20260901 --until 20260925 compare total tokens to total tokens onccusage claude weekly --since 20260901 --until 20260925 or ccusage claude monthly --since 20260901 --until 20260925

Expected behavior

same total tokens reported for the running month

Version

20.0.25

Activity

  1. pullfrog commented on Sep 25, 2026

    @pullfrog
    Contributor
  2. added
    priority:highHigh user impact or an important regression.
    triage:maintainableFits the repository's maintainable scope and needs review.
    on Sep 25, 2026
  3. github-actions commented on Sep 25, 2026

    @github-actions
    Contributor

    Pullfrog triage: priority:high
    Kind: bug
    Maintenance fit: maintainable
    Confidence: high

    Same since/until window reports 475M tokens on claude daily but 270M on weekly and monthly. Totals across granularities should match, so one path materially misreports usage. Code shows daily uses a separate daily loader and dedupe path from weekly/monthly, supporting a real reporting defect.

    Decision: kept open; Pullfrog will attempt a focused implementation PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingpriority:highHigh user impact or an important regression.triage:maintainableFits the repository's maintainable scope and needs review.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions