Skip to content

rin4096/openclaw-skill-model-switch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

7 Commits
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

OpenClaw Skill: Model Switcher ๐Ÿ”„

A skill for OpenClaw that lets you switch AI models for the current session via a simple text menu.

โœจ Features

  • 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

๐Ÿ“ฆ Requirements

  • OpenClaw
  • jq (usually pre-installed on macOS; apt install jq on Linux)

๐Ÿš€ Installation

Clone into your OpenClaw workspace's skills folder:

git clone https://github.com/rin4096/openclaw-skill-model-switch.git skills/model-switcher

OpenClaw will automatically detect the skill.

๐ŸŽฎ Usage

Say any of:

  • "ๅˆ‡ๆ›ๆจกๅž‹" / "switch model" / "list models"
  • "use gemini" / "็”จ flash"

The agent will display a numbered menu. Reply with a number to switch.

Example Output

๐Ÿ”„ ๆจกๅž‹ๅˆ‡ๆ›้ธๅ–ฎ

โœจ ๅ…ฑๆœ‰ 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๏ผ‰ๅณๅฏๅˆ‡ๆ›

๐Ÿ›  How It Works

  1. Script reads openclaw config get agents.defaults to get the model list
  2. Formats a numbered text menu with aliases and default marker
  3. Agent captures user's reply and calls session_status(model=...) to switch

๐Ÿ“ Structure

skills/model-switcher/
โ”œโ”€โ”€ README.md
โ”œโ”€โ”€ SKILL.md
โ””โ”€โ”€ scripts/
    โ””โ”€โ”€ model-switcher.sh

Created with ๐Ÿ’• by Akiyama Mizuki ๐ŸŽ€

About

Dynamically switch AI models in OpenClaw sessions via interactive menus.

Topics

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages