‹ 首页

claw-monitor

@openclawq · 收录于 1 周前 · 上游提交 3 个月前

Use the `clawmonitor` CLI/TUI to inspect OpenClaw sessions, model health, token usage, and gateway service health.

适合你,如果管理 OpenClaw 服务并需要实时查看运行状态

/ 通过 npx 安装 校验哈希
npx oh-my-skill add openclawq/clawmonitor/claw-monitor
/ 通过 bash 安装
curl -fsSL https://oh-my-skill.com/install.sh | bash -s -- openclawq/clawmonitor/claw-monitor
/ 已经装过?验证本机副本,不用重装
npx oh-my-skill verify openclawq/clawmonitor/claw-monitor
安装目标可用 --agent / --scope 或 --to 明确指定;省略时只会在唯一已存在的 agent 目录上自动选择,零命中或多命中会停止并提示。content_hash 缺失或不一致均拒装。
40GitHub stars
~936上下文体积 · 单文件
索引托管

怎么用

商店整理自技能原文 · 版本 a54c680 · 表述以原文为准
它做什么

装上后,Claude 可以运行 clawmonitor 命令来查看 OpenClaw 会话状态、模型健康度、令牌用量和网关服务健康度,并以 Markdown 表格或 TUI 界面展示结果。

什么时候触发

当用户询问代理是否完成、会话状态、模型故障或令牌消耗等问题时触发。

装好后可以这样说
技能原文 SKILL.md作者撰写 · MIT · a54c680

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:

``bash pipx install clawmonitor ``

  • Virtualenv:

``bash 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:

``bash 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.
按 MIT 许可原样转载,未经改动 · 在 GitHub 查看 →

评论

登录即可评论;带「已验证安装」的,是发布者名下有本店的安装或持有记录。