ClawMetry is an open-source, real-time observability dashboard for OpenClaw AI agents. pip install clawmetry && clawmetry — that's it.
See ARCHITECTURE.md for the full deep dive. TL;DR:
- Single Python file (
dashboard.py, ~11,600 lines) — Flask app with embedded HTML/CSS/JS - Zero config — auto-detects OpenClaw workspace, gateway, sessions, logs
- Read-only — reads OpenClaw's filesystem + connects to gateway WebSocket
- No database — optional
history.pyadds SQLite time-series
dashboard.py— The entire dashboard (server + frontend)history.py— Optional time-series history module (SQLite)setup.py— PyPI package configpackages/clawmetry/— pip package wrapperclawmetry-landing/— Marketing website (clawmetry.com) [legacy, moved to separate repo]ARCHITECTURE.md— Detailed architecture guideCHANGELOG.md— Version historyCONTRIBUTING.md— Contribution guidelines
- Reads session transcripts from
~/.openclaw/agents/main/sessions/*.jsonl - Connects to OpenClaw gateway via WebSocket (JSON-RPC) for live data
- Optionally receives OpenTelemetry metrics/traces on
/v1/metricsand/v1/traces - Serves dashboard UI at
http://localhost:8900
/api/overview— Main dashboard data (sessions, tokens, crons, health)/api/sessions— Active session list/api/subagents— Sub-agent tracker with status and costs/api/transcript/<id>— Full session transcript/api/usage— Token and cost analytics/api/crons— Cron job management/api/system-health— Disk, memory, uptime, GPU/api/nodes— Multi-node fleet view/api/budget/*— Budget monitoring and alerts/api/alerts/*— Custom alert rules
pip install flask
python dashboard.py --workspace ~/your-openclaw-workspacePyPI: pip install clawmetry && clawmetry
Current version: check __version__ in dashboard.py
- Edit
dashboard.py - Run locally:
python dashboard.py - Open
http://localhost:8900 - The frontend is embedded — edit the HTML template strings in the Python file
- Single file — don't split dashboard.py into modules. The single-file design is intentional for portability.
- Minimal dependencies — Flask only. Don't add heavy libraries.
- Embedded frontend — HTML/CSS/JS lives inside Python template strings. No build step.
- Read-only by default — ClawMetry observes, it doesn't modify agent behavior (except cron management via gateway RPC).
- Auto-detect everything — users should never need to configure anything manually.