Token导航 LogoToken导航TokenDH.com
开发权限需确认clawhub未标认证来源可访问clear审计提醒

llm-switcherLLM switcher 文档

Agent Skill

llm-switcher 用于整理文档、README、Markdown 和说明材料,适合在 OpenClaw 中需要把零散信息整理成结构清晰的文档时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

11,198

周安装

481

GitHub Stars

公开资料未说明

下载量

3,925
OpenClaw

安装说明

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

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

ClawHubOpenClaw
openclaw skills install llm-switcher

简介

用于整理文档、README、Markdown 等说明材料,提升信息结构化程度。

  • 适合在 OpenClaw 中将零散信息整合为清晰文档结构时使用。
  • 可结合来源仓库和原始 README 继续核验具体用法和配置方式。
  • 安装前建议确认权限范围、维护状态及是否涉及命令执行或文件读写。
  • llm-switcher 属于开发类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

name
llm-switcher
description
Change OpenClaw's global default AI model in config, save the change, and restart the gateway after explicit confirmation. Before writing default config, first test model availability by applying a session-only override. Use when the user wants to switch the default model for future sessions and validate it safely first.

Model Switcher

Change the global default LLM model in OpenClaw config, with a session-level availability check first.

Workflow

1) Read config and show available models first

Run:

openclaw config get agents.defaults.models
openclaw config get agents.defaults.model.primary

Extract and show:

  • model key (for example openai-codex/gpt-5.3-codex)
  • alias (for example codex, opus) when present
  • current default model

Do not switch anything before showing options.

2) Ask user to choose model

Ask for the model name they want to set as the global default. Accept:

  • alias (preferred): codex, opus
  • full provider/model id when configured

If the name is not in configured options, reject and ask again with the valid list.

3) Test selected model in current session first (availability/conflict check)

Before changing default config, apply a session-only override and run a live reply test.

In OpenClaw agent/tooling context:

  • Use session_status with model=<selected-model>.
  • Confirm the override succeeds (no error about unknown/unavailable model).
  • Then send a short test prompt to the model and require an actual response, for example:

- "What model/version are you currently running? Return provider/model id and a one-line status."

  • Treat this as pass only if the model returns a normal reply.

If override or live reply test fails:

  • Do not update default config.
  • Report the error clearly.
  • Explain that the model appears unavailable/misconfigured.
  • Ask user to choose a different configured model.

If override and live reply test both succeed:

  • Continue to update default config.

4) Apply default-config change

Update default model in config:

openclaw config set agents.defaults.model.primary '"<selected-model>"'

Then verify:

openclaw config get agents.defaults.model.primary

Never claim success without verification output.

5) Ask before restarting gateway

After updating config, explicitly ask:

  • "Do you want me to restart the gateway now so the change takes effect?"

Only restart after a clear yes.

6) Restart gateway on confirmation

Run:

openclaw gateway restart

Then verify status:

openclaw gateway status

If restart fails, report the error and suggest:

openclaw gateway stop
openclaw gateway start
openclaw gateway status

Response style

  • Be short and direct.
  • Always show current default and valid model choices before asking for selection.
  • Do not ask scope questions (no session-only final path in this skill).
  • Always run a session-level availability check before writing default config.
  • Always require explicit confirmation before restarting gateway.
  • Never claim success without verification output.

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

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

04

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

能力 5

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

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

平台分布

OpenClaw

98.96%
按下载量换算3,884

安全审计

VirusTotal

可疑

ClawScan

通过

Static analysis

未展示

权限和风险

权限需确认

当前来源未能明确判断权限范围,默认进入异常复核队列。

安装前确认

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

来源信息

继续浏览同类 Skills