Add token usage or cost information to the rollout files
Resolved 💬 4 comments Opened Sep 5, 2025 by doggy8088 Closed Dec 31, 2025
💡 Likely answer: A maintainer (pakrym-oai, contributor)
responded on this thread — see the highlighted reply below.
What feature would you like to see?
I hope to see the final token usage or cost consumption for each session in the rollout file.
Are you interested in implementing this feature?
No
Additional information
_No response_
4 Comments
Curious, why in the rollout file specifically? We do show the information at the end of the session.
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.
@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.
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.