@vivekchand

ClawMetry Plugin

ClawMetry observability plugin for OpenClaw — real-time dashboard for token usage, costs, tool calls, sessions, and memory. Local + optional E2E encrypted cloud sync.

Current version
v1.2.1
code-pluginCommunitysource-linked

ClawMetry — OpenClaw Observability Plugin

ClawMetry is the observability dashboard for OpenClaw AI agents. It gives you real-time visibility into token usage, API costs, tool calls, session timelines, memory, and cron jobs — all in a local dashboard at http://localhost:8900.

Zero configuration required. ClawMetry auto-detects your OpenClaw setup and starts streaming live telemetry the moment it starts.

Install

Via ClawHub (recommended)

openclaw plugins install clawmetry

Via curl

curl -fsSL https://clawmetry.com/install.sh | bash

Via pip (standalone)

pip install clawmetry && clawmetry

How it works

When installed as an OpenClaw plugin, ClawMetry:

  1. Subscribes to diagnostic events — model usage, tool calls, session lifecycle, message flow
  2. Manages the dashboard process — auto-starts with OpenClaw, auto-stops on shutdown
  3. Buffers and forwards telemetry — batched HTTP delivery to the local dashboard
  4. Ships a bundled skill — teaches agents to be cost-aware and reference the dashboard

Plugin hooks used

HookPurpose
onDiagnosticEventToken usage, costs, session state, heartbeats
registerLogTransportGateway log forwarding to dashboard log viewer

Dashboard features

  • Overview — active sessions, total costs, token usage, system health
  • Sessions — per-session breakdown with transcript viewer
  • Brain — live feed of every LLM call (model, tokens, latency)
  • Flow — animated architecture diagram showing real-time data flow
  • Memory — workspace memory file viewer
  • Crons — scheduled job status and history
  • Usage — per-model cost tracking over time
  • Alerts — budget alerts and anomaly detection

Configuration

In your OpenClaw config (~/.openclaw/openclaw.json):

{
  "plugins": {
    "allow": ["clawmetry"],
    "entries": {
      "clawmetry": {
        "enabled": true,
        "port": 8900,
        "host": "127.0.0.1",
        "autoStart": true,
        "cloudSync": false,
        "apiKey": "cm-..."
      }
    }
  }
}

Options

OptionDefaultDescription
port8900Dashboard port
host127.0.0.1Bind address (0.0.0.0 for LAN access)
autoStarttrueStart dashboard with OpenClaw
cloudSyncfalseEnable encrypted sync to clawmetry.com
apiKeyClawMetry Cloud API key (optional)

Cloud Sync

Optional E2E encrypted sync to clawmetry.com for remote monitoring:

clawmetry connect

Your encryption key never leaves your machine. Data is AES-256-GCM encrypted before transmission.

Standalone usage

ClawMetry also works without the plugin — as a standalone pip install:

pip install clawmetry
clawmetry

In standalone mode, it reads OpenClaw's JSONL session files and logs directly from the filesystem. The plugin mode adds real-time diagnostic event streaming for richer telemetry.

Links

License

MIT

Source and release

Source repository

vivekchand/clawmetry

Open repo

Source commit

a6ae86dfbea5572b970d142081d63cdf59b9d77e

View commit

Install command

openclaw plugins install clawhub:clawmetry-plugin

Metadata

  • Package: clawmetry-plugin
  • Created: 2026/04/24
  • Updated: 2026/04/24
  • Executes code: Yes
  • Source tag: a6ae86dfbea5572b970d142081d63cdf59b9d77e

Compatibility

  • Built with OpenClaw: 2026.4.20
  • Plugin API range: >=2026.4.20
  • Tags: latest
  • Files: 18