switch-modes
Switch between AI models dynamically to optimize costs and performance. Use when the user says mode commands like "eco mode", "balanced mode", "smart mode", or "max mode", or when they want to check their current mode with "/modes status" or configure modes with "/modes setup".
Why use this skill?
Optimize your OpenClaw costs and performance by dynamically switching between AI models. Set up custom eco, balanced, smart, and max modes today.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/serudda/switch-modesWhat This Skill Does
The Switch Modes skill provides OpenClaw users with a seamless way to toggle between various AI model configurations based on their current task's demands. By mapping abstract mode names—Eco, Balanced, Smart, and Max—to specific backend AI models, this skill eliminates the need for manual model configuration or complex prompt engineering. It acts as a middleware layer that manages your OpenClaw environment, allowing you to prioritize speed and cost-efficiency for trivial queries or unleash high-end reasoning models for complex engineering or analytical challenges. The skill utilizes a local configuration file, ~/.openclaw/workspace/switch-modes.json, to maintain these mappings, ensuring that your preferences persist across sessions.
Installation
To integrate this functionality into your environment, run the following command in your terminal:
clawhub install openclaw/skills/skills/serudda/switch-modes
Use Cases
This skill is perfect for users who want to balance cost and capability. For example, use 'Eco' mode for quick IRC-style interactions or summary tasks where high-latency models are overkill. Use 'Max' mode when debugging intricate codebases or writing architectural documentation where deep reasoning is essential. It is also highly effective for teams sharing an OpenClaw instance to ensure standard configurations are maintained.
Example Prompts
- "Switch to eco mode, I just need a quick summary of this file."
- "I'm starting a complex refactoring task, please enable max mode."
- "/modes status"
Tips & Limitations
To ensure optimal usage, keep your model mappings updated. If you add new models to your OpenClaw environment, run /modes setup again to re-map them to your preferred tiers. Note that this skill directly modifies your ~/.openclaw/openclaw.json file. Ensure no other scripts are simultaneously writing to this configuration file to avoid race conditions. If the configuration file is missing, the skill will gracefully prompt you to run the setup command before attempting any mode switches.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-serudda-switch-modes": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: file-write, file-read