openclaw - 💡(How to fix) Fix Cannot switch models via /models when active provider is rate-limited

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

Root Cause

When the active provider (e.g. Anthropic/Claude) hits its rate limit or quota cap, the /models slash command becomes unusable. The user cannot switch to an alternative provider (e.g. OpenAI GPT, OpenRouter) because the /models command appears to route through the currently active (and failing) provider rather than through the control layer.

RAW_BUFFERClick to expand / collapse

Bug

When the active provider (e.g. Anthropic/Claude) hits its rate limit or quota cap, the /models slash command becomes unusable. The user cannot switch to an alternative provider (e.g. OpenAI GPT, OpenRouter) because the /models command appears to route through the currently active (and failing) provider rather than through the control layer.

This makes it impossible to fall back to an alternative model when the primary provider's quota is exhausted.

Steps to Reproduce

  1. Use OpenClaw with Claude (Anthropic) as the active model
  2. Exhaust Claude quota / hit rate limit
  3. Attempt to use /models to switch to a different provider (e.g. OpenAI GPT)
  4. The command fails or is unresponsive because it depends on the rate-limited provider

Expected Behavior

/models (and related model-switching commands) should work regardless of the active provider's rate limit status. Model switching is a control-plane operation and should not depend on the active AI provider being available.

Actual Behavior

When the active provider is rate-limited, /models fails, leaving the user stuck on the exhausted provider with no way to switch to an available alternative.

Related Issues

  • #43447 — Kimi/Moonshot rate limit causes UI lockout and prevents model switching (same root cause, different provider). That issue's "Proposed Fix #3: Emergency Model Override" describes the needed fix: route /model commands through the control layer, not the active AI provider.
  • #61096 (closed) — /model override not persisting when provider is rate-limited; fixed in v2026.4.10, but the fix addressed persistence of the override, not the fundamental issue of the command being blocked when the provider is down.
  • #6966 — Dynamic model switching based on rate limits (automatic downgrade; related but different — this issue is about manual switching being blocked).

Proposed Fix

Route /models and all model-switching commands through the control/session layer directly, bypassing the active AI provider entirely. Model selection is a session-management operation that should never touch the inference API.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

openclaw - 💡(How to fix) Fix Cannot switch models via /models when active provider is rate-limited