Claw Monitor
Use the `clawmonitor` CLI to monitor OpenClaw sessions (last user/assistant messages, run state via locks, delivery failures, Telegram thread-binding routing).
Description
name: claw-monitor
description: Use the clawmonitor CLI to monitor OpenClaw sessions (last user/assistant messages, run state via locks, delivery failures, Telegram thread-binding routing).
homepage: https://github.com/openclawq/clawmonitor
metadata:
{
"openclaw":
{
"emoji": "🦞",
"requires": { "bins": ["clawmonitor"] }
},
}
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?”
Preconditions
- This skill runs on a machine that has OpenClaw state at
~/.openclaw/. clawmonitoris 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 clawmonitor
Alternative installs (cleaner / safer):
-
pipx(recommended when available):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
clawmonitoron the host first. clawmonitor initwrites config under~/.config/clawmonitor/config.tomland is safe to re-run.
Core commands
0) Tree view (who owns which sessions)
If you suspect ACP/subagent routing issues (e.g. Telegram thread bindings), start with:
clawmonitor tree
1) Status (Markdown)
Show the core status table (good default for IM replies):
clawmonitor status --format md
For a more verbose table including task/message previews:
clawmonitor status --format md --detail
2) Drill down on one session
Export a redacted report for a single session key:
clawmonitor report --session-key 'agent:main:main' --format md
2.5) TUI (interactive)
Full-screen monitor UI:
clawmonitor tui
Useful keys:
t: toggle tree/flat listr: refresh nowf: cycle refresh intervalEnter: nudge selected session?: help overlay
3) Nudge (ask the session to report progress)
Send a progress request into the session (this is a trigger message; the agent may reply to IM depending on routing/delivery):
clawmonitor nudge --session-key 'agent:main:main' --template progress
Troubleshooting quick wins
-
If
clawmonitor statusshowsDELIVERY_FAILED: export a report and check the redacted error + related logs.clawmonitor report --session-key 'agent:main:main' --format md -
If Telegram looks “bound” to the wrong sessionKey (ACP routing): run
clawmonitor tree, then monitor the bound session instead ofagent:main:.... -
If TUI is unavailable (non-interactive terminals): use
clawmonitor status --format md --detailfor a stable IM-friendly view.
Reply guidelines
- Prefer
--format mdoutputs for IM replies. - If status shows
DELIVERY_FAILEDorNO_FEEDBACK, include the relevant sessionKey and recommend areportexport next. - Avoid pasting raw gateway logs unless the user asks; use
clawmonitor reportwhich redacts common secrets.
Reviews (0)
No reviews yet. Be the first to review!
Comments (0)
No comments yet. Be the first to share your thoughts!