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

openclaw-session-model-switcherOpenClaw session model switcher 效率

Agent Skill

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

总安装

8,514

周安装

362

GitHub Stars

1

下载量

2,983
OpenClaw

安装说明

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

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

ClawHubOpenClaw
openclaw skills install openclaw-session-model-switcher

简介

即时切换当前 OpenClaw 会话使用的 AI 模型,支持多种服务商。

  • 适用于 gpt、claude、qianwen、minimax 等模型的动态切换。
  • 可查看当前状态、列出可用模型并恢复默认配置。
  • 需配置各模型 API 密钥,确保切换过程不中断服务连续性。
  • 建议在测试会话中验证新模型兼容性,避免影响关键任务。

SKILL.md

name
model-switcher
description
Instantly switch the current OpenClaw session model; supports gpt, claude, qianwen, minimax, current model status, configured model listing, and restoring the default session model.

Model Switcher Skill

Core Rule

When the user asks to switch the current session model, resolve the target dynamically from the active OpenClaw configuration first, then switch the current session directly. Do not hardcode provider/model values inside the skill.

Required Behavior

Switch current session immediately

When the user says things like:

  • switch to gpt
  • switch to claude
  • use qianwen
  • change to minimax
  • switch to qwen3.5-flash

The agent should:

  • read models.providers from the current OpenClaw configuration
  • use skills/openclaw-session-model-switcher/model-aliases.json for provider-level alias resolution
  • dynamically match against configured models when the user provides a concrete model name or fragment
  • directly execute /model <provider/model> in the current session after resolving a unique target

Recommended execution path:

  • prefer scripts/switch-model.sh <selection> to resolve the target model
  • once the script returns a unique model, execute the returned command in the current session
  • if the environment supports a direct session-level model override tool, prefer that
  • do not merely print /model ... as plain advice when direct execution is possible

Restore default

When the user says things like:

  • restore default model
  • reset model switch
  • use the default model again

The agent should directly execute:

  • /model default

Show current session model

When the user says things like:

  • what model am I using now
  • show current model
  • model status

The agent should directly query the current session model state instead of only explaining how to check it.

List configured models

When the user says things like:

  • what models are available
  • list current models
  • show configured models
  • what qwen models do I have

The agent should read models.providers from the current OpenClaw configuration and list switchable models. If the user specifies a provider, only list models for that provider.

Resolution Rules

  • trust only the current OpenClaw configuration in models.providers
  • keep model-aliases.json limited to provider aliases and default semantics
  • if a provider has only one configured model, use it directly
  • if a provider has multiple models, prefer model-name matching from the user input
  • if multiple candidates still remain, list the candidates and ask the user to choose
  • if nothing matches, clearly say that no configured model matches the request

Multi-Agent Rule

  • this skill affects only the current persona in the current session
  • do not modify global configuration
  • do not affect other personas or sessions
  • do not restart the Gateway

Do

  • switch the current session directly
  • tell the user the current session model was switched
  • mention that the change affects only the current session when helpful
  • return candidate lists for ambiguous matches
  • list current available models when the user is unsure
  • consume script output at the upper layer instead of exposing raw stderr or internal errors

Do Not

  • do not edit openclaw.json
  • do not restart the Gateway
  • do not hardcode model IDs inside the skill
  • do not maintain a static model list separate from the active configuration
  • do not accidentally implement this as a global default model switch
  • do not guess in multi-candidate cases
  • do not dump raw JSON, stderr, or internal tool errors to normal users

Suggested Script Interface

  • scripts/switch-model.sh <selection>: resolve user input and return JSON
  • scripts/list-models.sh [provider]: list all configured models or only one provider
  • scripts/model-status.sh: output /model status

Upper-Layer Interaction Flow

For switch requests

When the user asks to switch models, the upper layer should:

  1. call scripts/switch-model.sh <selection>
  2. parse the JSON output
  3. branch on status
  • status: ok

- execute the returned command - confirm which model was selected - mention that it only affects the current session when useful

  • status: ambiguous

- do not surface raw script output - convert options into a readable candidate list - ask the user to reply with a model name or number - do not guess

  • status: error

- explain naturally that no configured model matched - suggest listing available models when appropriate

For list requests

When the user asks for available models or models from a specific provider:

  1. call scripts/list-models.sh [provider]
  2. present the result as a readable provider-grouped list
  3. do not mix in models that are not present in the active configuration

For status requests

When the user asks which model is currently active:

  1. call scripts/model-status.sh
  2. execute the session-level status query
  3. present the result in natural language instead of only teaching the command

Standard Reply Templates

Switch success

  • Switched the current session to <provider/model>.
  • Switched the current session to <provider/model>; this affects only the current session.

Ambiguous match

  • You can switch to these models:
  • 1. <provider/model-a>
  • 2. <provider/model-b>
  • Reply with the model name or a number.

If the user specified a provider:

  • You can switch to these <provider> models:

No match

  • No configured model matches "<selection>".
  • I can list the models currently available in your configuration.

List models

  • These models are currently available in the active configuration:
  • list them grouped by provider

Fallback Rule

Only if the current environment truly cannot execute native session commands should the agent fall back to replying with:

  • the exact command to run
  • why it cannot execute it directly in the current environment

That fallback is a degraded path, not the default path.

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

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

04

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

能力 5

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

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

平台分布

OpenClaw

73.61%
按下载量换算2,196

安全审计

VirusTotal

通过

ClawScan

可疑

Static analysis

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

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

来源信息

继续浏览同类 Skills