Token导航 LogoToken导航TokenDH.com
效率需要联网clawhub未标认证来源可访问clear审计提醒

hudl-model-switchhudl 模型切换

Agent Skill

hudl-model-switch 用于补充效率相关能力,适合在 OpenClaw 中需要让 Agent 承接效率相关任务时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

8,514

周安装

362

GitHub Stars

公开资料未说明

下载量

2,983
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:hudl-model-switch(hudl 模型切换)
来源仓库:https://github.com/omguptaind/hudl-model-switch
安装命令:
openclaw skills install hudl-model-switch
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install hudl-model-switch

简介

用于在 Huddle01 GRU 网关切换不同 LLM 模型。

  • 支持模型升级、降级与实时切换操作。hudl-model-switch 属于效率类 Skill,可作为该场景下的辅助能力补充。
  • 适合需要灵活适配多种 AI 能力的开发场景。
  • 触发条件为明确提及模型变更需求时使用。
  • 请确认当前账户具备相应模型访问权限。

SKILL.md

name
hudl-model-switch
description
Switch between LLM models on the Huddle01 GRU gateway. Use this skill whenever the user mentions switching models, changing models, upgrading, downgrading, "switch to opus", "use minimax", "use claude", "use the smart model", "use the cheap model", "change model", "swap model", or any variation of wanting a different LLM. Also trigger when the user asks "what model am I on", "which model", or "current model". This skill ONLY works with the hudl provider backed by gru.huddle01.io.

hudl-model-switch

Switch the active LLM model for this OpenClaw agent via the Huddle01 GRU gateway.

Non-negotiable rules

  • This skill only applies to the hudl provider backed by gru.huddle01.io.
  • The target model value in config must always be hudl/<model-id>.
  • Never edit JSON manually for model switching. Always use scripts/switch-model.sh.
  • Never modify provider wiring during a switch (models.providers.hudl.baseUrl, apiKey, and other unrelated keys stay unchanged).
  • Treat any post-switch mismatch, missing model field, or non-hudl/ result as a hard failure. Do not restart in that state.
  • For status/reporting, the active agent model is the source of truth. agents.defaults.model.primary is only a default and may be stale.

Prerequisites

This skill only works when the OpenClaw config has a hudl provider pointing at gru.huddle01.io. If the provider is missing or the baseUrl is different, stop and tell the user this skill requires the Huddle01 GRU gateway.

Step-by-step

On any switch/change request

Step 1: Validate provider + config path (required)

Run:

bash <skill_dir>/scripts/validate.sh
  • Exit 0: continue.
  • Exit 1: stop. Show the exact validation error and tell the user no config changes were made.
  • Validation resolves config in this order: OPENCLAW_CONFIG, ~/.openclaw/config.json, ~/.openclaw/openclaw.json.
  • The provider check is strict: the hudl provider must exist, apiKey must be present, and baseUrl must point at host gru.huddle01.io.

Step 2: Resolve the exact target model ID (required)

Use <skill_dir>/references/models.md to map user intent to a canonical model.

Normalization rules:

  • If the resolved model does not start with hudl/, prepend hudl/.
  • If the user already supplied hudl/..., keep it unchanged.
  • Never write a non-hudl/ model into config.
  • Reject empty model IDs, hudl/ by itself, or values with spaces.
  • For unknown models, still normalize to hudl/<user-value> and warn clearly that the model must exist on GRU or requests will fail.

Ambiguity rules:

  • If request is ambiguous (for example "claude" could be Opus/Sonnet/Haiku), choose the catalog default alias mapping (currently hudl/claude-opus-4.6) and state what was chosen.
  • If the user asks for a specific variant, obey that exact variant.

Step 3: Capture current state before mutation (required)

Read and note current values so the response can show before/after:

  • active agent model (agents.list[*].model.primary, preferring agent id: "main")
  • default model (agents.defaults.model.primary)
  • If .agents.list has no entries, stop. This skill is for switching an active agent model, so a config with no agent entries is not a valid target.
  • When active and default differ, describe that as a mismatch and treat the active agent model as the model currently in use.

Step 4: Switch model via script (required)

Run:

bash <skill_dir>/scripts/switch-model.sh <hudl-model-id>

switch-model.sh is the source of truth and must be used instead of manual edits.

Expected behavior from script:

  • Updates agents.defaults.model.primary
  • Updates active agent model (agents.list[*].model.primary, preferring id: "main", otherwise first agent)
  • Normalizes models.providers.hudl.models[*].id so every catalog ID is hudl/...
  • Ensures the target model exists in models.providers.hudl.models
  • Preserves unrelated configuration
  • Fails if the resulting active/default model fields are empty, not hudl/-prefixed, or do not exactly match the requested target
  • Fails if the provider model catalog still contains non-hudl/ IDs or is missing the target model

Failure handling:

  • If script fails, stop and show the script error.
  • Do not "repair" the config manually inside the skill. If the script does not leave config in a valid final state, stop and surface the failure.

Step 5: Verify post-switch values before restart (required)

Confirm both fields now point to the normalized target model and both are hudl/....

  • If aligned: continue.
  • If not aligned: report mismatch and stop. Do not restart.

Step 6: Restart + report final state (required)

Before restart, tell the user:

  • restart is starting now
  • service may take a couple of minutes to come back
  • you will confirm applied model values after restart

Run:

openclaw restart

After restart, report:

  • restart completion status
  • previous active/default model values
  • new active/default model values
  • alignment status (aligned or mismatch)
  • exact final model ID in use
  • provider catalog normalization status

On "what model am I on" / "current model"

  1. Run validation (scripts/validate.sh).
  2. Read the resolved config (config.json or openclaw.json).
  3. Report:

- current active agent model (agents.list[*].model.primary, prefer id: "main") - current default model (agents.defaults.model.primary) - whether they are aligned - whether each value is correctly hudl/-prefixed - config path used for the check

Reporting rules:

  • Do not say "current model is X" based only on agents.defaults.model.primary.
  • If agents.list[*].model.primary and agents.defaults.model.primary differ, say the active agent model is currently in use and the default is stale/misaligned.
  • When the user asks to "show on file" or "prove it from config", show both paths and values:

- agents.list[main-or-first].model.primary - agents.defaults.model.primary

No restart is needed for read-only status checks.

Example exchanges

Switch to Opus:

User: switch to opus
Agent: Checking GRU gateway config... verified.
Agent: Resolved target model: hudl/claude-opus-4.6.
Agent: Current models -> active: hudl/minimax-m2.5, default: hudl/minimax-m2.5.
Agent: Running switch script... success.
Agent: Provider model catalog normalized and includes hudl/claude-opus-4.6.
Agent: Restarting gateway now; it may take a couple minutes.
Agent: Restart complete. Active: hudl/claude-opus-4.6, default: hudl/claude-opus-4.6 (aligned).

Mismatched config on status check:

User: what model am I on?
Agent: Config path: /home/ubuntu/.openclaw/openclaw.json
Agent: Active model in use: hudl/minimax-m2.5 (from agents.list[id=main].model.primary)
Agent: Default model: gpt-4.1 (from agents.defaults.model.primary)
Agent: Status: mismatch. The gateway is currently using hudl/minimax-m2.5; the default value is stale and should not be reported as the live model.

No hudl provider:

User: switch to opus
Agent: (validate.sh failed)
Agent: This skill requires the Huddle01 GRU gateway (hudl provider with baseUrl gru.huddle01.io) in your OpenClaw config. No changes were made.

Unknown model:

User: switch to deepseek-r2
Agent: Heads up: deepseek-r2 is not in the known catalog. I will set hudl/deepseek-r2; requests will fail unless that model exists on your GRU gateway.
Agent: Switching to hudl/deepseek-r2...

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

75.45%
按下载量换算2,251

安全审计

VirusTotal

通过

ClawScan

可疑

Static analysis

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills