Best use case
agent-model-switcher is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
批量查看和切换子 agent 的模型配置,用于统一调整多 agent 的 provider/model 设置。
Teams using agent-model-switcher should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/agent-model-switcher/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How agent-model-switcher Compares
| Feature / Agent | agent-model-switcher | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
批量查看和切换子 agent 的模型配置,用于统一调整多 agent 的 provider/model 设置。
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
# Agent Model Switcher 批量切换所有子 agent 的模型配置。 ## 用途 - 批量更换所有子 agent 的 model - 同步所有 agent 的 models.json 配置 - 查看所有 agent 当前的 model 配置 ## 使用方式 ### 1. 查看所有 agent 的 model 配置 ```bash python3 ~/clawd/skills/agent-model-switcher/switch_model.py list ``` ### 2. 更换所有子 agent 的 model(不包括 main) ```bash python3 ~/clawd/skills/agent-model-switcher/switch_model.py set <provider>/glm-5 ``` ### 3. 更换指定 agent 的 model ```bash python3 ~/clawd/skills/agent-model-switcher/switch_model.py set <provider>/glm-5 --agents code,ops,quant ``` ### 4. 同步所有 agent 的 models.json(从 main 复制) ```bash python3 ~/clawd/skills/agent-model-switcher/switch_model.py sync-models ``` ### 5. 同步指定 agent 的 models.json ```bash 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 | ## 示例 ```bash # 查看当前配置 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` 查看将要执行的操作
Related Skills
startup-financial-modeling
Use when the user asks to create financial projections, build a financial model, forecast revenue, calculate burn rate, estimate runway, model cash flow, or do 3-5 year startup financial planning.
model-usage
Use CodexBar CLI local cost usage to summarize per-model usage for Codex or Claude, including the current (most recent) model or a full model breakdown. Trigger when asked for model-level usage/cost data from codexbar, or when you need a scriptable per-model summary from codexbar cost JSON.
model-usage-linux
Track OpenClaw AI token usage and cost per model on Linux by parsing session JSONL files. Use when asked about: token usage, API cost, how much has been spent, which model was used most, usage summary, billing, cost breakdown. Linux replacement for the macOS-only model-usage/CodexBar skill.
model-provider-manager
Unified LLM provider and model configuration, health monitoring, and key management
model-hierarchy-skill
> 模型层级调度——根据任务复杂度自动选择合适的 LLM 模型
model-health-check
检查已配置模型供应商的连通性、延迟和可用性,用于快速诊断模型侧故障。
model-fallback
模型自动降级与故障切换。当主模型请求失败、超时、达到速率限制或配额耗尽时,自动切换到备用模型,确保服务连续性。支持多供应商、多优先级的智能模型选择,提供健康监控、自动重试和错误恢复机制。
cron-model-migration
Safely change models for OpenClaw cron jobs without leaving behind session/model mismatch errors. Use when creating or editing cron jobs with `payload.model`, when moving a job between models/providers, when diagnosing `LiveSessionModelSwitchError`, or when deciding whether a cron should run in `sessionTarget: "isolated"`, `"current"`, `"main"`, or a custom persistent session.
wemp-operator
> 微信公众号全功能运营——草稿/发布/评论/用户/素材/群发/统计/菜单/二维码 API 封装
zsxq-smart-publish
Publish and manage content on 知识星球 (zsxq.com). Supports talk posts, Q&A, long articles, file sharing, digest/bookmark, homework tasks, and tag management. Use when publishing content to 知识星球, creating/editing posts, uploading files/images/audio, managing digests, batch publishing, or formatting content for 知识星球.
zoom-automation
Automate Zoom meeting creation, management, recordings, webinars, and participant tracking via Rube MCP (Composio). Always search tools first for current schemas.
zoho-crm-automation
Automate Zoho CRM tasks via Rube MCP (Composio): create/update records, search contacts, manage leads, and convert leads. Always search tools first for current schemas.