Default Model Plugin
Set the default model persistently via /default_model command. Changes are written to the config file and survive gateway restarts.
Features
- -
/default_model — Show current default model from config - INLINECODE2 — Set default model (e.g.
/default_model openrouter/xiaomi/mimo-v2-pro) - Telegram interactive picker — Tap provider → model → auto-persist
How it works
- - Writes to
agents.defaults.model.primary in the OpenClaw config file - New sessions will use the configured default model
- Current session model is unchanged (use
/model for session-level override)
Installation
CODEBLOCK0
Source
https://github.com/jkyotnfjfbjnknh/openclaw-default-model
技能名称: default-model
详细描述:
默认模型插件
通过 /default_model 命令持久化设置默认模型。更改会写入配置文件,并在网关重启后依然生效。
功能特性
- - /defaultmodel — 显示配置文件中当前的默认模型
- /defaultmodel <模型> — 设置默认模型(例如 /default_model openrouter/xiaomi/mimo-v2-pro)
- Telegram 交互式选择器 — 点击提供商 → 模型 → 自动持久化
工作原理
- - 将配置写入 OpenClaw 配置文件中的 agents.defaults.model.primary 字段
- 新建会话将使用配置的默认模型
- 当前会话模型保持不变(使用 /model 命令可覆盖当前会话设置)
安装方法
bash
openclaw plugins install clawhub:default-model
源代码
https://github.com/jkyotnfjfbjnknh/openclaw-default-model