Install
openclaw skills install usage-monitorMonitor any service usage dashboard and alert when threshold is reached. User-configurable URL and threshold.
openclaw skills install usage-monitor通用的用量/配额监控 Skill,支持用户自定义监控面板 URL 和告警阈值。
复制 config.example.json 为 config.json 并填写:
{
"panelUrl": "你的用量面板页面 URL",
"alertThreshold": 80,
"serviceName": "服务名称(可选)",
"checkIntervalHours": 4
}
- [ ] 检查服务用量
node skills/usage-monitor/check.js
| 参数 | 类型 | 必填 | 默认值 | 说明 |
|---|---|---|---|---|
panelUrl | string | ✅ | - | 用量面板页面 URL(从浏览器地址栏复制) |
alertThreshold | number | ✅ | 80 | 告警阈值百分比(1-100) |
serviceName | string | ❌ | "服务" | 服务名称,用于告警消息 |
checkIntervalHours | number | ❌ | 4 | 检查间隔(小时) |
config.json 的 panelUrl 字段URL 示例:
https://example.com/usage/dashboard
https://platform.example.com/token/quota
⚠️ 服务使用量提醒
📊 服务:OpenClaw Token
📈 当前用量:85%
📈 可用额度:15%
⏰ 剩余天数:30 天
🔗 查看:<你的面板 URL>
当前用量已达告警阈值(80%),请及时关注用量或考虑增加额度。