Credits desync: CLI blocked with "usage limit hit" while UI showed 312 credits, web ui dropped to 0 with no usage recorded.

Open 💬 3 comments Opened Apr 16, 2026 by GraciousGazelles
💡 Likely answer: A maintainer (github-actions[bot], contributor) responded on this thread — see the highlighted reply below.

What version of Codex CLI is running?

Custom fork based on openai/codex/main @ commit 4cc6818

What subscription do you have?

ChatGPT Pro

Which model were you using?

gpt-5.4-mini

What platform is your computer?

Linux 6.17.0-20-generic x86_64 unknown

What terminal emulator and version are you using (if applicable)?

Tmux

What issue are you seeing?

I was actively using Codex CLI and had ~312 credits remaining (confirmed in the UI shortly before the issue).

I then attempted to submit a message and received:

■ You've hit your usage limit. Visit https://chatgpt.com/codex/settings/usage to purchase more credits or try again at Apr 17th, 2026 6:10 AM.

At the same time:

CLI blocked further usage entirely
Codex cloud usage page suddenly showed 0 credits remaining
No new usage entries were logged for today
Credits appeared to drop from ~312 → 0 instantly
No visible consumption in usage history explaining the drop

This looks like a state desync between billing/credits and enforcement, or a backend accounting issue.

What steps can reproduce the bug?

Use Codex CLI normally with remaining credits (~312 in my case)
Submit a prompt
CLI responds with usage limit error
Check usage UI:
Credits now show 0
No corresponding usage logged for the drop

Thread ID:

019d6d0a-82da-7560-a51f-35dabdd0a229

What is the expected behavior?

Credits should decrement transparently and consistently
CLI enforcement should match UI-reported credit balance
Usage history should reflect any credit consumption
Users should not be blocked if credits are available

Additional information

This appears to be a critical billing/state consistency issue rather than a simple quota limit.

View original on GitHub ↗

3 Comments

github-actions[bot] contributor · 4 months ago

Potential duplicates detected. Please review them and close your issue if it is a duplicate.

  • #17764
  • #17537
  • #16917
  • #16909
  • #16847

Powered by Codex Action

GraciousGazelles · 4 months ago

This seems related to #18018

GraciousGazelles · 4 months ago

Confirming that my Codex webui shows 0 credit consumption since 7 April, but this credit vanishing act happened 17 Apr. Vanished credits still don't appear in usage.