fix: replace nonexistent allowlist CLI command with config set

openclaw models allowlist add does not exist. Use openclaw config set
to add models to agents.defaults.models, matching the existing config
CLI convention used by other doctor hints.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Sergio 2026-03-15 16:58:14 -05:00
parent 3b393e074f
commit ea5fa22892
1 changed files with 2 additions and 1 deletions

View File

@ -65,7 +65,8 @@ export async function noteSyntheticAllowlistGaps(cfg: OpenClawConfig): Promise<v
lines.push(` - ${modelKey(entry.provider, entry.id)}`);
}
lines.push(
`To add: ${formatCliCommand("openclaw models allowlist add <model-id>")}`,
`To add: ${formatCliCommand("openclaw config set agents.defaults.models.<provider>/<model> '{}'")}`,
`Or edit the config file directly: ${formatCliCommand("openclaw config file")}`,
"(Models are functional but hidden from agents until allowlisted)",
);
note(lines.join("\n"), "Synthetic model allowlist");