A skill for OpenClaw that lets you switch AI models for the current session via a simple text menu.
- Text-based menu — clean numbered list, no inline buttons
- Alias support — switch by number, name, or alias (e.g.
gemini,opus) - Lightweight — pure bash + jq, no Python dependency
- Reset — option 0 to return to the default model
- OpenClaw
jq(usually pre-installed on macOS;apt install jqon Linux)
Clone into your OpenClaw workspace's skills folder:
git clone https://github.com/rin4096/openclaw-skill-model-switch.git skills/model-switcherOpenClaw will automatically detect the skill.
Say any of:
- "切換模型" / "switch model" / "list models"
- "use gemini" / "用 flash"
The agent will display a numbered menu. Reply with a number to switch.
🔄 模型切換選單
✨ 共有 5 個可用模型:
1️⃣ anthropic/claude-opus-4-6
別名: opus (默認) ✨
2️⃣ google/gemini-3-flash-preview
別名: gemini-flash
3️⃣ google/gemini-3-pro-preview
別名: gemini
...
──────────────
0️⃣ 重置為默認模型
💡 回覆編號(0-5)即可切換
- Script reads
openclaw config get agents.defaultsto get the model list - Formats a numbered text menu with aliases and default marker
- Agent captures user's reply and calls
session_status(model=...)to switch
skills/model-switcher/
├── README.md
├── SKILL.md
└── scripts/
└── model-switcher.sh
Created with 💕 by Akiyama Mizuki 🎀