Skip to content

Codex usage quota and credit balance appear inconsistent and possibly stuck. #17764

Open

Description

@nitipit

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
Image Image Image Image

What steps can reproduce the bug?

Steps to Reproduce

  1. Use Codex via OpenCode

  2. Check usage via /status

  3. Observe:

    • 5h limit: 100%
    • Weekly limit: 0%
    • Credits: ~250
  4. Continue using Codex normally (multiple requests)

  5. Observe that:

    • Usage continues to work normally
    • 5h limit remains at 100%
    • Weekly limit remains at 0%
    • Credits do not decrease
  6. At some point, credit balance increases unexpectedly:

    • Example: 250 → 1250 (+1000)
  7. Verify:

    • No auto top-up transaction recorded
    • No payment method charged
  8. Disable auto-reload

  9. Observe:

    • Quota values remain unchanged ("stuck")
    • Still able to use Codex normally

What is the expected behavior?

No response

Additional information

No response

Activity

  1. added
    CLIIssues related to the Codex CLI
    rate-limitsIssues related to rate limits, quotas, and token usage reporting
    on Apr 14, 2026
  2. Irvinwop commented on Apr 15, 2026

    @Irvinwop

    can confirm that this also happens on the native macos app, so its probably just a serverside issue rather than a codex app issue.

  3. Irvinwop commented on Apr 15, 2026

    @Irvinwop

    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. 💀

  4. Andy61490963 commented on Apr 16, 2026

    @Andy61490963

    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.

  5. bandaoshutiao commented on Apr 16, 2026

    @bandaoshutiao

    same here...

  6. Irvinwop commented on Apr 16, 2026

    @Irvinwop

    Anyways, I am pretty sure that the credit jump is related to the email they sent out on the 10th

    Image
  7. mattparlane commented on May 3, 2026

    @mattparlane

    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.

  8. nitipit commented on May 5, 2026

    @nitipit
    Author

    The usage balance looks correct for me now. Quota and credits seem to be updating properly.

  9. pzarzycki commented on Jul 8, 2026

    @pzarzycki

    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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingrate-limitsIssues related to rate limits, quotas, and token usage reporting

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions