Skip to content

ccusage monthly output truncates token numbers with ellipsis #700

Description

@SublimeCT
ccusage monthly

 WARN  Fetching latest model pricing from LiteLLM...                                                                     ccusage 17:50:29

ℹ Loaded pricing for 1669 models                                                                                        ccusage 17:50:29

 ╭────────────────────────────────────────────╮
 │                                            │
 │  Claude Code Token Usage Report - Monthly  │
 │                                            │
 ╰────────────────────────────────────────────╯

┌──────────┬──────────────────────────────────────────┬──────────┬──────────┬───────────┬──────────┬───────────┬──────────┐
│ Month    │ Models                                   │    Input │   Output │     Cache │    Cache │     Total │     Cost │
│          │                                          │          │          │    Create │     Read │    Tokens │    (USD) │
├──────────┼──────────────────────────────────────────┼──────────┼──────────┼───────────┼──────────┼───────────┼──────────┤
│ 2025-09  │ - glm-4.5                                │ 10,262,… │  991,861 │         0 │ 218,035… │ 229,290,… │    $5.69 │
├──────────┼──────────────────────────────────────────┼──────────┼──────────┼───────────┼──────────┼───────────┼──────────┤
│ 2025-10  │ - glm-4.5                                │ 35,931,… │ 1,100,4… │    50,733 │ 269,699… │ 306,782,… │   $54.84 │
│          │ - glm-4.5-air                            │          │          │           │          │           │          │
│          │ - glm-4.6                                │          │          │           │          │           │          │
│          │ - haiku-4-5                              │          │          │           │          │           │          │
│          │ - opus-4-1                               │          │          │           │          │           │          │
├──────────┼──────────────────────────────────────────┼──────────┼──────────┼───────────┼──────────┼───────────┼──────────┤
│ Total    │                                          │ 46,194,… │ 2,092,3… │    50,733 │ 487,735… │ 536,073,… │   $60.53 │
└──────────┴──────────────────────────────────────────┴──────────┴──────────┴───────────┴──────────┴───────────┴──────────┘

When running the command ccusage monthly, the table output truncates token values instead of displaying the full number.

For example:

Total Tokens  536,073,…

The expected behavior is to show the complete token count without ellipsis, e.g.

Total Tokens  536,073,421

Steps to reproduce:

  1. Run ccusage monthly
  2. Check the output table under the Total Tokens column

Expected result:
Full numeric values should be displayed without truncation.

Actual result:
Large numbers are abbreviated with an ellipsis (…), making it unclear what the exact values are.

Environment:

  • Tool: ccusage
  • Command: ccusage monthly
  • OS: macOS 15.0
  • Version: 17.1.3

Suggested fix:
Ensure that table rendering does not abbreviate long numbers, or provide an option (e.g. --no-truncate) to display full numeric values.

Activity

  1. added 2 commits that reference this issue on Oct 21, 2025
    85cd0da
    a70e497
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions