Skip to content

Add token usage or cost information to the rollout files #3201

Closed as not planned

Description

@doggy8088

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

Activity

  1. added
    enhancement
    on Sep 5, 2025
  2. pakrym-oai commented on Sep 5, 2025

    @pakrym-oai
    Contributor

    Curious, why in the rollout file specifically? We do show the information at the end of the session.

  3. doggy8088 commented on Sep 5, 2025

    @doggy8088
    Author

    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.

  4. doggy8088 commented on Sep 6, 2025

    @doggy8088
    Author

    @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.

  5. added
    rate-limits
    on Nov 16, 2025
  6. etraut-openai commented on Dec 31, 2025

    @etraut-openai
    Contributor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementrate-limits

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions