OpenClaw Model Switch
Safely switch or repair an OpenClaw instance's model configuration, with diagnostics for 401, no-available-channel and thinking-level errors.
UtilitiesAdvanced★ 1,323⑂ 212AI score 7/10Last updated: Aug 8, 2026
What it does
- Discovers which
openclaw.jsonthe gateway actually reads (three candidate paths plus mirrors) and edits all of them consistently. - Probes the endpoint and model with a real curl completion request before touching any config.
- Runs
scripts/switch-model.pyto back up configs, add model definitions, setagents.defaults.model.primary, sync mirrors and restart the gateway. - Enforces end-to-end verification with one real agent turn:
result: successandfallbackUsed: false. - Ships a trap catalog for common failures:
KIMI_API_KEYenv hijacking the provider wire key, plugins hardcoding binary thinking levels,503 No available channel, and edits to the wrong mirror file.
Who it's for
- Operators self-hosting OpenClaw / Kimi Claw bots who need to upgrade or roll back models (k2p6 → k3).
- Users of new-api style relays hitting 401 or channel-availability errors.
- Anyone whose manual config edit "saved fine" but changed nothing.
Examples
- "Switch OpenClaw to k3" → config discovery, curl probe, script run, ping verification.
- "The bot says Invalid token but curl works" → guided diagnosis of trap #1 (env key hijack).
- "Thinking level 'max' is not supported" → check plugin restrictions, then use a custom provider or
params.canonicalModelId.
· · · Install guide · · ·
Install in the Claude app (no terminal)
- Download the ZIP with the button below.
- In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
- Go to Customize → Skills → + → 'Upload a skill' and upload the ZIP.
Install in Claude Code
Let Claude do it — paste this into Claude Code
Install the skill I found on Claude Skill Mart. Copy the openclaw-model-switch folder from the GitHub repo daymade/claude-code-skills into my ~/.claude/skills/openclaw-model-switch/. When it's done, tell me in one line what this skill can do.
Install with a command instead
git clone https://github.com/daymade/claude-code-skills.git && cp -r claude-code-skills/openclaw-model-switch ~/.claude/skills/⚠ This is a third-party skill. Check the source repository before installing.
- Open a terminal.
- Clone the skills repo:
git clone https://github.com/daymade/claude-code-skills.git - Copy the skill into place:
mkdir -p ~/.claude/skills && cp -r claude-code-skills/openclaw-model-switch ~/.claude/skills/ - Confirm
scripts/switch-model.pycame along and thatpython3 --versionworks. - Restart Claude Code and ask something like "switch my OpenClaw model to k3" to trigger the skill.
- Important: make your own backup of
openclaw.jsonfirst, and never commit config files containing API keys.
View source on GitHub ↗License: MIT