Skip to content

Codex Monthly Report (Beta)

Codex CLI monthly report

The monthly command mirrors ccusage's monthly report while operating on Codex CLI session logs.

bash
# Recommended (fastest)
bunx @ccusage/codex@latest monthly

# Using npx
npx @ccusage/codex@latest monthly

Options

FlagDescription
--since / --untilFilter to a specific date range (YYYYMMDD or YYYY-MM-DD) before aggregating
--timezoneOverride the timezone used to bucket usage into months
--localeAdjust month label formatting
--jsonEmit structured JSON instead of a table
--offline / --no-offlineForce cached LiteLLM pricing or enable live fetching
--compactForce compact table layout (same columns as a narrow terminal)

The output uses the same responsive table component as ccusage, including compact mode support, per-model token summaries, and a combined totals row.

Released under the MIT License.