How to track Codex usage on Plus account via CLI - usage limits and renewal?
New usage stats
Is my Codex usage data secure?
How does Codextime track Codex usage without manual exports?
Is my data safe with CUStats?
Videos
Hi all. My team has been using Codex a lot recently, and I realized there are a lot of usage related metrics that are pretty important to track that we didn't have insight on. Things like:
-
how many tokens are being used during Codex calls?
-
how efficient is the token cache utlization?
-
how many conversations are happening?
-
which users are using Codex and when?
-
what are the success rates and user decisions(accept or reject) of individual Codex commands?
-
how long are Codex calls taking?
I noticed that Codex actually leverages OpenTelemetry to export telemetry data from its usage. All i had to do was point the data to my own OpenTelemetry compatible platform and I could begin visualizing logs and creating dashboards.
I followed this Codex observability guide to get set up, and ended up creating a pretty useful dashboard:
Codex Dashboard
It tracks useful metrics like:
-
token usage(including cache)
-
# of conversations and model calls
-
which users are using Codex
-
Terminal type
-
success rate of calls
-
user decisions of calls
-
# of requests over time
-
request duration
-
additional conversation details
Iโm curious what other people here think about this and if there are any more metrics you would find useful to track that aren't included here?
Thanks!
I'm trying to understand how to monitor Codex API usage when using a Plus account, specifically from the command line. A few questions:
-
Is there a CLI tool or dashboard specifically for tracking Codex usage stats?
-
Are there usage limits on Plus accounts, and if so, what are they?
-
How do usage limits reset or renew - is it monthly, yearly, or some other period?
-
Are there any built-in commands or flags I can use in the CLI to check my current usage?
I'm primarily working from the terminal and would prefer not to have to jump into a web dashboard each time. Any guidance on best practices for tracking and managing usage from the CLI would be appreciated.
Yesterday I noticed that there are new usage stats on Codex Web, that reflect usage by day and platform. I really like it. Also, there seems to be separate usage limits for Code Reviews, which is really nice, but have to try it yet. You can check them on: https://chatgpt.com/codex/settings/usage