model-switch

model-switch is a skill for Claude Code, Codex from agentscope-ai/AgentTeams. It costs 25 tokens per session (1,314 once invoked), scanned A, original, Apache-2.0.

A script for changing the language model used by the Manager Agent, the main agent that coordinates the work.

In plain words
What is it for?
Use it to switch to an existing or newly named model, optionally set its context-window size, or turn off reasoning.
Why use it?
It checks that the chosen model can be reached, updates the configuration, and indicates that the gateway must be restarted for the change to take effect.

Skill for Claude CodeCodex

Which agent this was written for is unclear — built for openclaw. Also seen: mentions Codex; built for openclaw.

Good fit Use it to switch to an existing or newly named model, optionally set its context-window size, or turn off reasoning.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/agentscope-ai/agentteams/model-switch
About the project

AgentTeams is a runtime platform where multiple AI agents collaborate in shared Matrix rooms under the coordination of a manager. It is for human-supervised or enterprise workflows that need visible, auditable cooperation among agents running on different runtimes, with shared files and centralized traffic management.

agentscope-ai/AgentTeams · 6,171 stars · on GitHub · aliyun.com

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add agentscope-ai/AgentTeams --skill model-switch
Clone the repo
git clone --depth 1 https://github.com/agentscope-ai/AgentTeams

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for model-switch

README.md
[![agentmods](https://agentmods.dev/badge/skills/agentscope-ai/agentteams/model-switch/github.svg)](https://agentmods.dev/skills/agentscope-ai/agentteams/model-switch)
Your own site
<a href="https://agentmods.dev/skills/agentscope-ai/agentteams/model-switch"><img src="https://agentmods.dev/badge/skills/agentscope-ai/agentteams/model-switch/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for model-switch

Your own site · 80×15
<a href="https://agentmods.dev/skills/agentscope-ai/agentteams/model-switch"><img src="https://agentmods.dev/badge/skills/agentscope-ai/agentteams/model-switch.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 25 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,314 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00025 $0.01314
Opus 5.5 $0.00010 $0.00526
Sonnet 5.5 $0.00005 $0.00263
Haiku 4.5 $0.00003 $0.00131

Measured 21d ago against content hash 15a85fd038cd, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

model-switch scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 21d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/update-manager-model.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

manager/agent/skills/model-switch/SKILL.md · 95 lines

How it starts

The opening of the file, as written. The whole thing — 95 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Model Switch

Switch the Manager's own LLM model. The script tests connectivity first, then patches openclaw.json.

Usage

bash /opt/agentteams/agent/skills/model-switch/scripts/update-manager-model.sh <MODEL_ID> [--context-window <SIZE>] [--no-reasoning]

Examples:

bash /opt/agentteams/agent/skills/model-switch/scripts/update-manager-model.sh claude-sonnet-4-6
bash /opt/agentteams/agent/skills/model-switch/scripts/update-manager-model.sh my-custom-model --context-window 300000
bash /opt/agentteams/agent/skills/model-switch/scripts/update-manager-model.sh deepseek-chat --no-reasoning

What the script does

  1. Strips any agentteams-gateway/ prefix from the model name
  2. Tests the model via POST /v1/chat/completions on the AI Gateway — exits with error if unreachable
  3. If the model is already in the models array: refreshes its reasoning / contextWindow / maxTokens / input fields and switches agents.defaults.model.primary
  4. If the model is new: adds it to the models array and switches primary
  5. Outputs the apply/verification instructions for your Manager runtime

Because step 3 rewrites the model's fields, re-running the script is the way to correct an entry that was first written with wrong values — for example a model that was added with the 150,000 default because nobody knew its real window: run the script again with --context-window <SIZE> and the new value lands in openclaw.json.

After running the script

Follow the instructions for your AGENTTEAMS_MANAGER_RUNTIME:

  • OpenClaw: run openclaw gateway restart, then verify the active model.
  • QwenPaw: the script updates the standard openclaw.json consumed by your existing background bridge. Wait for its next watcher cycle (normally within 60 seconds). Read back active_llm.provider_id and active_llm.model from your native secret providers.json (honor QWENPAW_SECRET_DIR), and verify your next request uses the requested model before reporting completion. A CONFIG_UPDATED message alone confirms the standard file was written. If the native state stays stale, inspect your bridge logs and report the pending apply step.
  • Legacy CoPaw: follow the RESTART_REQUIRED instruction to restart your CoPaw service.

Read the full file on GitHub · 95 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 21d ago Changed · +6 lines 15a85fd038cd
  2. 1mo ago Changed · +6 lines 76c2f35971ec
  3. 3mo ago First seen · 83 lines · 25 tokens per session scan A c1cc5460084b

Subscribe to this mod's changes

model-switch is a skill published in the GitHub repository agentscope-ai/AgentTeams (6,171 stars, last pushed yesterday), licensed Apache-2.0. It adds 25 tokens to every session and 1,314 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

model-switch compared with skills from other repositories

model-switch next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
model-switchagentscope-ai/AgentTeamsSkill6.2kyesterdayApache-2.0A25Claude Code, Codex
shipGCWing/BitFunSkill2.1k2mo agoMITA105Claude Code, Codex
plan-ceo-reviewGCWing/BitFunSkill2.1k2mo agoMITA143Claude Code, Codex
plan-eng-reviewGCWing/BitFunSkill2.1k2mo agoMITA116Claude Code, Codex
autoplanGCWing/BitFunSkill2.1k2mo agoMITA152Claude Code, Codex
design-reviewGCWing/BitFunSkill2.1k2mo agoMITA125Claude Code, Codex
retroGCWing/BitFunSkill2.1k2mo agoMITA76Claude Code, Codex