Model Alias Append Skill
Automatically appends model alias to responses with configuration change detection

Key Features
- - 🔍 Automatic Detection - Identifies the model used for each response
- 🏷️ Alias Appending - Adds model alias from openclaw config agents.defaults.models.{yourModelDict}.alias format like the config below
"agents": {
"defaults": {
"model": {
"primary": "gemma3:27b-local",
"fallbacks": [ "qwen" ]
},
"models": {
"ollama-local/gemma3:27b": {
"alias": "gemma3:27b-local"
},
"qwen-portal/coder-model": {
"alias": "qwen"
}
}
}
}
- - 🔄 Real-time Monitoring - Watches for configuration changes
- 📢 Update Notifications - Shows when config changes occur
- 🛡️ Format Preservation - Maintains reply tags and formatting
Install
CODEBLOCK1
How It Works
- 1. Intercepts responses before sending
- Determines which model generated the response
- Appends the appropriate model alias
- Shows update notices when configuration changes
Setup
No additional configuration needed - reads from your existing openclaw.json
Output Example
CODEBLOCK2
模型别名追加技能
自动在响应中追加模型别名,并检测配置变更

主要特性
- - 🔍 自动检测 - 识别每条响应所使用的模型
- 🏷️ 别名追加 - 从openclaw配置中读取模型别名,格式为 agents.defaults.models.{yourModelDict}.alias,如下方配置所示
agents: {
defaults: {
model: {
primary: gemma3:27b-local,
fallbacks: [ qwen ]
},
models: {
ollama-local/gemma3:27b: {
alias: gemma3:27b-local
},
qwen-portal/coder-model: {
alias: qwen
}
}
}
}
- - 🔄 实时监控 - 监听配置变更
- 📢 更新通知 - 配置变更时显示提示
- 🛡️ 格式保留 - 保持回复标签和格式不变
安装
npx clawhub@latest install model-alias-append
工作原理
- 1. 在发送前拦截响应
- 确定生成该响应的模型
- 追加对应的模型别名
- 配置变更时显示更新通知
配置
无需额外配置 - 自动读取现有的openclaw.json
输出示例
您的回复内容...
[模型别名配置已更新] // 此行仅在openclaw.json被修改后出现
gemma3:27b-local