Paste this into any OpenClaw agent's Slack DM or channel:
Upgrade this OpenClaw instance to use Claude Opus 4.6. Follow these steps exactly using your exec tool:

Step 1 — Find the OpenClaw install directory:
Run: OC_DIR=$(dirname $(readlink -f $(which openclaw)))/../lib/node_modules/openclaw 2>/dev/null || find /opt/homebrew/lib/node_modules/openclaw ~/.nvm/versions/node/*/lib/node_modules/openclaw /usr/local/lib/node_modules/openclaw -maxdepth 0 2>/dev/null | head -1 and echo it to confirm.

Step 2 — Update the pi-ai dependency:
Run: cd $OC_DIR && npm install @mariozechner/[email protected]

Step 3 — Remove nested old copies:
Run: rm -rf $OC_DIR/node_modules/@mariozechner/pi-coding-agent/node_modules/@mariozechner/pi-ai && rm -rf $OC_DIR/node_modules/@mariozechner/pi-agent-core/node_modules/@mariozechner/pi-ai

Step 4 — Verify pi-ai is 0.52.1:
Run: cat $OC_DIR/node_modules/@mariozechner/pi-ai/package.json | grep '"version"'

Step 5 — Update the config file at ~/.openclaw/openclaw.json:
Back it up first: cp ~/.openclaw/openclaw.json ~/.openclaw/openclaw.json.bak
Then use jq to update: cat ~/.openclaw/openclaw.json | jq '.agents.defaults.model.primary = "anthropic/claude-opus-4-6" | .agents.defaults.model.fallbacks = ["anthropic/claude-opus-4-5","anthropic/claude-sonnet-4-5"] | .agents.defaults.models["anthropic/claude-opus-4-6"] = {"alias":"opus"} | .agents.defaults.models["anthropic/claude-opus-4-5"] = {"alias":"opus45"}' > /tmp/oc-config-tmp.json && mv /tmp/oc-config-tmp.json ~/.openclaw/openclaw.json

Step 6 — Restart the gateway (full restart, not hot reload):
Run: openclaw gateway restart

Step 7 — Verify after restart:
Wait 5 seconds, then run session_status or openclaw gateway status and confirm the model shows anthropic/claude-opus-4-6.

Report back what the model shows after restart. If any step fails, show me the error — don't keep going.

Just copy-paste that whole block. The agent will exec each step and report back. Works on any Mac Mini regardless of node version or install path.