#How to completely remove a model/provider
1 messages ยท Page 1 of 1 (latest)
Short version: you can remove the auth and the references, but built-in providers are still part of the catalog unless you switch catalog mode.
Try this:
# 1) remove saved auth for that provider
openclaw infer model auth logout --provider <provider-id>
# 2) if it's a custom provider, remove its config entry
openclaw config unset models.providers.<provider-id>
# 3) move defaults/fallbacks away from it
openclaw models set <other-provider/model>
openclaw models fallbacks list
openclaw models fallbacks remove <provider/model>
openclaw models image-fallbacks list
openclaw models image-fallbacks remove <provider/model>
Important bit: in default models.mode: "merge", built-in providers do not disappear from the catalog.
If you want them gone from model listing too, use models.mode: "replace" and define only the providers you want.
Useful docs:
- https://docs.openclaw.ai/cli/infer
- https://docs.openclaw.ai/cli/models
- https://docs.openclaw.ai/gateway/configuration-reference
If it still shows up after that, paste these and Iโll tell you exactly what layer is still keeping it alive:
openclaw infer model auth status --json
openclaw models status --json