r/codex • u/Rickie_Lake • 9d ago
Showcase Codex keeps per-reply token counts on your Mac. Here is how to see which session used the most.
Codex writes every session to ~/.codex/sessions, in folders by date. Each model reply has a usage record with input, cached input and output tokens. Add them up per file and you can see which session used the most. The usage screen does not show that.
Two things to know if you try it:
- The input figure already includes the cached part. Claude Code records those separately, so do not add them the same way if you use both.
- The input figure on a session's latest reply is what it re-reads on every turn. When that gets large, a fresh session for the next task is the cheapest fix.
Last week on my Mac, Codex used 0.6M to 113M tokens a day. Claude Code used about 18 times as much (3.3B vs 185M for the week). Seeing both side by side told me where to look first.
I wrote a free command that adds this up for both tools: https://github.com/apexnorthca/costdoctor-cli (`brew install apexnorthca/tap/costdoctor`, MIT). It prints the last 7 days, your plan limits with a forecast, and the heaviest sessions today. Codex limits come from Codex's own logs. Nothing is uploaded. The only network request is the Claude plan lookup to Anthropic, and `--no-limits` turns it off.
I also made Cost Doctor, a Mac menu bar app that reads both sets of logs into one list and flags sessions that have grown large.
The guide on reading the Codex logs yourself is free: https://costdoctor.app/guides/codex-token-usage-by-session?ref=reddit-codex
•
u/dexterthebot 9d ago
You might want to consider listing your project on the weekly Show-Us-What-You-Built post. Look out for it on Tuesday/Wednesday. Highest commented project wins a week promotion on r/Codex and gets on the Hall of Fame sidebar. See below for last week's winner.**
Light Wars AR: real-life laser tag app with no extra gear. Your phone is the gun and your room is the map. Play up to 6 friends in the same room, or fight drone waves and bosses solo. The vision models run on the phone, and camera frames never leave it. Free on iPhone and Android.
Website: https://lightwarsar.com
iPhone: https://apps.apple.com/us/app/light-wars-ar-laser-tag-party/id6508168951
Android: https://play.google.com/store/apps/details?id=com.lasertag.lightwars.
Contact: contact@lightwarsar.com