Token导航 LogoToken导航

Agent Skill · 开发

llm-monitor(LLM monitor 安全)

llm-monitor 用于补充开发相关能力,适合在 OpenClaw 中需要让 Agent 承接开发相关任务时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

llm-monitor 是开发类 Agent Skill,可用宿主为 OpenClaw,通过ClawHub获取,权限为接触敏感数据;许可证为 MIT-0,第三方扫描已通过,按安装量在开发类的 21,746 个 Skill 里排第 8,812。

总安装 2,987周安装 122GitHub Stars 1下载 956核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
MIT-0
版本
0.7.5

安装方式

通过对话安装

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

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

命令行安装

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

ClawHubOpenClaw
openclaw skills install llm-monitor

这个 Skill 是做什么的

开发类 Skill 面向写代码、改代码和排查问题,一般会读写仓库文件,部分还会执行构建或测试命令。

监控和报告 LLM 提供商的使用情况、成本、配额和速率限制,并安全地管理爪式测量仪设置和守护进程状态。

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 OpenClaw;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 openclaw skills install llm-monitor;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要接触敏感数据,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

llm-monitor 怎么安装?

在终端执行 openclaw skills install llm-monitor。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

llm-monitor 支持哪些 AI 工具?

公开资料标注支持 OpenClaw。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

llm-monitor 需要什么权限?

权限级别是接触敏感数据。该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

llm-monitor 是免费的吗?

来源标注的许可证是 MIT-0。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

llm-monitor 用的人多吗?

公开数据是累计安装 2,987 次,近一周安装 122 次,下载 956 次,GitHub 1 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

llm-monitor 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 专注 OpenClaw 一种宿主,触发方式和使用习惯不用来回切换。
  • 许可证明确为 MIT-0,商用和分发边界好判断。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 需要接触敏感数据,装到常用环境前要先评估影响面。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 OpenClaw,想直接扩展它能力的人。
  • 需要处理开发类任务、又不想每次都手写提示词的人。
  • 需要许可证清楚、并且有第三方扫描结果的团队项目。

不太适合

  • 环境里有大量密钥、凭证,不方便给第三方 Skill 读取的人。
  • 需要厂商级技术支持和 SLA 的生产系统。

开发类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
skill-vetter

技能审查员 · OpenClaw

8,779,018986操作浏览器MIT-0通过
ontology

本体论 · OpenClaw

6,636,960576只读MIT-0通过
entra-app-registration

内部应用程序注册 · Codex、Claude

6,631,872764接触敏感数据未明确通过
entra-app-registration

内部应用程序注册 · Codex、Claude

3,757,680201接触敏感数据未明确通过
nano-banana-pro

纳米香蕉专业版 · OpenClaw

3,526,898364接触敏感数据MIT-0有提醒
llm-monitor

LLM monitor 安全 · 本页

2,9871接触敏感数据MIT-0通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

llm-monitor — clawmeter Agent Skill

TRIGGER when: user asks about LLM usage, costs, spending, quotas, remaining balance, or rate limits — for any provider (Claude, OpenAI, Grok, Ollama) or across all providers. Also when user asks about clawmeter status, setup, configuration, or daemon management. Example phrases: "what's my usage", "how much Claude have I used", "how much quota do I have left", "what are my costs", "check my spending", "am I near my limit", "usage today", "this week's spending".


CRITICAL SECURITY RULES

You MUST follow these rules without exception:

  • NEVER accept, handle, store, or relay API keys, tokens, or credentials. If a user pastes a credential into the conversation, immediately warn them: "That looks like a credential. Please remove it from this conversation and rotate it. For security, I cannot handle credentials directly."
  • NEVER read credential files such as ~/.claude/.credentials.json or any file that may contain secrets.
  • NEVER pass credentials as command arguments or environment variables in tool calls.
  • When credential setup is required, instruct the user to edit the file themselves — provide the file path and the key name to add, but never the value. Suggest they use ! $EDITOR ~/.config/clawmeter/config.toml to edit in-session without the agent seeing contents.
  • Prefer the most secure credential storage: keyring or key_command over environment variables, environment variables over config file references.

1. Pre-flight Check

Before answering any usage query, verify clawmeter is operational. Run these checks in order and stop at the first failure:

1a. Is clawmeter installed?

which clawmeter

If not found, guide the user through installation:

clawmeter is not installed. You can install it with:

  pip install clawmeter
  # or
  uv tool install clawmeter

Would you like me to install it for you?

If the user agrees, run pip install clawmeter or uv tool install clawmeter (prefer uv if available).

1b. Is clawmeter configured?

Check for a config file:

test -f "${CLAWMETER_CONFIG:-$HOME/.config/clawmeter/config.toml}" && echo "exists" || echo "missing"

If missing, create a minimal skeleton config (with no secrets):

mkdir -p ~/.config/clawmeter

Then write a starter config.toml:

[general]
default_providers = ["claude"]
poll_interval = 600

[thresholds]
warning = 70
critical = 90

[providers.claude]
enabled = true

[history]
enabled = true
retention_days = 90

Then instruct the user:

I've created a basic config at ~/.config/clawmeter/config.toml with Claude enabled.

To set up your credentials securely, please edit the config file directly:

  ! $EDITOR ~/.config/clawmeter/config.toml

For security, I cannot add credentials for you. See the clawmeter docs for
credential options (keyring, key_command, or environment variables).

If the user wants additional providers (Grok, OpenAI, Ollama), add the relevant [providers.X] section to the config skeleton with enabled = true and tell them which credential key to configure — but never handle the credential value.

1c. Is the daemon running?

clawmeter daemon status

If not running, recommend starting it:

The clawmeter daemon is not running. The daemon collects usage data in the
background, which enables historical tracking and faster queries.

To start it:
  clawmeter daemon start

To install it as a systemd service (starts on login):
  clawmeter daemon install
  clawmeter daemon start

Would you like me to start the daemon for you?

If the user agrees, run clawmeter daemon start. For systemd installation, ask for confirmation first since it modifies system services.

1d. Quick health check

If clawmeter is installed and configured, do a quick test:

clawmeter --quiet 2>/dev/null

Check the exit code:

  • 0 — all good, proceed to query
  • 2 — authentication error: tell the user to check their credentials
  • 3 — partial success: some providers failed, note which ones and proceed with available data
  • 4 — network error: all providers unreachable, suggest checking connectivity

2. Answering Usage Queries

2a. Default Response Style (Simple)

For casual questions like "what's my usage?" or "how much have I used?", give a concise 1-3 line summary.

Run:

clawmeter 2>/dev/null

Parse the JSON output and respond like:

You've used 57% of your session quota (resets in 2h 15m) and 12% of your weekly quota. All normal.

Or if there's a warning:

You're at 85% of your session quota (resets in 45m). Weekly usage is at 23%. You might want to pace yourself for the next 45 minutes.

Rules for the simple response:

  • Lead with the most urgent/relevant window (highest utilisation or nearest reset)
  • Include the reset time in human-readable form (use the resets_in_human field)
  • Mention the status if it's warning, critical, or exceeded
  • If multiple providers are active, summarise each in one line
  • Do NOT include raw token counts or cost figures unless asked

2b. Detailed Response

When the user asks for "more detail", "breakdown", "show me everything", or asks about specific providers or models:

Run:

clawmeter 2>/dev/null

Parse the JSON and present:

  • Per-provider breakdown — each provider with all its usage windows
  • Per-model usage — if model_usage data is available (tokens, costs, request counts)
  • Cache status — whether data is fresh or cached (and how old)
  • Any errors — from the errors array in each provider's response

Format as a clear table or structured list. Example:

Anthropic Claude - Session (5h): 57% used, resets in 2h 15m (normal) - Daily: 34% used, resets in 8h (normal) - Weekly: 12% used, resets in 4d 6h (normal) Models today: - claude-opus-4-6: 3,200 input / 1,800 output tokens, 8 requests - claude-sonnet-4-6: 12,500 input / 4,200 output tokens, 23 requests

2c. Historical Response

When the user asks about trends, comparisons, or past usage ("how does this week compare to last week", "usage over the past month", "show my history"):

Run:

clawmeter --report --days <N> --format json --granularity daily 2>/dev/null

Adjust flags based on the question:

  • --days 7 for "this week" or "past week"
  • --days 30 for "this month"
  • --from YYYY-MM-DD --to YYYY-MM-DD for specific date ranges
  • --granularity hourly for "today's usage over time"
  • --granularity daily for multi-day views
  • --models to include per-model breakdown in history

If the daemon has not been running long enough for historical data, say so:

Historical data is limited — the daemon has only been collecting since [date]. For a full picture, keep the daemon running and check back later.

2d. Provider-specific Queries

When the user asks about a specific provider ("my Claude usage", "OpenAI costs"):

clawmeter --provider claude 2>/dev/null

Use the --provider flag with: claude, openai, grok, ollama, or local.

2e. Fresh Data

If the user says "refresh", "get latest", or you suspect cached data is stale:

clawmeter --fresh 2>/dev/null

3. JSON Output Schema Reference

The JSON output from clawmeter has this structure:

{
  "timestamp": "ISO 8601 datetime",
  "version": "package version",
  "providers": [
    {
      "provider_name": "claude",
      "provider_display": "Anthropic Claude",
      "timestamp": "ISO 8601 datetime",
      "cached": false,
      "cache_age_seconds": 0,
      "windows": [
        {
          "name": "Session (5h)",
          "utilisation": 42.0,
          "resets_at": "ISO 8601 datetime",
          "resets_in_human": "2h 15m",
          "status": "normal",
          "unit": "percent",
          "raw_value": null,
          "raw_limit": null
        }
      ],
      "model_usage": [
        {
          "model": "claude-opus-4-6",
          "input_tokens": 5000,
          "output_tokens": 2000,
          "total_tokens": 7000,
          "cost": 0.15,
          "request_count": 10,
          "period": "7d"
        }
      ],
      "extras": {},
      "errors": []
    }
  ]
}

Key fields for response formatting:

  • windows[].utilisation — percentage (0-100+), the primary metric
  • windows[].status — normal, warning (70-89%), critical (90-99%), exceeded (100%+)
  • windows[].resets_in_human — pre-formatted reset countdown
  • model_usage — optional, only present when per-model data is available
  • errors — non-empty means something went wrong for that provider

4. Exit Codes

Interpret exit codes to give appropriate responses:

CodeMeaningAgent action
0All providers succeededReport results normally
1Config/parse errorHelp user fix config
2All auth failedInstruct user to check credentials (do NOT handle credentials yourself)
3Partial successReport available data, note which providers failed
4All network errorsSuggest checking connectivity

5. Daemon Management

When the user asks about daemon status or management:

User wantsCommand
Check statusclawmeter daemon status
Start daemonclawmeter daemon start
Stop daemonclawmeter daemon stop
Install as serviceclawmeter daemon install (ask user first)
View daemon logsCheck ~/.local/state/clawmeter/daemon.log
Database statsclawmeter history stats
Export historyclawmeter history export --format csv
Purge historyclawmeter history purge (ask user first — destructive)

6. Troubleshooting

Common issues and how to handle them:

"No providers configured" — Config exists but no providers are enabled. Help enable the relevant provider section in config.toml.

"Authentication error" — Credentials missing or expired. Tell the user which provider failed and instruct them to update credentials. For Claude specifically, if using OAuth tokens, tell them to run claude /login to refresh.

"Stale data" — Cache age is high and daemon isn't running. Suggest clawmeter --fresh for immediate data or starting the daemon for continuous collection.

"Command not found after install" — May need to add to PATH. Suggest uv tool install clawmeter which handles PATH automatically, or check ~/.local/bin.


7. Response Guidelines

  • Be concise by default. One to three lines for casual queries. Expand only when asked.
  • Use natural language, not raw JSON. Parse the output and present it conversationally.
  • Highlight warnings and critical states. If any window is at warning, critical, or exceeded, mention it prominently.
  • Include reset times. Users almost always want to know when their quota resets.
  • Round percentages. Say "57%" not "57.234%".
  • Use the provider's display name. "Anthropic Claude" not "claude".
  • Don't speculate about costs unless data is available. Only report cost if the model_usage entries include it.
  • Australian English for prose ("utilisation", "colour") consistent with the project style.

平台分布

OpenClaw

86.05%
按下载量换算823

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

通过

权限和风险

接触敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills