跳到正文
TakoAPI
返回技能列表

switch-modes

由 serudda 提供

AI & LLMs
954下载量由 clawskills.sh 提供
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

Switch between AI models dynamically to optimize costs and performance.

描述

该技能的功能

Lets you switch between four AI model tiers (eco, balanced, smart, max) using short text commands. Each tier maps to a specific model ID stored in a local config file. The active model updates instantly without restarting.

Instead of manually editing config files each time you need a different model, a single command handles the read-write cycle and confirms the switch.

何时使用

  • Routing simple questions to a cheaper model to cut API costs
  • Switching to a high-power model for complex multi-step reasoning
  • Checking which model tier is active before starting a session
  • Configuring which model each tier uses on first setup
  • Dropping back to a lighter model after finishing a demanding task

示例工作流

输入

User says: eco mode

智能体
  1. 1

    Reads ~/.openclaw/workspace/switch-modes.json to find the model mapped to 'eco'

  2. 2

    Reads ~/.openclaw/openclaw.json to load the current config

  3. 3

    Updates the model field with the eco mode model ID

  4. 4

    Writes the updated config back to ~/.openclaw/openclaw.json

  5. 5

    Confirms the change to the user

输出

✅ ECO mode activated Now using: anthropic/claude-3.5-haiku

安装

clawhub install serudda/switch-modes

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接