codex icon indicating copy to clipboard operation
codex copied to clipboard

Add a setting to disable CLI usage-limit warnings

Open saadjs opened this issue 2 months ago • 13 comments

What feature would you like to see?

Please add a config.toml setting to disable proactive usage-limit warnings in the CLI, such as:

⚠ Heads up, you have less than 25% of your weekly limit left. Run /status for a breakdown.

For example, a proposed setting could be:

[notice] hide_rate_limit_warnings = true

Warnings could remain enabled by default.

Why?

I monitor my usage myself. Once my remaining weekly allowance falls below a threshold, seeing the warning again when starting sessions adds noise without giving me new information.

I'd like to hide these warnings while keeping usage information available through /status and preserving errors when a limit actually prevents a request.

Additional information

Related: #10006 requested this and was closed due to insufficient upvotes. This request provides a specific use case for an optional toggle when using a ChatGPT subscription.

saadjs avatar Sep 24 '26 04:09 saadjs

I wish I could disable these warnings altogether. Especially now, when there is an always-present ⚠ 1 warning · f2 to view item in the status line. I monitor usage with CodexBar, and this reminder only steals attention and takes up valuable space.

antons avatar Sep 24 '26 13:09 antons

I'd also love a config.toml option to hide usage-limit warnings while keeping the warnings indicator for genuinely important issues.

After all, one of the reasons we use a terminal-based harness is the ability to customize it to our preferences.

tagorr avatar Sep 25 '26 22:09 tagorr

Also, it doesn’t make sense to use a reset when 25% of the quota is still remaining if it simply restores the quota to 100%, since that effectively wastes part of the reset. Ideally, I’d wait until the quota reaches 0% before getting notified and using a reset.

pspi avatar Sep 26 '26 05:09 pspi

Yeah, this is very annoying. I can monitor it myself, and in fact, I think most people do it often.

baoanhng avatar Sep 26 '26 17:09 baoanhng

Please add this. The warnings are so annoying that I stopped using codex after 50%, and switched to claude code

weixu02 avatar Sep 30 '26 15:09 weixu02

Upvote. This setting would be a lifesaver

GalllaxyCode avatar Sep 30 '26 19:09 GalllaxyCode

是的这弹窗,很烦人

zwmopen avatar Oct 13 '26 02:10 zwmopen

I have a working local prototype for this request, based on rust-v0.163.0 (83086188ae0614bd882818ff1aa23f3194962012). Sharing it here as a reference implementation in line with the current contribution policy.

Reference commit · Branch

The prototype adds /quota-warning [on|off|status|toggle]; the bare command toggles the setting. Warnings remain enabled by default. The command applies immediately in the current CLI and does not submit a model turn.

When disabled, it hides new proactive low-quota history warnings, the usage notice above the composer, and the lower-cost model-switch nudge. Rate-limit data continues to update and /status remains available. Existing history, unrelated warnings, and errors when quota actually blocks a request are preserved. Re-enabling also respects the existing hide_rate_limit_model_nudge preference.

Persistence/design note: this prototype uses an empty $CODEX_HOME/quota-warnings.disabled marker so it can remain client-local without changing the shared app-server configuration schema. It does not implement the config.toml option proposed in this issue. A native configuration setting would be preferable for the upstream implementation; the marker is only a prototype tradeoff. The preference is applied to the current client and loaded by future clients, rather than live-synchronized across already-running clients.

Local validation on Linux with Rust 1.95.0:

  • quota_warning test filter: 8 passed.
  • Related usage_notice, rate_limit, and slash regression filters: 315 passed.
  • Release CLI build completed successfully.

For that tagged-release build, stale workspace package versions in Cargo.lock and one version-only status snapshot were normalized locally. Those unrelated changes are intentionally excluded from the reference commit. The published change contains only the 15 TUI source/test files; it has not been rebased or retested against current main.

AfonsoZhang avatar Oct 21 '26 08:10 AfonsoZhang

4. I'd also love a config.toml option to hide usage-limit warnings while keeping the warnings indicator for genuinely important issues. After all, one of the reasons we use a terminal-based harness is the ability to customize it to our preferences.

good idea

AfonsoZhang avatar Oct 21 '26 08:10 AfonsoZhang

+1 for this request!

We use Codex CLI with multiple employees on a ChatGPT Business workspace.

Whenever an employee reaches their usage limit, Codex displays:

"Request a limit increase from your owner to continue using codex. Request increase?"

As the workspace owner, I'd really like an option to disable this prompt entirely, preferably through a central workspace setting or config.toml.

Employees should simply see that their usage limit has been reached, without being asked to request additional credits.

We're not looking to bypass any limits — just to remove this unnecessary prompt.

Please consider adding this option!

richcity-dev avatar Nov 07 '26 16:11 richcity-dev

I read the current TUI code to see what "usage warnings" covers today. There are four separate things, and only one of them can be turned off:

What you see When Can hide today?
"Heads up, you have less than 25% / 10% / 5% … left" in the history, counted in ⚠ 1 warning · f2 at 75 / 90 / 95% used (50% for the Plus/Team 5h window), once per session, so every new session can show it again no
⚠ weekly limit: 18% left · resets at … · /status above the composer the whole time usage is past that threshold and you have no credits no
"switch to a cheaper model" prompt at 90% yes, [notice] hide_rate_limit_model_nudge
limit reached / "Request a limit increase from your owner" at the hard stop no, and it shouldn't be the same switch

So a small version could be:

  1. One key next to the one that already exists: [notice] hide_rate_limit_warnings = true hides the first two rows. It goes through the same ConfigEdit path as hide_rate_limit_model_nudge, so a slash command could set it later without a separate marker file (the prototype above uses one).
  2. The hard stop always shows. Hiding a reminder is fine. Hiding "your request was refused" isn't.
  3. /status stays the place to look, which is what the people here already do.

A smaller fix that helps people who keep warnings on: remember the last threshold shown per window resets_at, not per session. Then "less than 25% left" shows once per week instead of once per new session, which is most of the noise in the original report.

The Business "Request increase?" prompt from @richcity-dev sounds like a workspace admin setting more than a personal one, so it may be worth its own issue.

balabommablock-cpu avatar Nov 12 '26 03:11 balabommablock-cpu

Please yes. I find the undismissable scarcity reminder stressful and distracting. Like OP, I have ongoing monitoring for this, which does a better job of displaying the same info: I'm at 24% , but there's only ~15% of the week left, so I'm actually on track to be fine, and the status msg doesn't communicate this.

Alerting once and persisting until explicitly dismissed makes sense. Making it truly dismissible would be much appreciated.

sysgfx avatar Nov 17 '26 10:11 sysgfx

  • I'm using codex cli inside Herdr.
  • Forced, non-dismissible threshold banners across every pane are a UX/DX anti-pattern.
  • Having 10+ panes with warnings in each is distracting.

Kheyas avatar Nov 20 '26 12:11 Kheyas