openclaw - 💡(How to fix) Fix [Bug]: Control UI Model Selection Returns "model not allowed" Error - Cannot Switch Custom Provider Models [3 comments, 3 participants]

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…
GitHub stats
openclaw/openclaw#62933Fetched 2026-04-09 08:00:27
View on GitHub
Comments
3
Participants
3
Timeline
6
Reactions
0
Timeline (top)
commented ×3labeled ×2subscribed ×1

When switching to a model configured under a custom Provider (e.g., nvidia, modelscope) in the Control UI, the "model not allowed" error is returned.

Error Message

When switching to a model configured under a custom Provider (e.g., nvidia, modelscope) in the Control UI, the "model not allowed" error is returned. 4. Observe the error message Error returned: Failed to set model: GatewayRequestError: model not allowed: z-ai/glm5

Root Cause

When switching to a model configured under a custom Provider (e.g., nvidia, modelscope) in the Control UI, the "model not allowed" error is returned.

RAW_BUFFERClick to expand / collapse

Bug type

Regression (worked before, now fails)

Beta release blocker

No

Summary

When switching to a model configured under a custom Provider (e.g., nvidia, modelscope) in the Control UI, the "model not allowed" error is returned.

Steps to reproduce

  1. Configure multiple Providers in openclaw.json (e.g., nvidia)
  2. Add model keys with provider prefix in agents.defaults.models (e.g., "nvidia/z-ai/glm5")
  3. Open Control UI and switch to that model in the model selector
  4. Observe the error message

Expected behavior

Model should switch successfully and requests should be sent to the correct Provider.

Actual behavior

Error returned: Failed to set model: GatewayRequestError: model not allowed: z-ai/glm5

OpenClaw version

v2026.4.4 / v2026.4.7

Operating system

Ubuntu 24.04

Install method

npm global

Model

all custom Provider model

Provider / routing chain

Nvidia

Additional provider/model setup details

No response

Logs, screenshots, and evidence

Impact and severity

No response

Additional information

No response

extent analysis

TL;DR

The issue can be resolved by ensuring that the model keys in agents.defaults.models are correctly prefixed with the provider name and configured in openclaw.json.

Guidance

  • Verify that the openclaw.json file contains the correct configuration for the custom Provider (e.g., nvidia) and that the model keys in agents.defaults.models are prefixed with the provider name.
  • Check the model selector in the Control UI to ensure that the model is correctly listed and selectable.
  • Confirm that the GatewayRequestError is not related to a networking or permissions issue.
  • Review the openclaw.json file for any typos or incorrect configurations that may be causing the "model not allowed" error.

Example

No code snippet is provided as the issue does not contain sufficient information to create a specific example.

Notes

The issue may be related to a configuration error in openclaw.json or agents.defaults.models, and resolving this issue may require careful review of the configuration files.

Recommendation

Apply workaround: Verify and correct the configuration files (openclaw.json and agents.defaults.models) to ensure that the model keys are correctly prefixed with the provider name and that the custom Provider is correctly configured.

FAIL-SAFE

If the issue persists after verifying the configuration files, further investigation into the GatewayRequestError and the custom Provider configuration may be necessary.

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…

FAQ

Expected behavior

Model should switch successfully and requests should be sent to the correct Provider.

Still need to ship something?

×6

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

Back to top recommendations

TRENDING