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
Add token usage or cost information to the rollout files #3201
It doesn't necessarily have to be a rollout file, but I hope to find a way to quantify the usage of Codex CLI, whether it's executed through TUI or CI mode.
Activity
pakrym-oai commentedon Sep 5, 2025
Curious, why in the rollout file specifically? We do show the information at the end of the session.
doggy8088 commentedon Sep 5, 2025
It doesn't necessarily have to be a rollout file, but I hope to find a way to quantify the usage of Codex CLI, whether it's executed through TUI or CI mode.
doggy8088 commentedon Sep 6, 2025
@pakrym-oai You can refer to the ccusage project. I would like to have a tool that can always calculate the actual token usage through Codex CLI.
etraut-openai commentedon Dec 31, 2025
The rollout files do include token usage information. You could write a script (or have codex do it) to tally the token information if you'd like.