npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

clawd-monitor-agent

v0.1.0

Published

Lightweight agent that pushes OpenClaw instance data to clawd-monitor

Readme

clawd-monitor-agent

Push-based monitoring agent for clawd-monitor.

Runs on each OpenClaw host, connects outbound to a central clawd-monitor dashboard, and pushes live snapshots every 5 seconds — no inbound ports required on the agent host.

What it collects

| Data | Description | |------|-------------| | Sessions | Active OpenClaw sessions (read from local JSONL files) | | Cron Jobs | Scheduled jobs with next/last run times | | CPU + RAM | System metrics via /proc | | Memory files | MEMORY.md, CURRENT.md, today's daily log | | Docker containers | Running containers, state, uptime, restarts | | Session messages | Last 5 messages per session (embedded in snapshot) |

Install

One-line installer (recommended)

On the host you want to monitor (Debian/Ubuntu, root):

curl -fsSL https://raw.githubusercontent.com/LanNguyenSi/clawd-monitor-agent/master/install.sh \
  | sudo bash -s -- \
      --server wss://your-clawd-monitor-domain \
      --token <agent-token-from-settings>

Installs Node 18+ (via NodeSource if needed), the clawd-monitor-agent npm package, a dedicated clawd-agent system user, a config at /etc/clawd-monitor-agent/config.json (mode 0640), and a hardened systemd unit. Re-running with the same args is an idempotent restart; re-running with a different --token rotates the token. The token is never echoed to stdout and is not embedded in the unit file.

Full flag list: bash install.sh --help.

Manual install

npm install -g clawd-monitor-agent

Usage

clawd-monitor-agent \
  --server https://your-clawd-monitor-domain \
  --token <agent-token-from-settings> \
  --name "My OpenClaw Host" \
  --gateway http://localhost:18789

Get the token from the clawd-monitor Settings page (Settings → Agent Tokens → Generate).

Options

| Flag | Default | Description | |------|---------|-------------| | --server | — | clawd-monitor URL (required) | | --token | — | Agent token from Settings (required) | | --name | hostname | Display name in dashboard | | --gateway | http://localhost:18789 | OpenClaw gateway URL | | --gateway-token | — | OpenClaw gateway auth token | | --clawd-dir | ~/.openclaw/workspace | Path to OpenClaw workspace | | --interval | 5000 | Snapshot push interval (ms) | | --config | — | Path to JSON config file |

Config file

{
  "server": "https://your-clawd-monitor-domain",
  "token": "<agent-token>",
  "name": "My OpenClaw Host",
  "gateway": {
    "url": "http://localhost:18789"
  },
  "collect": {
    "sessions": true,
    "cron": true,
    "metrics": true,
    "memory": true,
    "docker": true
  },
  "intervalMs": 5000
}

As a systemd service

[Unit]
Description=clawd-monitor agent
After=network.target

[Service]
ExecStart=/usr/bin/clawd-monitor-agent \
  --server https://your-clawd-monitor-domain \
  --token <agent-token> \
  --name "My OpenClaw Host" \
  --gateway http://localhost:18789
Restart=always
RestartSec=10

[Install]
WantedBy=multi-user.target

Changelog

See CHANGELOG.md for the per-release notes.


Part of the clawd-monitor ecosystem