本文へ移動
cccskills
無料GitHub で公開

agent-model-switcher

批量查看和切换子 agent 的模型配置,用于统一调整多 agent 的 provider/model 设置。

インストール方法を見る

含まれるファイル(2)

  • SKILL.md2.4 KB
  • switch_model.py5.7 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

Agent Model Switcher

批量切换所有子 agent 的模型配置。

用途

  • 批量更换所有子 agent 的 model
  • 同步所有 agent 的 models.json 配置
  • 查看所有 agent 当前的 model 配置

使用方式

1. 查看所有 agent 的 model 配置

python3 ~/clawd/skills/agent-model-switcher/switch_model.py list

2. 更换所有子 agent 的 model(不包括 main)

python3 ~/clawd/skills/agent-model-switcher/switch_model.py set <provider>/glm-5

3. 更换指定 agent 的 model

python3 ~/clawd/skills/agent-model-switcher/switch_model.py set <provider>/glm-5 --agents code,ops,quant

4. 同步所有 agent 的 models.json(从 main 复制)

python3 ~/clawd/skills/agent-model-switcher/switch_model.py sync-models

5. 同步指定 agent 的 models.json

python3 ~/clawd/skills/agent-model-switcher/switch_model.py sync-models --agents batch,law,xiaotu

参数说明

参数说明
list列出所有 agent 的 model 配置
set <model>设置 agent 的 model
sync-models从 main 复制 models.json 到其他 agent
--agents <names>指定要操作的 agent(逗号分隔)
--include-main包括 main agent(默认不包括)
--dry-run只显示将要执行的操作,不实际执行

常用模型

别名完整名称
glm5<provider>/glm-5
glm47<provider>/glm-4.7
opus46<provider>/claude-opus-4-6
sonnet46<provider>/claude-sonnet-4-6
kimi<provider>/kimi-k2.5

示例

# 查看当前配置
python3 ~/clawd/skills/agent-model-switcher/switch_model.py list

# 全部子 agent 切换到 glm-5
python3 ~/clawd/skills/agent-model-switcher/switch_model.py set glm5

# 只切换 code 和 quant 到 opus-4-6
python3 ~/clawd/skills/agent-model-switcher/switch_model.py set opus46 --agents code,quant

# 同步 models.json 配置
python3 ~/clawd/skills/agent-model-switcher/switch_model.py sync-models

注意事项

  1. 修改配置后,agent 需要重新启动或等待新 session 才能生效
  2. 同步 models.json 会覆盖目标 agent 的 models.json,确保 main 的配置是最新的
  3. 建议先用 --dry-run 查看将要执行的操作

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

监控 A 股基金实时估值与盘后净值,自动判断交易日并生成提醒或分析。

日本語の概要は準備中です。原文の説明を表示しています。

aAAaqwq/openclaw-team22026年6月18日 更新

You are an accessibility expert specializing in WCAG compliance, inclusive design, and assistive technology compatibility. Conduct audits, identify barriers, and provide remediation guidance.

日本語の概要は準備中です。原文の説明を表示しています。

aAAaqwq/openclaw-team22026年6月18日 更新

Expert sales execution covering pipeline management, discovery, demos, negotiation, and deal closing. Use when qualifying opportunities, running MEDDIC discovery, building account plans, handling objections, structuring proposals, or forecasting pipeline.

日本語の概要は準備中です。原文の説明を表示しています。

aAAaqwq/openclaw-team22026年6月18日 更新

Support accounting understanding from basic bookkeeping to professional practice and research.

日本語の概要は準備中です。原文の説明を表示しています。

aAAaqwq/openclaw-team22026年6月18日 更新

Automate ActiveCampaign tasks via Rube MCP (Composio): manage contacts, tags, list subscriptions, automation enrollment, and tasks. Always search tools first for current schemas.

日本語の概要は準備中です。原文の説明を表示しています。

aAAaqwq/openclaw-team22026年6月18日 更新

add-lead

無料

Add company/person/relationship to CRM

日本語の概要は準備中です。原文の説明を表示しています。

aAAaqwq/openclaw-team22026年6月18日 更新

aAAaqwq のスキルをすべて見る

このスキルの問題を報告する