ccusage 20.0.19 → 20.0.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -1
- package/config-schema.json +678 -0
- package/package.json +8 -8
package/README.md
CHANGED
|
@@ -78,6 +78,7 @@ ccusage reads local usage data from coding agent CLIs and turns it into daily, w
|
|
|
78
78
|
| Qwen | `ccusage qwen daily` |
|
|
79
79
|
| GitHub Copilot CLI | `ccusage copilot daily` |
|
|
80
80
|
| Gemini CLI | `ccusage gemini daily` |
|
|
81
|
+
| Grok Build CLI | `ccusage grok daily` |
|
|
81
82
|
|
|
82
83
|
Use `ccusage daily`, `ccusage weekly`, `ccusage monthly`, or `ccusage session` to include every detected source in one report.
|
|
83
84
|
|
|
@@ -132,6 +133,7 @@ bunx ccusage kimi daily
|
|
|
132
133
|
bunx ccusage qwen daily
|
|
133
134
|
bunx ccusage copilot daily
|
|
134
135
|
bunx ccusage gemini daily
|
|
136
|
+
bunx ccusage grok daily
|
|
135
137
|
bunx ccusage pi daily --pi-path /path/to/sessions
|
|
136
138
|
bunx ccusage pi daily --pi-path /path/to/sessions,/archive/pi/sessions
|
|
137
139
|
|
|
@@ -164,7 +166,7 @@ bunx ccusage monthly --compact # Compact monthly report
|
|
|
164
166
|
- 📊 **Daily Report**: View token usage and costs aggregated by date
|
|
165
167
|
- 📅 **Monthly Report**: View token usage and costs aggregated by month
|
|
166
168
|
- 💬 **Session Report**: View usage grouped by conversation sessions
|
|
167
|
-
- 🤖 **Unified CLI Reports**: View Claude Code, Codex, OpenCode, Amp, Droid, Codebuff, Hermes Agent, pi-agent, Goose, OpenClaw, Kilo, Kimi, Qwen, GitHub Copilot CLI, and
|
|
169
|
+
- 🤖 **Unified CLI Reports**: View Claude Code, Codex, OpenCode, Amp, Droid, Codebuff, Hermes Agent, pi-agent, Goose, OpenClaw, Kilo, Kimi, Qwen, GitHub Copilot CLI, Gemini CLI, and Grok Build CLI usage from one CLI
|
|
168
170
|
- ⏰ **5-Hour Blocks Report**: Track usage within Claude's billing windows with active block monitoring
|
|
169
171
|
- 🚀 **Statusline Integration**: Compact usage display for Claude Code status bar hooks (Beta)
|
|
170
172
|
- 🤖 **Model Tracking**: See which models are used across supported sources
|
package/config-schema.json
CHANGED
|
@@ -7027,6 +7027,684 @@
|
|
|
7027
7027
|
},
|
|
7028
7028
|
"type": "object"
|
|
7029
7029
|
},
|
|
7030
|
+
"grok": {
|
|
7031
|
+
"additionalProperties": false,
|
|
7032
|
+
"description": "Grok Build CLI configuration.",
|
|
7033
|
+
"markdownDescription": "Grok Build CLI configuration.",
|
|
7034
|
+
"properties": {
|
|
7035
|
+
"commands": {
|
|
7036
|
+
"additionalProperties": false,
|
|
7037
|
+
"properties": {
|
|
7038
|
+
"daily": {
|
|
7039
|
+
"additionalProperties": false,
|
|
7040
|
+
"properties": {
|
|
7041
|
+
"all": {
|
|
7042
|
+
"default": false,
|
|
7043
|
+
"description": "Accepted for compatibility; all detected supported agents are included by default.",
|
|
7044
|
+
"markdownDescription": "Accepted for compatibility; all detected supported agents are included by default.",
|
|
7045
|
+
"type": "boolean"
|
|
7046
|
+
},
|
|
7047
|
+
"breakdown": {
|
|
7048
|
+
"default": false,
|
|
7049
|
+
"description": "Show per-model cost breakdown.",
|
|
7050
|
+
"markdownDescription": "Show per-model cost breakdown.",
|
|
7051
|
+
"type": "boolean"
|
|
7052
|
+
},
|
|
7053
|
+
"color": {
|
|
7054
|
+
"default": false,
|
|
7055
|
+
"description": "Enable colored output.",
|
|
7056
|
+
"markdownDescription": "Enable colored output.",
|
|
7057
|
+
"type": "boolean"
|
|
7058
|
+
},
|
|
7059
|
+
"compact": {
|
|
7060
|
+
"default": false,
|
|
7061
|
+
"description": "Force compact table layout for narrow terminals.",
|
|
7062
|
+
"markdownDescription": "Force compact table layout for narrow terminals.",
|
|
7063
|
+
"type": "boolean"
|
|
7064
|
+
},
|
|
7065
|
+
"debug": {
|
|
7066
|
+
"default": false,
|
|
7067
|
+
"description": "Show pricing mismatch information for debugging.",
|
|
7068
|
+
"markdownDescription": "Show pricing mismatch information for debugging.",
|
|
7069
|
+
"type": "boolean"
|
|
7070
|
+
},
|
|
7071
|
+
"debugSamples": {
|
|
7072
|
+
"default": 5,
|
|
7073
|
+
"description": "Number of sample discrepancies to show in debug output.",
|
|
7074
|
+
"format": "uint",
|
|
7075
|
+
"markdownDescription": "Number of sample discrepancies to show in debug output.",
|
|
7076
|
+
"minimum": 0.0,
|
|
7077
|
+
"type": "integer"
|
|
7078
|
+
},
|
|
7079
|
+
"jq": {
|
|
7080
|
+
"description": "jq filter to apply to JSON output.",
|
|
7081
|
+
"markdownDescription": "jq filter to apply to JSON output.",
|
|
7082
|
+
"type": "string"
|
|
7083
|
+
},
|
|
7084
|
+
"json": {
|
|
7085
|
+
"default": false,
|
|
7086
|
+
"description": "Output in JSON format.",
|
|
7087
|
+
"markdownDescription": "Output in JSON format.",
|
|
7088
|
+
"type": "boolean"
|
|
7089
|
+
},
|
|
7090
|
+
"mode": {
|
|
7091
|
+
"default": "auto",
|
|
7092
|
+
"description": "Cost calculation mode.",
|
|
7093
|
+
"enum": ["auto", "calculate", "display"],
|
|
7094
|
+
"markdownDescription": "Cost calculation mode.",
|
|
7095
|
+
"type": "string"
|
|
7096
|
+
},
|
|
7097
|
+
"noColor": {
|
|
7098
|
+
"default": false,
|
|
7099
|
+
"description": "Disable colored output.",
|
|
7100
|
+
"markdownDescription": "Disable colored output.",
|
|
7101
|
+
"type": "boolean"
|
|
7102
|
+
},
|
|
7103
|
+
"noCost": {
|
|
7104
|
+
"default": false,
|
|
7105
|
+
"description": "Hide cost information in table and JSON output.",
|
|
7106
|
+
"markdownDescription": "Hide cost information in table and JSON output.",
|
|
7107
|
+
"type": "boolean"
|
|
7108
|
+
},
|
|
7109
|
+
"noOffline": {
|
|
7110
|
+
"default": false,
|
|
7111
|
+
"description": "Disable cached pricing data where supported.",
|
|
7112
|
+
"markdownDescription": "Disable cached pricing data where supported.",
|
|
7113
|
+
"type": "boolean"
|
|
7114
|
+
},
|
|
7115
|
+
"offline": {
|
|
7116
|
+
"default": false,
|
|
7117
|
+
"description": "Use cached pricing data where supported.",
|
|
7118
|
+
"markdownDescription": "Use cached pricing data where supported.",
|
|
7119
|
+
"type": "boolean"
|
|
7120
|
+
},
|
|
7121
|
+
"order": {
|
|
7122
|
+
"default": "asc",
|
|
7123
|
+
"description": "Sort order.",
|
|
7124
|
+
"enum": ["desc", "asc"],
|
|
7125
|
+
"markdownDescription": "Sort order.",
|
|
7126
|
+
"type": "string"
|
|
7127
|
+
},
|
|
7128
|
+
"pricingOverrides": {
|
|
7129
|
+
"additionalProperties": {
|
|
7130
|
+
"additionalProperties": false,
|
|
7131
|
+
"properties": {
|
|
7132
|
+
"cacheCreationInputTokenCost": {
|
|
7133
|
+
"format": "double",
|
|
7134
|
+
"type": "number"
|
|
7135
|
+
},
|
|
7136
|
+
"cacheCreationInputTokenCostAbove200kTokens": {
|
|
7137
|
+
"format": "double",
|
|
7138
|
+
"type": "number"
|
|
7139
|
+
},
|
|
7140
|
+
"cacheReadInputTokenCost": {
|
|
7141
|
+
"format": "double",
|
|
7142
|
+
"type": "number"
|
|
7143
|
+
},
|
|
7144
|
+
"cacheReadInputTokenCostAbove200kTokens": {
|
|
7145
|
+
"format": "double",
|
|
7146
|
+
"type": "number"
|
|
7147
|
+
},
|
|
7148
|
+
"fastMultiplier": {
|
|
7149
|
+
"format": "double",
|
|
7150
|
+
"type": "number"
|
|
7151
|
+
},
|
|
7152
|
+
"inputCostPerToken": {
|
|
7153
|
+
"format": "double",
|
|
7154
|
+
"type": "number"
|
|
7155
|
+
},
|
|
7156
|
+
"inputCostPerTokenAbove200kTokens": {
|
|
7157
|
+
"format": "double",
|
|
7158
|
+
"type": "number"
|
|
7159
|
+
},
|
|
7160
|
+
"maxInputTokens": {
|
|
7161
|
+
"format": "uint64",
|
|
7162
|
+
"minimum": 0.0,
|
|
7163
|
+
"type": "integer"
|
|
7164
|
+
},
|
|
7165
|
+
"outputCostPerToken": {
|
|
7166
|
+
"format": "double",
|
|
7167
|
+
"type": "number"
|
|
7168
|
+
},
|
|
7169
|
+
"outputCostPerTokenAbove200kTokens": {
|
|
7170
|
+
"format": "double",
|
|
7171
|
+
"type": "number"
|
|
7172
|
+
}
|
|
7173
|
+
},
|
|
7174
|
+
"type": "object"
|
|
7175
|
+
},
|
|
7176
|
+
"description": "Runtime pricing overrides keyed by raw model name.",
|
|
7177
|
+
"markdownDescription": "Runtime pricing overrides keyed by raw model name.",
|
|
7178
|
+
"type": "object"
|
|
7179
|
+
},
|
|
7180
|
+
"since": {
|
|
7181
|
+
"description": "Filter from date (YYYY-MM-DD or YYYYMMDD).",
|
|
7182
|
+
"markdownDescription": "Filter from date (YYYY-MM-DD or YYYYMMDD).",
|
|
7183
|
+
"type": "string"
|
|
7184
|
+
},
|
|
7185
|
+
"singleThread": {
|
|
7186
|
+
"default": false,
|
|
7187
|
+
"description": "Disable parallel file processing.",
|
|
7188
|
+
"markdownDescription": "Disable parallel file processing.",
|
|
7189
|
+
"type": "boolean"
|
|
7190
|
+
},
|
|
7191
|
+
"timezone": {
|
|
7192
|
+
"description": "Timezone for date grouping (IANA).",
|
|
7193
|
+
"markdownDescription": "Timezone for date grouping (IANA).",
|
|
7194
|
+
"type": "string"
|
|
7195
|
+
},
|
|
7196
|
+
"until": {
|
|
7197
|
+
"description": "Filter until date (inclusive).",
|
|
7198
|
+
"markdownDescription": "Filter until date (inclusive).",
|
|
7199
|
+
"type": "string"
|
|
7200
|
+
}
|
|
7201
|
+
},
|
|
7202
|
+
"type": "object"
|
|
7203
|
+
},
|
|
7204
|
+
"monthly": {
|
|
7205
|
+
"additionalProperties": false,
|
|
7206
|
+
"properties": {
|
|
7207
|
+
"all": {
|
|
7208
|
+
"default": false,
|
|
7209
|
+
"description": "Accepted for compatibility; all detected supported agents are included by default.",
|
|
7210
|
+
"markdownDescription": "Accepted for compatibility; all detected supported agents are included by default.",
|
|
7211
|
+
"type": "boolean"
|
|
7212
|
+
},
|
|
7213
|
+
"breakdown": {
|
|
7214
|
+
"default": false,
|
|
7215
|
+
"description": "Show per-model cost breakdown.",
|
|
7216
|
+
"markdownDescription": "Show per-model cost breakdown.",
|
|
7217
|
+
"type": "boolean"
|
|
7218
|
+
},
|
|
7219
|
+
"color": {
|
|
7220
|
+
"default": false,
|
|
7221
|
+
"description": "Enable colored output.",
|
|
7222
|
+
"markdownDescription": "Enable colored output.",
|
|
7223
|
+
"type": "boolean"
|
|
7224
|
+
},
|
|
7225
|
+
"compact": {
|
|
7226
|
+
"default": false,
|
|
7227
|
+
"description": "Force compact table layout for narrow terminals.",
|
|
7228
|
+
"markdownDescription": "Force compact table layout for narrow terminals.",
|
|
7229
|
+
"type": "boolean"
|
|
7230
|
+
},
|
|
7231
|
+
"debug": {
|
|
7232
|
+
"default": false,
|
|
7233
|
+
"description": "Show pricing mismatch information for debugging.",
|
|
7234
|
+
"markdownDescription": "Show pricing mismatch information for debugging.",
|
|
7235
|
+
"type": "boolean"
|
|
7236
|
+
},
|
|
7237
|
+
"debugSamples": {
|
|
7238
|
+
"default": 5,
|
|
7239
|
+
"description": "Number of sample discrepancies to show in debug output.",
|
|
7240
|
+
"format": "uint",
|
|
7241
|
+
"markdownDescription": "Number of sample discrepancies to show in debug output.",
|
|
7242
|
+
"minimum": 0.0,
|
|
7243
|
+
"type": "integer"
|
|
7244
|
+
},
|
|
7245
|
+
"jq": {
|
|
7246
|
+
"description": "jq filter to apply to JSON output.",
|
|
7247
|
+
"markdownDescription": "jq filter to apply to JSON output.",
|
|
7248
|
+
"type": "string"
|
|
7249
|
+
},
|
|
7250
|
+
"json": {
|
|
7251
|
+
"default": false,
|
|
7252
|
+
"description": "Output in JSON format.",
|
|
7253
|
+
"markdownDescription": "Output in JSON format.",
|
|
7254
|
+
"type": "boolean"
|
|
7255
|
+
},
|
|
7256
|
+
"mode": {
|
|
7257
|
+
"default": "auto",
|
|
7258
|
+
"description": "Cost calculation mode.",
|
|
7259
|
+
"enum": ["auto", "calculate", "display"],
|
|
7260
|
+
"markdownDescription": "Cost calculation mode.",
|
|
7261
|
+
"type": "string"
|
|
7262
|
+
},
|
|
7263
|
+
"noColor": {
|
|
7264
|
+
"default": false,
|
|
7265
|
+
"description": "Disable colored output.",
|
|
7266
|
+
"markdownDescription": "Disable colored output.",
|
|
7267
|
+
"type": "boolean"
|
|
7268
|
+
},
|
|
7269
|
+
"noCost": {
|
|
7270
|
+
"default": false,
|
|
7271
|
+
"description": "Hide cost information in table and JSON output.",
|
|
7272
|
+
"markdownDescription": "Hide cost information in table and JSON output.",
|
|
7273
|
+
"type": "boolean"
|
|
7274
|
+
},
|
|
7275
|
+
"noOffline": {
|
|
7276
|
+
"default": false,
|
|
7277
|
+
"description": "Disable cached pricing data where supported.",
|
|
7278
|
+
"markdownDescription": "Disable cached pricing data where supported.",
|
|
7279
|
+
"type": "boolean"
|
|
7280
|
+
},
|
|
7281
|
+
"offline": {
|
|
7282
|
+
"default": false,
|
|
7283
|
+
"description": "Use cached pricing data where supported.",
|
|
7284
|
+
"markdownDescription": "Use cached pricing data where supported.",
|
|
7285
|
+
"type": "boolean"
|
|
7286
|
+
},
|
|
7287
|
+
"order": {
|
|
7288
|
+
"default": "asc",
|
|
7289
|
+
"description": "Sort order.",
|
|
7290
|
+
"enum": ["desc", "asc"],
|
|
7291
|
+
"markdownDescription": "Sort order.",
|
|
7292
|
+
"type": "string"
|
|
7293
|
+
},
|
|
7294
|
+
"pricingOverrides": {
|
|
7295
|
+
"additionalProperties": {
|
|
7296
|
+
"additionalProperties": false,
|
|
7297
|
+
"properties": {
|
|
7298
|
+
"cacheCreationInputTokenCost": {
|
|
7299
|
+
"format": "double",
|
|
7300
|
+
"type": "number"
|
|
7301
|
+
},
|
|
7302
|
+
"cacheCreationInputTokenCostAbove200kTokens": {
|
|
7303
|
+
"format": "double",
|
|
7304
|
+
"type": "number"
|
|
7305
|
+
},
|
|
7306
|
+
"cacheReadInputTokenCost": {
|
|
7307
|
+
"format": "double",
|
|
7308
|
+
"type": "number"
|
|
7309
|
+
},
|
|
7310
|
+
"cacheReadInputTokenCostAbove200kTokens": {
|
|
7311
|
+
"format": "double",
|
|
7312
|
+
"type": "number"
|
|
7313
|
+
},
|
|
7314
|
+
"fastMultiplier": {
|
|
7315
|
+
"format": "double",
|
|
7316
|
+
"type": "number"
|
|
7317
|
+
},
|
|
7318
|
+
"inputCostPerToken": {
|
|
7319
|
+
"format": "double",
|
|
7320
|
+
"type": "number"
|
|
7321
|
+
},
|
|
7322
|
+
"inputCostPerTokenAbove200kTokens": {
|
|
7323
|
+
"format": "double",
|
|
7324
|
+
"type": "number"
|
|
7325
|
+
},
|
|
7326
|
+
"maxInputTokens": {
|
|
7327
|
+
"format": "uint64",
|
|
7328
|
+
"minimum": 0.0,
|
|
7329
|
+
"type": "integer"
|
|
7330
|
+
},
|
|
7331
|
+
"outputCostPerToken": {
|
|
7332
|
+
"format": "double",
|
|
7333
|
+
"type": "number"
|
|
7334
|
+
},
|
|
7335
|
+
"outputCostPerTokenAbove200kTokens": {
|
|
7336
|
+
"format": "double",
|
|
7337
|
+
"type": "number"
|
|
7338
|
+
}
|
|
7339
|
+
},
|
|
7340
|
+
"type": "object"
|
|
7341
|
+
},
|
|
7342
|
+
"description": "Runtime pricing overrides keyed by raw model name.",
|
|
7343
|
+
"markdownDescription": "Runtime pricing overrides keyed by raw model name.",
|
|
7344
|
+
"type": "object"
|
|
7345
|
+
},
|
|
7346
|
+
"since": {
|
|
7347
|
+
"description": "Filter from date (YYYY-MM-DD or YYYYMMDD).",
|
|
7348
|
+
"markdownDescription": "Filter from date (YYYY-MM-DD or YYYYMMDD).",
|
|
7349
|
+
"type": "string"
|
|
7350
|
+
},
|
|
7351
|
+
"singleThread": {
|
|
7352
|
+
"default": false,
|
|
7353
|
+
"description": "Disable parallel file processing.",
|
|
7354
|
+
"markdownDescription": "Disable parallel file processing.",
|
|
7355
|
+
"type": "boolean"
|
|
7356
|
+
},
|
|
7357
|
+
"timezone": {
|
|
7358
|
+
"description": "Timezone for date grouping (IANA).",
|
|
7359
|
+
"markdownDescription": "Timezone for date grouping (IANA).",
|
|
7360
|
+
"type": "string"
|
|
7361
|
+
},
|
|
7362
|
+
"until": {
|
|
7363
|
+
"description": "Filter until date (inclusive).",
|
|
7364
|
+
"markdownDescription": "Filter until date (inclusive).",
|
|
7365
|
+
"type": "string"
|
|
7366
|
+
}
|
|
7367
|
+
},
|
|
7368
|
+
"type": "object"
|
|
7369
|
+
},
|
|
7370
|
+
"session": {
|
|
7371
|
+
"additionalProperties": false,
|
|
7372
|
+
"properties": {
|
|
7373
|
+
"all": {
|
|
7374
|
+
"default": false,
|
|
7375
|
+
"description": "Accepted for compatibility; all detected supported agents are included by default.",
|
|
7376
|
+
"markdownDescription": "Accepted for compatibility; all detected supported agents are included by default.",
|
|
7377
|
+
"type": "boolean"
|
|
7378
|
+
},
|
|
7379
|
+
"breakdown": {
|
|
7380
|
+
"default": false,
|
|
7381
|
+
"description": "Show per-model cost breakdown.",
|
|
7382
|
+
"markdownDescription": "Show per-model cost breakdown.",
|
|
7383
|
+
"type": "boolean"
|
|
7384
|
+
},
|
|
7385
|
+
"color": {
|
|
7386
|
+
"default": false,
|
|
7387
|
+
"description": "Enable colored output.",
|
|
7388
|
+
"markdownDescription": "Enable colored output.",
|
|
7389
|
+
"type": "boolean"
|
|
7390
|
+
},
|
|
7391
|
+
"compact": {
|
|
7392
|
+
"default": false,
|
|
7393
|
+
"description": "Force compact table layout for narrow terminals.",
|
|
7394
|
+
"markdownDescription": "Force compact table layout for narrow terminals.",
|
|
7395
|
+
"type": "boolean"
|
|
7396
|
+
},
|
|
7397
|
+
"debug": {
|
|
7398
|
+
"default": false,
|
|
7399
|
+
"description": "Show pricing mismatch information for debugging.",
|
|
7400
|
+
"markdownDescription": "Show pricing mismatch information for debugging.",
|
|
7401
|
+
"type": "boolean"
|
|
7402
|
+
},
|
|
7403
|
+
"debugSamples": {
|
|
7404
|
+
"default": 5,
|
|
7405
|
+
"description": "Number of sample discrepancies to show in debug output.",
|
|
7406
|
+
"format": "uint",
|
|
7407
|
+
"markdownDescription": "Number of sample discrepancies to show in debug output.",
|
|
7408
|
+
"minimum": 0.0,
|
|
7409
|
+
"type": "integer"
|
|
7410
|
+
},
|
|
7411
|
+
"jq": {
|
|
7412
|
+
"description": "jq filter to apply to JSON output.",
|
|
7413
|
+
"markdownDescription": "jq filter to apply to JSON output.",
|
|
7414
|
+
"type": "string"
|
|
7415
|
+
},
|
|
7416
|
+
"json": {
|
|
7417
|
+
"default": false,
|
|
7418
|
+
"description": "Output in JSON format.",
|
|
7419
|
+
"markdownDescription": "Output in JSON format.",
|
|
7420
|
+
"type": "boolean"
|
|
7421
|
+
},
|
|
7422
|
+
"mode": {
|
|
7423
|
+
"default": "auto",
|
|
7424
|
+
"description": "Cost calculation mode.",
|
|
7425
|
+
"enum": ["auto", "calculate", "display"],
|
|
7426
|
+
"markdownDescription": "Cost calculation mode.",
|
|
7427
|
+
"type": "string"
|
|
7428
|
+
},
|
|
7429
|
+
"noColor": {
|
|
7430
|
+
"default": false,
|
|
7431
|
+
"description": "Disable colored output.",
|
|
7432
|
+
"markdownDescription": "Disable colored output.",
|
|
7433
|
+
"type": "boolean"
|
|
7434
|
+
},
|
|
7435
|
+
"noCost": {
|
|
7436
|
+
"default": false,
|
|
7437
|
+
"description": "Hide cost information in table and JSON output.",
|
|
7438
|
+
"markdownDescription": "Hide cost information in table and JSON output.",
|
|
7439
|
+
"type": "boolean"
|
|
7440
|
+
},
|
|
7441
|
+
"noOffline": {
|
|
7442
|
+
"default": false,
|
|
7443
|
+
"description": "Disable cached pricing data where supported.",
|
|
7444
|
+
"markdownDescription": "Disable cached pricing data where supported.",
|
|
7445
|
+
"type": "boolean"
|
|
7446
|
+
},
|
|
7447
|
+
"offline": {
|
|
7448
|
+
"default": false,
|
|
7449
|
+
"description": "Use cached pricing data where supported.",
|
|
7450
|
+
"markdownDescription": "Use cached pricing data where supported.",
|
|
7451
|
+
"type": "boolean"
|
|
7452
|
+
},
|
|
7453
|
+
"order": {
|
|
7454
|
+
"default": "asc",
|
|
7455
|
+
"description": "Sort order.",
|
|
7456
|
+
"enum": ["desc", "asc"],
|
|
7457
|
+
"markdownDescription": "Sort order.",
|
|
7458
|
+
"type": "string"
|
|
7459
|
+
},
|
|
7460
|
+
"pricingOverrides": {
|
|
7461
|
+
"additionalProperties": {
|
|
7462
|
+
"additionalProperties": false,
|
|
7463
|
+
"properties": {
|
|
7464
|
+
"cacheCreationInputTokenCost": {
|
|
7465
|
+
"format": "double",
|
|
7466
|
+
"type": "number"
|
|
7467
|
+
},
|
|
7468
|
+
"cacheCreationInputTokenCostAbove200kTokens": {
|
|
7469
|
+
"format": "double",
|
|
7470
|
+
"type": "number"
|
|
7471
|
+
},
|
|
7472
|
+
"cacheReadInputTokenCost": {
|
|
7473
|
+
"format": "double",
|
|
7474
|
+
"type": "number"
|
|
7475
|
+
},
|
|
7476
|
+
"cacheReadInputTokenCostAbove200kTokens": {
|
|
7477
|
+
"format": "double",
|
|
7478
|
+
"type": "number"
|
|
7479
|
+
},
|
|
7480
|
+
"fastMultiplier": {
|
|
7481
|
+
"format": "double",
|
|
7482
|
+
"type": "number"
|
|
7483
|
+
},
|
|
7484
|
+
"inputCostPerToken": {
|
|
7485
|
+
"format": "double",
|
|
7486
|
+
"type": "number"
|
|
7487
|
+
},
|
|
7488
|
+
"inputCostPerTokenAbove200kTokens": {
|
|
7489
|
+
"format": "double",
|
|
7490
|
+
"type": "number"
|
|
7491
|
+
},
|
|
7492
|
+
"maxInputTokens": {
|
|
7493
|
+
"format": "uint64",
|
|
7494
|
+
"minimum": 0.0,
|
|
7495
|
+
"type": "integer"
|
|
7496
|
+
},
|
|
7497
|
+
"outputCostPerToken": {
|
|
7498
|
+
"format": "double",
|
|
7499
|
+
"type": "number"
|
|
7500
|
+
},
|
|
7501
|
+
"outputCostPerTokenAbove200kTokens": {
|
|
7502
|
+
"format": "double",
|
|
7503
|
+
"type": "number"
|
|
7504
|
+
}
|
|
7505
|
+
},
|
|
7506
|
+
"type": "object"
|
|
7507
|
+
},
|
|
7508
|
+
"description": "Runtime pricing overrides keyed by raw model name.",
|
|
7509
|
+
"markdownDescription": "Runtime pricing overrides keyed by raw model name.",
|
|
7510
|
+
"type": "object"
|
|
7511
|
+
},
|
|
7512
|
+
"since": {
|
|
7513
|
+
"description": "Filter from date (YYYY-MM-DD or YYYYMMDD).",
|
|
7514
|
+
"markdownDescription": "Filter from date (YYYY-MM-DD or YYYYMMDD).",
|
|
7515
|
+
"type": "string"
|
|
7516
|
+
},
|
|
7517
|
+
"singleThread": {
|
|
7518
|
+
"default": false,
|
|
7519
|
+
"description": "Disable parallel file processing.",
|
|
7520
|
+
"markdownDescription": "Disable parallel file processing.",
|
|
7521
|
+
"type": "boolean"
|
|
7522
|
+
},
|
|
7523
|
+
"timezone": {
|
|
7524
|
+
"description": "Timezone for date grouping (IANA).",
|
|
7525
|
+
"markdownDescription": "Timezone for date grouping (IANA).",
|
|
7526
|
+
"type": "string"
|
|
7527
|
+
},
|
|
7528
|
+
"until": {
|
|
7529
|
+
"description": "Filter until date (inclusive).",
|
|
7530
|
+
"markdownDescription": "Filter until date (inclusive).",
|
|
7531
|
+
"type": "string"
|
|
7532
|
+
}
|
|
7533
|
+
},
|
|
7534
|
+
"type": "object"
|
|
7535
|
+
}
|
|
7536
|
+
},
|
|
7537
|
+
"type": "object"
|
|
7538
|
+
},
|
|
7539
|
+
"defaults": {
|
|
7540
|
+
"additionalProperties": false,
|
|
7541
|
+
"properties": {
|
|
7542
|
+
"all": {
|
|
7543
|
+
"default": false,
|
|
7544
|
+
"description": "Accepted for compatibility; all detected supported agents are included by default.",
|
|
7545
|
+
"markdownDescription": "Accepted for compatibility; all detected supported agents are included by default.",
|
|
7546
|
+
"type": "boolean"
|
|
7547
|
+
},
|
|
7548
|
+
"breakdown": {
|
|
7549
|
+
"default": false,
|
|
7550
|
+
"description": "Show per-model cost breakdown.",
|
|
7551
|
+
"markdownDescription": "Show per-model cost breakdown.",
|
|
7552
|
+
"type": "boolean"
|
|
7553
|
+
},
|
|
7554
|
+
"color": {
|
|
7555
|
+
"default": false,
|
|
7556
|
+
"description": "Enable colored output.",
|
|
7557
|
+
"markdownDescription": "Enable colored output.",
|
|
7558
|
+
"type": "boolean"
|
|
7559
|
+
},
|
|
7560
|
+
"compact": {
|
|
7561
|
+
"default": false,
|
|
7562
|
+
"description": "Force compact table layout for narrow terminals.",
|
|
7563
|
+
"markdownDescription": "Force compact table layout for narrow terminals.",
|
|
7564
|
+
"type": "boolean"
|
|
7565
|
+
},
|
|
7566
|
+
"debug": {
|
|
7567
|
+
"default": false,
|
|
7568
|
+
"description": "Show pricing mismatch information for debugging.",
|
|
7569
|
+
"markdownDescription": "Show pricing mismatch information for debugging.",
|
|
7570
|
+
"type": "boolean"
|
|
7571
|
+
},
|
|
7572
|
+
"debugSamples": {
|
|
7573
|
+
"default": 5,
|
|
7574
|
+
"description": "Number of sample discrepancies to show in debug output.",
|
|
7575
|
+
"format": "uint",
|
|
7576
|
+
"markdownDescription": "Number of sample discrepancies to show in debug output.",
|
|
7577
|
+
"minimum": 0.0,
|
|
7578
|
+
"type": "integer"
|
|
7579
|
+
},
|
|
7580
|
+
"jq": {
|
|
7581
|
+
"description": "jq filter to apply to JSON output.",
|
|
7582
|
+
"markdownDescription": "jq filter to apply to JSON output.",
|
|
7583
|
+
"type": "string"
|
|
7584
|
+
},
|
|
7585
|
+
"json": {
|
|
7586
|
+
"default": false,
|
|
7587
|
+
"description": "Output in JSON format.",
|
|
7588
|
+
"markdownDescription": "Output in JSON format.",
|
|
7589
|
+
"type": "boolean"
|
|
7590
|
+
},
|
|
7591
|
+
"mode": {
|
|
7592
|
+
"default": "auto",
|
|
7593
|
+
"description": "Cost calculation mode.",
|
|
7594
|
+
"enum": ["auto", "calculate", "display"],
|
|
7595
|
+
"markdownDescription": "Cost calculation mode.",
|
|
7596
|
+
"type": "string"
|
|
7597
|
+
},
|
|
7598
|
+
"noColor": {
|
|
7599
|
+
"default": false,
|
|
7600
|
+
"description": "Disable colored output.",
|
|
7601
|
+
"markdownDescription": "Disable colored output.",
|
|
7602
|
+
"type": "boolean"
|
|
7603
|
+
},
|
|
7604
|
+
"noCost": {
|
|
7605
|
+
"default": false,
|
|
7606
|
+
"description": "Hide cost information in table and JSON output.",
|
|
7607
|
+
"markdownDescription": "Hide cost information in table and JSON output.",
|
|
7608
|
+
"type": "boolean"
|
|
7609
|
+
},
|
|
7610
|
+
"noOffline": {
|
|
7611
|
+
"default": false,
|
|
7612
|
+
"description": "Disable cached pricing data where supported.",
|
|
7613
|
+
"markdownDescription": "Disable cached pricing data where supported.",
|
|
7614
|
+
"type": "boolean"
|
|
7615
|
+
},
|
|
7616
|
+
"offline": {
|
|
7617
|
+
"default": false,
|
|
7618
|
+
"description": "Use cached pricing data where supported.",
|
|
7619
|
+
"markdownDescription": "Use cached pricing data where supported.",
|
|
7620
|
+
"type": "boolean"
|
|
7621
|
+
},
|
|
7622
|
+
"order": {
|
|
7623
|
+
"default": "asc",
|
|
7624
|
+
"description": "Sort order.",
|
|
7625
|
+
"enum": ["desc", "asc"],
|
|
7626
|
+
"markdownDescription": "Sort order.",
|
|
7627
|
+
"type": "string"
|
|
7628
|
+
},
|
|
7629
|
+
"pricingOverrides": {
|
|
7630
|
+
"additionalProperties": {
|
|
7631
|
+
"additionalProperties": false,
|
|
7632
|
+
"properties": {
|
|
7633
|
+
"cacheCreationInputTokenCost": {
|
|
7634
|
+
"format": "double",
|
|
7635
|
+
"type": "number"
|
|
7636
|
+
},
|
|
7637
|
+
"cacheCreationInputTokenCostAbove200kTokens": {
|
|
7638
|
+
"format": "double",
|
|
7639
|
+
"type": "number"
|
|
7640
|
+
},
|
|
7641
|
+
"cacheReadInputTokenCost": {
|
|
7642
|
+
"format": "double",
|
|
7643
|
+
"type": "number"
|
|
7644
|
+
},
|
|
7645
|
+
"cacheReadInputTokenCostAbove200kTokens": {
|
|
7646
|
+
"format": "double",
|
|
7647
|
+
"type": "number"
|
|
7648
|
+
},
|
|
7649
|
+
"fastMultiplier": {
|
|
7650
|
+
"format": "double",
|
|
7651
|
+
"type": "number"
|
|
7652
|
+
},
|
|
7653
|
+
"inputCostPerToken": {
|
|
7654
|
+
"format": "double",
|
|
7655
|
+
"type": "number"
|
|
7656
|
+
},
|
|
7657
|
+
"inputCostPerTokenAbove200kTokens": {
|
|
7658
|
+
"format": "double",
|
|
7659
|
+
"type": "number"
|
|
7660
|
+
},
|
|
7661
|
+
"maxInputTokens": {
|
|
7662
|
+
"format": "uint64",
|
|
7663
|
+
"minimum": 0.0,
|
|
7664
|
+
"type": "integer"
|
|
7665
|
+
},
|
|
7666
|
+
"outputCostPerToken": {
|
|
7667
|
+
"format": "double",
|
|
7668
|
+
"type": "number"
|
|
7669
|
+
},
|
|
7670
|
+
"outputCostPerTokenAbove200kTokens": {
|
|
7671
|
+
"format": "double",
|
|
7672
|
+
"type": "number"
|
|
7673
|
+
}
|
|
7674
|
+
},
|
|
7675
|
+
"type": "object"
|
|
7676
|
+
},
|
|
7677
|
+
"description": "Runtime pricing overrides keyed by raw model name.",
|
|
7678
|
+
"markdownDescription": "Runtime pricing overrides keyed by raw model name.",
|
|
7679
|
+
"type": "object"
|
|
7680
|
+
},
|
|
7681
|
+
"since": {
|
|
7682
|
+
"description": "Filter from date (YYYY-MM-DD or YYYYMMDD).",
|
|
7683
|
+
"markdownDescription": "Filter from date (YYYY-MM-DD or YYYYMMDD).",
|
|
7684
|
+
"type": "string"
|
|
7685
|
+
},
|
|
7686
|
+
"singleThread": {
|
|
7687
|
+
"default": false,
|
|
7688
|
+
"description": "Disable parallel file processing.",
|
|
7689
|
+
"markdownDescription": "Disable parallel file processing.",
|
|
7690
|
+
"type": "boolean"
|
|
7691
|
+
},
|
|
7692
|
+
"timezone": {
|
|
7693
|
+
"description": "Timezone for date grouping (IANA).",
|
|
7694
|
+
"markdownDescription": "Timezone for date grouping (IANA).",
|
|
7695
|
+
"type": "string"
|
|
7696
|
+
},
|
|
7697
|
+
"until": {
|
|
7698
|
+
"description": "Filter until date (inclusive).",
|
|
7699
|
+
"markdownDescription": "Filter until date (inclusive).",
|
|
7700
|
+
"type": "string"
|
|
7701
|
+
}
|
|
7702
|
+
},
|
|
7703
|
+
"type": "object"
|
|
7704
|
+
}
|
|
7705
|
+
},
|
|
7706
|
+
"type": "object"
|
|
7707
|
+
},
|
|
7030
7708
|
"hermes": {
|
|
7031
7709
|
"additionalProperties": false,
|
|
7032
7710
|
"description": "Hermes Agent configuration.",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ccusage",
|
|
3
|
-
"version": "20.0.
|
|
3
|
+
"version": "20.0.20",
|
|
4
4
|
"description": "Analyze coding (agent) CLI token usage and costs from local data",
|
|
5
5
|
"homepage": "https://github.com/ccusage/ccusage#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -23,15 +23,15 @@
|
|
|
23
23
|
],
|
|
24
24
|
"type": "module",
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@types/node": "^24.13.
|
|
26
|
+
"@types/node": "^24.13.3"
|
|
27
27
|
},
|
|
28
28
|
"optionalDependencies": {
|
|
29
|
-
"@ccusage/ccusage-darwin-arm64": "20.0.
|
|
30
|
-
"@ccusage/ccusage-
|
|
31
|
-
"@ccusage/ccusage-linux-
|
|
32
|
-
"@ccusage/ccusage-
|
|
33
|
-
"@ccusage/ccusage-win32-
|
|
34
|
-
"@ccusage/ccusage-
|
|
29
|
+
"@ccusage/ccusage-darwin-arm64": "20.0.20",
|
|
30
|
+
"@ccusage/ccusage-darwin-x64": "20.0.20",
|
|
31
|
+
"@ccusage/ccusage-linux-arm64": "20.0.20",
|
|
32
|
+
"@ccusage/ccusage-linux-x64": "20.0.20",
|
|
33
|
+
"@ccusage/ccusage-win32-x64": "20.0.20",
|
|
34
|
+
"@ccusage/ccusage-win32-arm64": "20.0.20"
|
|
35
35
|
},
|
|
36
36
|
"scripts": {
|
|
37
37
|
"build": "scripts/ensure-native-binary.nu && publint"
|