Make sense of your Codex token usage
Asked for a tiny fix and the context grew by half a million tokens? The logs remember every step. Let’s take a look.


Open your Codex logs to see your sessions.
Or choose a folder, ZIP archive or JSONL files.
~/.codex/sessionsWindows%USERPROFILE%\.codex\sessionsArchived sessions~/.codex/archived_sessionsOpen the hidden folder by pasting its path into the file picker’s address bar. On macOS, press ⌘⇧. to show hidden files.
Your files are read only in your browser and are never uploaded.
Your session totem: its animal, adjective, colors, and rhythm come from the ratios in your logs. Same logs, same totem.
All sessions, or selected days using Date range. “% week ≈” estimates this session’s share of the observed weekly counter increase; parallel sessions are not double-counted. “—” means no readings; “*” means some requests have no estimate. Click a heading to sort or a row to open a session.
Click for one day, drag for several days, Shift+click to extend through that day
The same requests at official OpenAI API prices and as a percentage of the subscription’s weekly limit, when limit counter readings are available in the logs.
What these requests would cost if Codex used the API with per-token billing.
Dollars per 1M tokens for models in your logs. Reference prices are filled in automatically. You can edit any price; changes are saved in this browser.
Input tokens across all requests, broken down by what was in the context at request time. A command’s output is counted each time it was sent to the model.
Share of all input tokens
On the right: the total over the full period in the selected units, its share, and the average number of times each token in the category was resent to the model (×).
The context grows with each agent step, and all of it is sent to the model again. Long sessions with large contexts account for most of the volume.
Input size for each model request; sharp drops indicate context compaction. Click a line or label to open the session.
Share of requests and input tokens by request context size.
Models used for requests and their usage in the selected units. Click a model to see its sessions in the Sessions table.
Separate sessions where a model reviews agent actions before execution. Each receives the session history again, which can be costly. Click a row to open the session being reviewed.
How much text each command type returned and its repeated presence in context. Click a row to inspect commands, the most expensive calls and their sessions.
Daily cached input, fresh input and model output in this computer’s time zone. Use Date range in Sessions to inspect any day or range.
Session working directory
codex-auto-review — action review model
Total over the full period
Your message and every model request the agent made while answering it. Click to open the session at that point.
rollout-*.jsonl after the model replies. Records with the same response_id are the same response and count only once, even if recorded in two files. Session-level totals are not used: they reset on compaction and resume.