/model says 'model not allowed'
Fix 'model not allowed' by updating or clearing the agents.defaults.models allowlist, then selecting an allowed model.
Symptoms
- In chat,
/model <something>returns:Model "provider/model" is not allowed. - It can feel like the bot “didn’t respond” because the selection fails before a normal reply.
Cause
agents.defaults.models is configured as an allowlist. When it’s non-empty, only those models can be selected.
This is separate from provider availability: the provider/model ref may exist, but selection still fails if the ref is not present in the allowlist.
Fix
Check the allowlist:
openclaw config get agents.defaults.models
Then do one of:
- Add the model you want to the allowlist (recommended for safety), or
- Clear/remove
agents.defaults.modelsto disable allowlisting, or - Pick a model that is already in the allowlist (
/model list).
If you are also changing providers or fallback models, rebuild the starter model block with
OpenClaw Config Generator instead of hand-building the list. Custom mode can emit
agents.defaults.models from the selected primary and fallback model refs, which keeps the allowlist aligned with the
provider/model paths you are actually exporting.
Use Providers when you need to choose or compare model/provider refs, and /guides/openclaw-configuration for the broader config mental model.
Verify
- Probe provider/model resolution:
openclaw models status --probe
- Re-run
/model listand confirm the target model is selectable. - Select the target model and send one real message; it uses the expected model.
Related
- Model selection + allowlists explained: /guides/openclaw-configuration
- Provider/model routing hub: /providers
- Generate a starter allowlist: /openclaw-config-generator