Skip to content

Commit a10b897

Browse files
feat(ccusage): add --no-cost flag to hide cost in reports (#1224)
Add a shared --no-cost option and noCost config key that hide cost data from report output. The flag removes cost columns from table renderers, hides cost lines in detailed block/session output, and strips cost fields recursively from JSON output before printing or jq filtering. This also updates help/config schema snapshots, documents the option, and keeps the branch current with main so the PR can merge cleanly. Closes #1167
1 parent e36a3c2 commit a10b897

36 files changed

Lines changed: 883 additions & 164 deletions

apps/ccusage/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ bunx ccusage daily --all
107107
# Filters and options
108108
bunx ccusage daily --since 2026-04-25 --until 2026-05-16
109109
bunx ccusage daily --json # JSON output
110+
bunx ccusage daily --no-cost # Hide cost columns and JSON cost fields
110111
bunx ccusage daily --timezone UTC # Use UTC timezone
111112

112113
# Project analysis
@@ -137,6 +138,7 @@ bunx ccusage monthly --compact # Compact monthly report
137138
- 📋 **Enhanced Model Display**: Model names shown as bulleted lists for better readability
138139
- 📄 **JSON Output**: Export data in structured JSON format with `--json`
139140
- 💰 **Cost Tracking**: Shows costs in USD for each day/month/session
141+
- 🔒 **Cost Hiding**: Remove cost columns and JSON cost fields with `--no-cost`
140142
- 🔄 **Cache Token Support**: Tracks and displays cache creation and cache read tokens separately
141143
- 🌐 **Offline Mode**: Use pre-cached pricing data without network connectivity with `--offline`
142144
- 🧩 **Custom Pricing Overrides**: Override token pricing per raw model name in `ccusage.json` without rebuilding

0 commit comments

Comments
 (0)