Lewati ke konten
TakoAPI
Kembali ke skill

switch-modes

oleh serudda

AI & LLMs
954Unduhan dilaporkan oleh clawskills.sh
0Tayangan
0 sukaMasuk untuk menyukai skill ini
—Belum ada penilaian
Penilaian Anda

Ringkasan

Switch between AI models dynamically to optimize costs and performance.

Deskripsi

Apa yang Dilakukan Skill Ini

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.

Kapan Menggunakannya

  • 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

Contoh Alur Kerja

INPUT

User says: eco mode

AGENT
  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

OUTPUT

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

Instalasi

clawhub install serudda/switch-modes

Jalankan perintah CLI-nya, atau tempel prompt ke Claude Code, Cursor, Codex, atau coding agent apa pun yang Anda pakai.

Tautan