Codex usage quota and credit balance appear inconsistent and possibly stuck.
Open 💬 9 comments Opened Apr 14, 2026 by nitipit
💡 Likely answer: A maintainer (github-actions[bot], contributor)
responded on this thread — see the highlighted reply below.
What version of Codex CLI is running?
codex-cli 0.120.0
What subscription do you have?
plus
Which model were you using?
gpt-5.4
What platform is your computer?
_No response_
What terminal emulator and version are you using (if applicable)?
alacritty -> opencode
What issue are you seeing?
Summary
Codex usage quota and credit balance appear inconsistent and possibly stuck when used via OpenCode.
Environment
- Interface: OpenCode (not official Codex CLI)
- Model: gpt-5.4 (via OpenCode)
- Auth: ChatGPT Plus account
- Codex CLI version: 0.120.0
- OS: Linux (Fedora)
Configuration
- Auto-reload minimum: 125
- Auto-reload target: 250
Actual Behavior
- Weekly quota shows 0% but usage is still allowed
- 5h quota remains at 100% despite active usage
- Credits do not decrease with usage
- Credits increased unexpectedly beyond configured target
- Quota and credit state appear frozen or desynchronized
Expected Behavior
- Quota should update based on actual usage:
- 5h limit should decrease with usage
- Weekly limit should reflect consumption
- Credit balance should:
- Decrease with usage when applicable
- Only increase according to auto-reload configuration
- Auto-reload should:
- Trigger only when balance < 125
- Restore balance only up to 250
- Never exceed configured target
- System state (quota + credit) should be consistent and not appear frozen
Additional Context
- CLI and web UI show identical quota/credit values
- Issue occurs via OpenCode (not official CLI directly)
- Unclear whether root cause is:
- Codex backend (quota / credit accounting)
- or OpenCode integration layer
Impact
- Difficult to understand real usage limits
- Reduced trust in quota and billing behavior
- Potential risk of incorrect credit accounting
<img width="1366" height="1098" alt="Image" src="https://github.com/user-attachments/assets/4b959467-37ce-4552-b9db-356d44565bea" />
<img width="1406" height="1529" alt="Image" src="https://github.com/user-attachments/assets/4b84398d-b9d4-4922-a0e2-fd965f2f5350" />
<img width="1389" height="841" alt="Image" src="https://github.com/user-attachments/assets/aebfceaa-1238-4a45-84aa-548ac367e803" />
<img width="1374" height="701" alt="Image" src="https://github.com/user-attachments/assets/1af8c1c2-d7d6-4649-bd5d-203f40c6dac9" />
What steps can reproduce the bug?
Steps to Reproduce
- Use Codex via OpenCode
- Check usage via
/status - Observe:
- 5h limit: 100%
- Weekly limit: 0%
- Credits: ~250
- Continue using Codex normally (multiple requests)
- Observe that:
- Usage continues to work normally
- 5h limit remains at 100%
- Weekly limit remains at 0%
- Credits do not decrease
- At some point, credit balance increases unexpectedly:
- Example: 250 → 1250 (+1000)
- Verify:
- No auto top-up transaction recorded
- No payment method charged
- Disable auto-reload
- Observe:
- Quota values remain unchanged ("stuck")
- Still able to use Codex normally
What is the expected behavior?
_No response_
Additional information
_No response_
9 Comments
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
can confirm that this also happens on the native macos app, so its probably just a serverside issue rather than a codex app issue.
Wow to give an update on this, I just witnessed all of my credits drain in real time. It went from 3800 all the way down to 0. It ticked down by 1 every few seconds until they were all gone, despite no usage of codex. 💀
Same here. Mine dropped from 1000 all the way down to 0, ticking down by 10 ~ 50 every few mins. I wasn’t even using Codex. I’m worried the delayed billing might end up maxing out my credit card.
same here...
Anyways, I am pretty sure that the credit jump is related to the email they sent out on the 10th
<img width="1204" height="992" alt="Image" src="https://github.com/user-attachments/assets/9aa58bc3-138c-46ea-bcee-bdbe0cd8eaba" />
I'm seeing this in the Codex app on Linux (using https://github.com/ilysenko/codex-desktop-linux). I've been coding solidly for about three hours and neither my 5-hour or weekly limit has moved at all.
The usage balance looks correct for me now. Quota and credits seem to be updating properly.
On the visibility side, here's a small tool. It reads local Codex/Claude session data so token usage and session details are easier to inspect without API keys or uploading logs.
Open source:
https://github.com/pzarzycki/token-companion
If you like it - leave a star; submit an issue or request, or even a PR!