Rechercher

PythonReactSEOPDF
OpenClaw

Model Usage Monitor

model usage monitor Skill

halfmoon820 installations selon la source☆ 0 Étoiles du dépôt

Installation

Suivez les instructions du dépôt pour votre agent. Consultez les fichiers et dépendances avant l’installation.

SkillHub CLI

skillhub install halfmoon82/model-usage-monitor

Examinez la source et la compatibilité, puis suivez les étapes d’installation.

Donnez le lien à votre agent et demandez-lui d’examiner instructions et dépendances avant d’expliquer les étapes.

Voir la source ↗Guides

Instructions

model-usage-monitor Skill

OpenClaw 模型使用监控与告警技能

功能

  • 解析语义路由日志,统计模型使用分布
  • 估算各模型调用次数和成本
  • 计算缓存命中率
  • 每小时自动告警检查
  • 支持实时监控模式

安装

# 技能已包含监控脚本和自动配置
# 安装后自动创建每小时检查的 Cron Job

使用

查看监控报告
# 完整报告
python3 ~/.openclaw/workspace/.lib/model_usage_monitor_v2.py

# JSON 格式
python3 ~/.openclaw/workspace/.lib/model_usage_monitor_v2.py --format json

# 仅检查告警
python3 ~/.openclaw/workspace/.lib/model_usage_monitor_v2.py --alert-check
实时监控
python3 ~/.openclaw/workspace/.lib/model_usage_monitor_v2.py --live

告警阈值

类型 阈值 说明
Opus 调用频繁 >5 次/小时 防止意外大量使用昂贵模型
Opus 成本过高 >$0.50/小时 成本控制
总成本过高 >$2.00/小时 总体预算控制

文件结构

.skills/model-usage-monitor/
├── SKILL.md              # 本文件
├── monitor.py            # 核心监控脚本
├── setup.py              # 自动安装/配置
└── config.json           # 默认配置

技术细节

  • 全部使用本地 Ollama 模型,零 API 调用
  • 只读日志文件,零侵入
  • 基于 semantic_check.log 和 gateway.log 分析

Informations sur la source

Source
github
Repository
openclaw/skills
Path
skills/halfmoon82/model-usage-monitor
Version
—
Commit
15ff13c4d1750656d3834339c7d9c9c1136dabde
Source de classification
rules
Statut
active
Visibilité
public

Ces informations proviennent de l’analyse indexée et peuvent être anciennes. Vérifiez les fichiers actuels.

Contenu extrait

SKILL.md
# model-usage-monitor Skill

OpenClaw 模型使用监控与告警技能

## 功能

- 解析语义路由日志,统计模型使用分布
- 估算各模型调用次数和成本
- 计算缓存命中率
- 每小时自动告警检查
- 支持实时监控模式

## 安装

```bash
# 技能已包含监控脚本和自动配置
# 安装后自动创建每小时检查的 Cron Job
```

## 使用

### 查看监控报告

```bash
# 完整报告
python3 ~/.openclaw/workspace/.lib/model_usage_monitor_v2.py

# JSON 格式
python3 ~/.openclaw/workspace/.lib/model_usage_monitor_v2.py --format json

# 仅检查告警
python3 ~/.openclaw/workspace/.lib/model_usage_monitor_v2.py --alert-check
```

### 实时监控

```bash
python3 ~/.openclaw/workspace/.lib/model_usage_monitor_v2.py --live
```

## 告警阈值

| 类型 | 阈值 | 说明 |
|------|------|------|
| Opus 调用频繁 | >5 次/小时 | 防止意外大量使用昂贵模型 |
| Opus 成本过高 | >$0.50/小时 | 成本控制 |
| 总成本过高 | >$2.00/小时 | 总体预算控制 |

## 文件结构

```
.skills/model-usage-monitor/
├── SKILL.md              # 本文件
├── monitor.py            # 核心监控脚本
├── setup.py              # 自动安装/配置
└── config.json           # 默认配置
```

## 技术细节

- 全部使用本地 Ollama 模型,零 API 调用
- 只读日志文件,零侵入
- 基于 semantic_check.log 和 gateway.log 分析

Skills associés

OpenClaw

1password

daggerkun007

Set up and use 1Password CLI (op). Use when installing the CLI, enabling desktop app integration, signing in (single or multi-account), or reading/injecting/running secrets via op.