360 Secure SkillHub
360 安全技能中心

Openclaw Model Catalog Migration

核心功能:核对供应商目录、策略、回退设置及各代理引用,完成OpenClaw模型ID的增删改,含多环节审计、分类处理、原子更新及全流程验证。典型场景:OpenClaw配置中调整供应商模型ID时使用。输入为当前配置与供应商目录,输出为原子补丁或人工可应用的差异文件,确保配置合规无残留。

nextaltair
nextaltair
热度 7.65
最近更新 2026-09-02 16:44:52
分类:自动化依赖:第三方 API / 读写文件应用场景:DevOps / 工作流 / 自动化脚本

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add model-catalog-migration
Metadata
name
openclaw-model-catalog-migration
description
Add, remove, or rename OpenClaw model IDs by reconciling provider catalogs, policy, fallbacks, and per-agent references.

OpenClaw model catalog migration

Use when

Adding, removing, or renaming provider model IDs in OpenClaw configuration.

Procedure

  1. Read the current config and schema with supported OpenClaw config tools. Identify the actual per-agent collection key from the returned structure; do not assume list or entries.
  2. Fetch both the provider's current catalog and OpenClaw's effective model list. Compare exact IDs after accounting for OpenClaw's provider prefix.
  3. Audit these references in one pass:
    • configured model registry
    • model policy allowlist
    • default primary and fallbacks
    • every per-agent primary and fallback
    • aliases and runtime metadata on affected entries
  4. Classify each affected ID as exact catalog match, stale reference, policy-only entry, or required replacement. Treat suffix variants such as :free as distinct IDs.
  5. Before removing an ID, choose an available replacement for every primary or fallback reference. Preserve fallback order and unrelated metadata.
  6. Apply one atomic patch through the authorized config-write path. If no writer is available, provide the exact proposed diff for the human to apply. Do not restart merely because the file changed; first observe the supported reload behavior.
  7. Verify:
    • config parsing and schema validation succeed
    • rereading the actual per-agent collection shows each replacement
    • the added ID appears in registry and policy where required
    • the removed ID appears nowhere in registry, policy, defaults, or agents
    • the effective model list reports expected availability
    • reload logs show no config error

Pitfalls

  • A provider catalog match for the unsuffixed ID does not validate a suffixed ID.
  • Checking only the configured registry misses stale policy and per-agent references.
  • A null verification result may mean the query used the wrong collection key, not that the agent entry vanished.
  • A primary must be replaced before its registry or policy entry is removed.