본문으로 건너뛰기
cccskills
무료GitHub에 공개

model-switch

Switch the Manager Agent's primary language model with a script that checks connectivity before saving configuration. You can also set how much context the model accepts and whether extended thinking is enabled.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

원문원문 설명 보기

Switch the Manager Agent's own LLM model. Use when the human admin requests changing the Manager's model.

설치 방법 보기

이럴 때 유용합니다

  • Change the Manager's saved primary model
  • Correct a model's context window setting
  • Disable extended thinking for a model
  • Diagnose an unreachable model before switching

포함된 파일(2)

  • SKILL.md4.3 KB
  • scripts/update-manager-model.sh9.5 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

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. Always outputs RESTART_REQUIRED

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

The script always outputs RESTART_REQUIRED. Run openclaw gateway restart to apply the change, then tell the human admin the switch is complete.

Reasoning control

By default, reasoning (extended thinking) is enabled. To disable it, pass --no-reasoning.

On failure

If the gateway test fails (non-200), the script outputs ERROR: MODEL_NOT_REACHABLE and exits. No changes are made to openclaw.json.

When you see this error, tell the human admin clearly:

  1. The model is not reachable because the current default AI Provider likely does not support it.
  2. They need to open the Higress Console and:
    • Create a new AI Provider for the model's vendor (e.g. kimi, deepseek, minimax).
    • Create a new AI Route with a model name prefix predicate (e.g. provider kimi → match kimi-*), so that requests for models with that prefix are routed to the new provider, while unmatched models continue to go through the default route.
  3. Do NOT modify the default AI Provider — it is managed by the initialization config and will be overwritten on restart.

After the admin confirms the provider and route are configured, you can retry the model-switch script.

Important

This skill switches the primary model (persisted in openclaw.json). After running the script, you must run openclaw gateway restart for the change to take effect. The human admin can also use the /model slash command to switch the current session's model instantly without restart, but that is non-persistent and only supports pre-configured models.

Switching to an unknown model

When the human admin requests switching to a model you don't recognize, you MUST:

  1. Ask the admin two questions before running the script:
    • "This model is not in the known list. What is its context window size (in tokens)?"
    • "Does this model support reasoning (extended thinking)?"
  2. Run the script with the appropriate flags:
    bash /opt/agentteams/agent/skills/model-switch/scripts/update-manager-model.sh <MODEL_ID> --context-window <SIZE> [--no-reasoning]
    
  3. If the admin does not know the context window, use the default (150,000) by omitting --context-window.
  4. If the model does not support reasoning, add --no-reasoning.

Pre-configured models (for reference)

ModelcontextWindowmaxTokens
gpt-5.41,050,000128,000
gpt-5.3-codex / gpt-5-mini / gpt-5-nano400,000128,000
claude-opus-4-61,000,000128,000
claude-sonnet-4-61,000,00064,000
claude-haiku-4-5200,00064,000
qwen3.5-plus200,00064,000
deepseek-chat / deepseek-reasoner / kimi-k2.5256,000128,000
glm-5 / MiniMax-M2.7 / MiniMax-M2.7-highspeed / MiniMax-M2.5200,000128,000

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

Find worker agents in Nacos that match a task, recommend candidates, and import the administrator's chosen worker. It also supports importing a specified nacos package URI, with worker name confirmation and direct reporting of installation failures.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Find a suitable worker for an unassigned task
  • Compare Nacos worker candidates before importing
  • Import a worker from a specified nacos package URI
agentscope-ai/AgentTeams5.8천2026년 10월 20일 업데이트

Prepare an existing OpenClaw setup for import as an AgentTeams managed Worker. Analyze tool dependencies, adapt role instructions and scheduled jobs, and build a ZIP package containing the configuration and custom image requirements.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Moving standalone OpenClaw into AgentTeams
  • Reviewing required tool dependencies
  • Adapting role instructions for a Worker
agentscope-ai/AgentTeams5.8천2026년 10월 20일 업데이트

Manage communication channels by identifying senders, maintaining trusted contacts, and setting the administrator's primary notification destination. It also covers first contact on a new channel and contacting the administrator across channels, with rules for handling unknown senders.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Identify who sent a message in a room
  • Add or remove trusted contacts
  • Configure the administrator's primary notification channel
agentscope-ai/AgentTeams5.8천2026년 10월 20일 업데이트

Prepare coding tasks for delegation to an authorized agent’s AI command-line tool. Set up and synchronize the workspace, write precise change requests, then review returned changes and run relevant checks before reporting completion.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Delegating code implementation or bug fixes to an AI CLI
  • Writing coding requests with clear acceptance criteria
  • Reviewing and testing changes returned by a CLI
agentscope-ai/AgentTeams5.8천2026년 10월 20일 업데이트

Run AI coding command-line tools on behalf of worker agents using their prepared prompts and workspaces. Detect available tools, configure delegation, return results, and apply supported execution controls such as time budgets and permission settings.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Running coding tools for worker agents
  • Detecting and selecting available coding CLIs
  • Setting Qwen Code permissions and time budgets
agentscope-ai/AgentTeams5.8천2026년 10월 20일 업데이트

Guide agent replies in Matrix chat rooms, including when to mention a coordinator, report completion, raise blockers, or answer questions. The rules limit repetitive acknowledgments and stop exchanges that add no new task, question, or decision.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Reporting task completion to a coordinator
  • Raising blockers or questions that need action
  • Reducing repetitive acknowledgments
agentscope-ai/AgentTeams5.8천2026년 10월 20일 업데이트

agentscope-ai의 스킬 모두 보기

이 스킬의 문제 신고