You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: ¿?¿?¿? Have the Codex graphics been lost? #616
I do see the usage, but I don't see the money supposedly saved.
The ChatGPT page does show usage charts by day, but it's true that none of them indicate the cost savings.
I use ChatGPT Pro.
If I am doing something wrong, I would appreciate some help.
Thanks for the screenshots, and sorry for the wait.
v0.70.0 includes one related fix: the Codex cost scan now also reads archived sessions (<CODEX_HOME>\archived_sessions) and older flat session files. Previously, archived conversations dropped out of Cost (30 days) and the weekly token/cost rows.
In your screenshots, though, every token row is empty while Codex shows active usage. That usually means CodexBar found no local Codex session logs at all. Cost and tokens are calculated only from those local logs; the usage percentages come from your account. To narrow it down, could you tell us:
How do you use Codex: the Codex CLI, the IDE extension, the Codex desktop app, Codex in the browser (cloud tasks), or inside WSL?
Does %USERPROFILE%\.codex\sessions exist, and does it contain dated folders with .jsonl files? Please also check %USERPROFILE%\.codex\archived_sessions.
Is the CODEX_HOME environment variable set? If so, to which folder?
Once v0.70.0 is published, please retest. If it still shows $0.00, the output of codexbar cost -p codex --days 30 --json would help a lot. Please remove any paths or account details you'd rather not share.
@ciltocruz thanks for testing 0.70.0. Since Codex CLI runs inside WSL, its session logs are in your WSL home (~/.codex/sessions). By default the cost scan only reads the Windows-side folder, so it finds nothing to count.
Could you try pointing it at the WSL folder?
Open Settings → Advanced → Codex local logs.
In Codex log paths, enter \\wsl.localhost\<distro>\home\<user>\.codex with your distro name and Linux user name. A .codex root is fine; the sessions folder inside it is scanned.
Refresh, and check whether the Codex cost rows fill in.
If they are still empty, please share:
the output of codexbar cost -p codex --days 30 --json from Windows (feel free to trim anything private)
your distro name as shown by wsl -l -v
Cost is calculated from Codex CLI session logs, so usage from tools that don't write those logs won't appear there.
And now... the million-dollar question... do you think it's possible to track the cost directly from the OpenAI account when the subscription is used in other CLIs, like Opencode or Pi?
@ciltocruz glad it works, and thanks for confirming.
On tracking usage from other CLIs:
Usage limits (the session and weekly percentages) come from your OpenAI account, so they already include usage from Opencode, Pi or any other tool on the same subscription.
Cost is calculated from Codex CLI session logs only. OpenAI doesn't offer a per-account cost or token API for ChatGPT subscriptions, so CodexBar can't see what other tools spend. If one of those tools writes Codex-format session logs, you can add its folder to Codex log paths and it will be counted.
Closing this since the WSL path fix resolves it. Feel free to reopen if the cost rows go empty again.
Activity
Finesssee commentedon Sep 24, 2026
Thanks for the report, I will fix that ASAP.
List #616 as related, not fixed, in the 0.70.0 changelog
Finesssee commentedon Oct 3, 2026
Thanks for the screenshots, and sorry for the wait.
v0.70.0 includes one related fix: the Codex cost scan now also reads archived sessions (
<CODEX_HOME>\archived_sessions) and older flat session files. Previously, archived conversations dropped out of Cost (30 days) and the weekly token/cost rows.In your screenshots, though, every token row is empty while Codex shows active usage. That usually means CodexBar found no local Codex session logs at all. Cost and tokens are calculated only from those local logs; the usage percentages come from your account. To narrow it down, could you tell us:
%USERPROFILE%\.codex\sessionsexist, and does it contain dated folders with.jsonlfiles? Please also check%USERPROFILE%\.codex\archived_sessions.CODEX_HOMEenvironment variable set? If so, to which folder?Once v0.70.0 is published, please retest. If it still shows $0.00, the output of
codexbar cost -p codex --days 30 --jsonwould help a lot. Please remove any paths or account details you'd rather not share.ciltocruz commentedon Oct 3, 2026
I use chatGPT models in Opencode and Codex cli, both in WSL, inside Windows.
I will test with v0,70.0
ciltocruz commentedon Oct 3, 2026
I installed 0.70.0.
It seem equal.
I assume it's not possible to perform the calculations if the models are used outside of Codex (exe), right?
Scan archived and flat Codex rollouts for cost history
List archived Codex rollouts in workspace usage
Finesssee commentedon Oct 6, 2026
im trying my best to fix this rn, im pretty it is possible.
Finesssee commentedon Oct 6, 2026
@ciltocruz thanks for testing 0.70.0. Since Codex CLI runs inside WSL, its session logs are in your WSL home (
~/.codex/sessions). By default the cost scan only reads the Windows-side folder, so it finds nothing to count.Could you try pointing it at the WSL folder?
\\wsl.localhost\<distro>\home\<user>\.codexwith your distro name and Linux user name. A.codexroot is fine; thesessionsfolder inside it is scanned.If they are still empty, please share:
codexbar cost -p codex --days 30 --jsonfrom Windows (feel free to trim anything private)wsl -l -vCost is calculated from Codex CLI session logs, so usage from tools that don't write those logs won't appear there.
ciltocruz commentedon Oct 6, 2026
It works!!
And now... the million-dollar question... do you think it's possible to track the cost directly from the OpenAI account when the subscription is used in other CLIs, like Opencode or Pi?
Finesssee commentedon Oct 6, 2026
@ciltocruz glad it works, and thanks for confirming.
On tracking usage from other CLIs:
Closing this since the WSL path fix resolves it. Feel free to reopen if the cost rows go empty again.