Reddit 排障:`Model not allowed` 的 allowlist 校准与回归验证
问题/场景:渠道内调用模型时报 `Model not allowed`。前置条件:已配置 provider 且启用了 `agents.defaults.models` allowlist。实施步骤:记录报错模型 ID、核对 models status/list、在 configure 的 Model 多选里补齐 allowlist 或切换允许模型。关键命令:`openclaw models status`、`openclaw models list`、`openclaw configure --section models`。验证:同一会话重试成功。风险:allowlist 过宽会扩大成本与误用面。
REDDITDiscovered 2026-02-16Author u/Ok-Crazy-2412
Prerequisites
- At least one provider is authenticated and model CLI commands are usable.
- You know which agent/profile the affected channel session is using.
Steps
- Capture exact rejected model string from the error message with provider prefix intact.
- Run models status/list (or channel `/models`) and compare available models with configured allowlist.
- Update allowlist in configure Model section, or switch to an already-allowed alias/model.
- Retry from the same channel/session and confirm the request is accepted.
Commands
openclaw models statusopenclaw models listopenclaw configure --section modelsopenclaw models set <provider/model-or-alias>Verify
Previously failing prompt runs successfully and no further `Model not allowed` errors appear for that model path.
Caveats
- Docs note model refs split on first `/`; malformed IDs can look like allowlist failures.
- Provider-side policy blocks can persist even when local allowlist is correct(需验证).
Source attribution
This tip is aggregated from community/public sources and preserved with attribution.
Open original source ↗