← 返回 Skills 市场
openclawq

Claw Monitor

作者 bread time · GitHub ↗ · v0.1.3 · MIT-0
cross-platform ⚠ suspicious
306
总下载
0
收藏
2
当前安装
4
版本数
在 OpenClaw 中安装
/install claw-monitor
功能描述
Use the `clawmonitor` CLI/TUI to inspect OpenClaw sessions, model health, token usage, and gateway service health.
使用说明 (SKILL.md)

ClawMonitor (OpenClaw monitoring)

Use this skill when the user asks questions like:

  • “Did my agent finish? Why no feedback?”
  • “Which session/thread received the last message, and when?”
  • “Is the agent working, interrupted, or stuck? Any delivery failures?”
  • “Which model is failing, and is the problem the provider or OpenClaw itself?”
  • “Which session burned the most tokens recently?”
  • “Do we have zombie/helper processes or a dirty gateway cgroup?”

Preconditions

  • This skill runs on a machine that has OpenClaw state at ~/.openclaw/.
  • clawmonitor is installed on that same machine.

Preflight (recommended)

Before using the commands below, verify the binary exists and can read local OpenClaw state:

clawmonitor --version
clawmonitor init --non-interactive || true
clawmonitor status --format md

If clawmonitor is missing, or status fails, install it first.

Install:

pip install -U clawmonitor

Alternative installs:

  • pipx:

    pipx install clawmonitor
    
  • Virtualenv:

    python3 -m venv .venv
    . .venv/bin/activate
    pip install -U pip
    pip install clawmonitor
    

Notes:

  • Some OpenClaw environments intentionally disallow installing packages at runtime. If installs are blocked, ask the user to install clawmonitor on the host first.
  • clawmonitor init writes config under ~/.config/clawmonitor/config.toml and is safe to re-run.

Core commands

0) Tree view (who owns which sessions)

If you suspect ACP/subagent routing issues (for example Telegram thread bindings), start with:

clawmonitor tree

1) Status (Markdown)

Show the core status table:

clawmonitor status --format md

For a more verbose table including task/message previews:

clawmonitor status --format md --detail

2) Model health

Probe configured models directly and/or through OpenClaw:

clawmonitor models --format md

Useful variants:

clawmonitor models --mode direct --format json
clawmonitor models --mode openclaw --timeout 20

3) Drill down on one session

Export a redacted report for a single session key:

clawmonitor report --session-key 'agent:main:main' --format md

4) Nudge (ask the session to report progress)

Send a progress request into the session:

clawmonitor nudge --session-key 'agent:main:main' --template progress

5) Full TUI for interactive inspection

Run the TUI when you need interactive triage:

clawmonitor tui

Important TUI keys:

  • v: cycle Sessions / Models / System
  • s: jump directly to System
  • h: toggle right-side Status / History
  • u: cycle token windows (now / 1d / 7d / 30d)
  • r: refresh current active surface
  • z: cycle pane widths
  • Z: fullscreen detail
  • o: open the English operator note in System view

Troubleshooting quick wins

  • If clawmonitor status shows DELIVERY_FAILED or NO_FEEDBACK, export a report next:

    clawmonitor report --session-key 'agent:main:main' --format md
    
  • If model checks disagree, separate direct provider path from OpenClaw path.

  • If Telegram looks bound to the wrong session key, run clawmonitor tree and follow the bound session instead of assuming agent:main:... is the active path.

  • If the problem is service-level, use the TUI System view and summarize risk, reclaimable memory estimate, and whether zombies/orphans were detected.

  • If the TUI is unavailable, fall back to clawmonitor status --format md --detail plus clawmonitor models --format md.

Reply guidelines

  • Prefer --format md outputs for IM replies.
  • If status shows DELIVERY_FAILED or NO_FEEDBACK, include the relevant sessionKey and recommend a report export next.
  • If token questions are time-windowed, mention whether the number is a current session snapshot or a 1d / 7d / 30d Gateway usage range.
  • Avoid pasting raw gateway logs unless the user asks; use clawmonitor report which redacts common secrets.
安全使用建议
This skill is coherent with its stated purpose, but before installing or letting an agent run it automatically: 1) confirm clawmonitor comes from a trusted source (check the GitHub homepage and PyPI package authors); 2) prefer installing in a venv or with pipx (as suggested) rather than system-wide; 3) be aware the tool reads local OpenClaw state (~/.openclaw/) which may contain session data you consider sensitive; and 4) avoid allowing an autonomous agent to perform package installs without explicit user approval.
功能分析
Type: OpenClaw Skill Name: claw-monitor Version: 0.1.3 The skill provides monitoring for OpenClaw sessions and model health using the `clawmonitor` CLI tool. It is classified as suspicious because it directs the AI agent to perform automated installation of external software via pip (`pip install -U clawmonitor`) and requires broad shell execution and file system access to `~/.openclaw/` and `~/.config/`. While these capabilities are plausibly needed for the stated purpose of system monitoring, they represent high-risk behaviors and potential supply-chain vulnerabilities without further verification of the external package.
能力评估
Purpose & Capability
Name/description match the required binary and the commands in SKILL.md. Requiring the clawmonitor executable and read access to ~/.openclaw/ is appropriate for an on-host monitor.
Instruction Scope
The instructions only run clawmonitor commands and reference OpenClaw state and the clawmonitor config path (~/.config/clawmonitor/config.toml). They do not ask the agent to read unrelated system files, network endpoints, or other services.
Install Mechanism
This is an instruction-only skill (no install spec), but SKILL.md recommends installing clawmonitor via pip/pipx/venv from PyPI. That is a typical install route for Python CLIs but carries the usual caution: pip installs arbitrary code from package indexes. The skill itself does not embed or fetch arbitrary URLs or packages.
Credentials
No environment variables or unrelated credentials are requested. The implicit requirement is read access to local OpenClaw state (~/.openclaw/) and the ability to run the local clawmonitor binary, which is proportional for a monitor.
Persistence & Privilege
always:false and no install-time changes are declared. The only persistent change the tool may perform is writing its own config under ~/.config/clawmonitor/, which the SKILL.md documents and marks safe to re-run.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install claw-monitor
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /claw-monitor 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.1.3
- Expanded skill description to include model health, token usage, and gateway service health monitoring. - Added instructions and options for checking model health with `clawmonitor models`. - Updated TUI section: now documents new inspection surfaces (Sessions, Models, System) and key shortcuts. - Added guidance on monitoring token usage over multiple time windows. - Improved Troubleshooting: covers model/provider path checks and system-level issues (memory, zombies/orphans). - Installation and command instructions revised for clarity and completeness.
v0.1.2
claw-monitor 0.1.2 - No changes detected in this version.
v0.1.1
ClawMonitor 0.1.1 adds preflight and troubleshooting guidance. - Added a "Preflight" section with steps to verify `clawmonitor` is installed and can read OpenClaw state. - Provided alternate installation methods (pipx, virtualenv) and environment notes for safer setup. - Listed notes about configuration file location and re-running `init`. - Introduced "Troubleshooting quick wins" to address common issues like DELIVERY_FAILED and routing confusion. - No core command changes; documentation improvements only.
v0.1.0
ClawMonitor 0.1.0 initial release: - Introduces `clawmonitor` CLI for monitoring OpenClaw sessions, including last messages, run state, delivery failures, and thread-routing. - Provides commands for status overviews, detailed session reports, tree view for session ownership, and an interactive TUI. - Includes "nudge" functionality to prompt agent progress responses. - Offers reply guidelines for reporting session status and handling delivery issues.
元数据
Slug claw-monitor
版本 0.1.3
许可证 MIT-0
累计安装 2
当前安装数 2
历史版本数 4
常见问题

Claw Monitor 是什么?

Use the `clawmonitor` CLI/TUI to inspect OpenClaw sessions, model health, token usage, and gateway service health. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 306 次。

如何安装 Claw Monitor?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install claw-monitor」即可一键安装,无需额外配置。

Claw Monitor 是免费的吗?

是的,Claw Monitor 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Claw Monitor 支持哪些平台?

Claw Monitor 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Claw Monitor?

由 bread time(@openclawq)开发并维护,当前版本 v0.1.3。

💬 留言讨论