Install
openclaw skills install @hasakyi/codex-model-catalog-config-v1openclaw skills install @hasakyi/codex-model-catalog-config-v1Modify only the user's existing default.json catalog according to the explicit request. Treat the catalog as the source of truth.
Do not inspect or modify config.toml, even if it appears to be missing the catalog setting. Do not create or restore the catalog from the bundled asset during normal model management. Do not create a backup of the old catalog.
Resolve the Codex home directory in this order:
CODEX_HOME when it is set.%USERPROFILE%\.codex.$HOME/.codex.The target is exactly:
<CODEX_HOME>/model-catalogs/default.json
If the target does not exist, stop and report that path. Do not search for another catalog or create a replacement elsewhere.
Each entry embeds very large base_instructions / model_messages strings. Never read or print the whole file into the response.
slug, context_window, max_context_window, default_reasoning_level, and whether tool_mode is present. Do not echo base_instructions or model_messages."slug" line and the surrounding object braces; do not enumerate every field.models array, list the current slugs, and capture only the fields the request needs.tool_mode to a new entry. If the chosen source entry has tool_mode, remove it from the new entry even though the source model remains unchanged.default.json in a single in-memory edit. Preserve the existing JSON indentation, encoding, newline style, and unrelated content.models array is valid and that the intended entries are present. Do not perform unrelated checks.Do not run the models. Do not call codex exec, codex, or any provider request as part of this skill.
Tell the user:
default.json path that was modified.Do not claim that a model works or that a provider supports it. A catalog entry is a local list entry, not proof of provider availability or entitlement.
default.json. Do not create backups, temp files, or any other file during the change.config.toml.default.json.assets/default.json.