Skip to main content

Real-time OpenClaw session monitor (TUI) with Gateway log correlation and manual progress nudges.

Project description

ClawMonitor

English | 简体中文

Real-time OpenClaw session monitor with:

  • Per-session last inbound user message + last outbound assistant message (preview + timestamp)
  • Work state: WORKING / FINISHED / INTERRUPTED / NO_MESSAGE (+ NO_FEEDBACK alert)
  • Long-run visibility via *.jsonl.lock (works even if Gateway is down)
  • Optional Gateway log tail + channel runtime snapshot correlation (Feishu/Telegram-focused rules)
  • Full-screen TUI with manual “nudge” (send a progress request via chat.send)

Install (editable)

cd ~/program/clawmonitor
python3 -m pip install -e .

Install (PyPI)

pip install clawmonitor

Run

clawmonitor init
clawmonitor tui

Other commands:

clawmonitor snapshot --format json
clawmonitor snapshot --format md
clawmonitor nudge --session-key 'agent:main:main' --template progress
clawmonitor nudge --session-key 'agent:main:main' --template continue
clawmonitor push --session-key 'agent:main:main' --dry-run
clawmonitor status
clawmonitor status --detail
clawmonitor status --format json
clawmonitor status --format md
clawmonitor status --format md --detail
clawmonitor tree
clawmonitor report --session-key 'agent:main:main' --format both
clawmonitor watch --interval 1

Configuration

Default config path:

  • ~/.config/clawmonitor/config.toml

Example config is in config.example.toml.

Runtime data (NOT stored in this repo):

  • Logs: ~/.local/state/clawmonitor/events.jsonl
  • Reports: ~/.local/state/clawmonitor/reports/
  • Cache: ~/.cache/clawmonitor/

Keys (TUI)

  • ↑/↓: move selection
  • Enter: nudge selected session (choose template)
  • ?: show help overlay
  • t: toggle tree view (group by agent)
  • l: toggle related logs panel
  • d: re-run diagnosis for selected session
  • e: export a redacted report for selected session
  • r: force refresh
  • f: cycle refresh interval
  • q: quit

Rows are color-coded when your terminal supports colors (OK green, RUN cyan, IDLE yellow, ALERT red). In the details panel, Task: / Thinking: lines are highlighted (magenta when supported).

Telegram note: ACP “thread bindings”

OpenClaw can route a Telegram chat to a different session key via local thread bindings. This may make it look like your “main” session stopped receiving messages.

ClawMonitor detects this and flags it:

  • BOUND_OTHER in clawmonitor status
  • BIND in the TUI list

Relevant files/settings:

  • Thread bindings: ~/.openclaw/telegram/thread-bindings-default.json
  • Config toggle: ~/.openclaw/openclaw.jsonchannels.telegram.threadBindings.spawnAcpSessions

First run

If no config file exists, most commands will offer to run the init wizard (interactive terminals only).

See docs/launch-post.md for a longer intro.

Notes

  • ClawMonitor never prints or writes OpenClaw secrets. It avoids dumping openclaw.json and redacts suspicious token-like strings in logs/reports.
  • If Gateway is unreachable, ClawMonitor still works in offline mode (sessions/transcripts/locks/delivery-queue) but disables log tail + nudge.
  • If your terminal window is narrow, clawmonitor tui may hide the details panel; use clawmonitor status as a stable fallback.
  • For ClawHub import, see docs/clawhub-skill.md and skills/claw-monitor/SKILL.md.

See CONTRIBUTORS.md for acknowledgements.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

clawmonitor-0.1.4.tar.gz (43.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

clawmonitor-0.1.4-py3-none-any.whl (50.9 kB view details)

Uploaded Python 3

File details

Details for the file clawmonitor-0.1.4.tar.gz.

File metadata

  • Download URL: clawmonitor-0.1.4.tar.gz
  • Upload date:
  • Size: 43.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for clawmonitor-0.1.4.tar.gz
Algorithm Hash digest
SHA256 92bfcc91a223128bfc96966b85cf0c48ffd55d84250b37c651d33b41fb6e520f
MD5 ae78868f2d63c1df6ff77dc233950af0
BLAKE2b-256 fe3861f87f7f3941d1282fd39593696d0e0a2b6b745e1d8131f94377c8cab408

See more details on using hashes here.

Provenance

The following attestation bundles were made for clawmonitor-0.1.4.tar.gz:

Publisher: pypi-publish.yml on openclawq/clawmonitor

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file clawmonitor-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: clawmonitor-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 50.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for clawmonitor-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 20e716019a24a5cee323ec43a48746b1f524652df3516ee152121cc7d8db8409
MD5 3dd6c7b1d5a9fdc8e3523e553a035334
BLAKE2b-256 0991fda367b421b998d9a3126bab1350bb71dbd47dd7dcaea8dd78c68e1b9f4d

See more details on using hashes here.

Provenance

The following attestation bundles were made for clawmonitor-0.1.4-py3-none-any.whl:

Publisher: pypi-publish.yml on openclawq/clawmonitor

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page