You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 85f0b33
Browse filesBrowse the repository at this point in the historyBrowse files
Add CODEX_EXEC_LOG_DIR so ccusage can include JSONL files captured from codex exec --json alongside normal CODEX_HOME session logs.
The Codex parser now accepts direct and nested usage payloads, keeps model and timestamp metadata when present, and falls back to the file timestamp for saved output lines that do not include one.
Copy file name to clipboardExpand all lines: docs/guide/codex/index.md
+8-4Lines changed: 8 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,8 +25,11 @@ Most users can start with unified reports such as `ccusage daily`. Add the `code
25
25
26
26
The CLI reads Codex session JSONL files located under `CODEX_HOME` (defaults to `~/.codex`). `CODEX_HOME` can be one directory or a comma-separated list of directories. Each file represents a single Codex CLI session and contains running token totals that the tool converts into per-day or per-month deltas.
27
27
28
+
Saved `codex exec --json` output can also be read from `CODEX_EXEC_LOG_DIR`. Point it at one directory or a comma-separated list of directories containing `.jsonl` files captured from `codex exec --json`.
When Codex emits a model alias (for example `gpt-5.5`), the CLI automatically resolves it through the LiteLLM pricing data when possible. No manual override is needed.
Copy file name to clipboardExpand all lines: docs/guide/environment-variables.md
+14-7Lines changed: 14 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,18 +6,20 @@ ccusage supports several environment variables for configuration and customizati
6
6
7
7
ccusage detects supported data source files from conventional locations by default. Set these variables when your data lives somewhere else. Each value can be one directory or a comma-separated list of directories:
0 commit comments