← Back to Skills Marketplace
ddaekeu3-cyber

Token Watchdog

by ddaekeu3-cyber · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
116
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install token-watchdog
Description
Monitors OpenClaw agent token spend per session and alerts via Telegram when cost exceeds estimated budget (2x threshold). Prevents runaway debugging loops f...
Usage Guidance
This skill appears to implement a legitimate cost-watching feature, but treat it as suspicious because it will read your full OpenClaw session logs and sends alerts to a hard-coded Telegram target and its SKILL.md recommends downloading an executable from a third-party GitHub Pages URL. Before installing: 1) Review the full token-watchdog.mjs source yourself (or ask someone you trust) to confirm exactly what it sends. 2) Replace the hard-coded CONFIG.telegramTarget with your own configured target or require the skill to read the target from a local config/env var you control. 3) Avoid running the curl install from the external URL; prefer installing the version packaged in the registry or copy a vetted local copy. 4) Run first in a restricted/test environment since session files may include prompts, responses, or secrets you don't want transmitted. 5) If you don't want any possibility of remote recipients receiving your session data, do not install or run this skill until the hard-coded recipient and remote-install recommendation are removed. If you want help, I can point out the exact lines to change to make the Telegram target configurable and to remove the external-download recommendation.
Capability Analysis
Type: OpenClaw Skill Name: token-watchdog Version: 1.0.0 The skill bundle contains a hardcoded Telegram recipient ID (8616468733) in token-watchdog.mjs, which causes session metadata and task descriptions to be exfiltrated to a specific external account rather than the user's own. Additionally, SKILL.md promotes a high-risk installation method via curl from an unverified GitHub Pages domain (ddaekeu3-cyber.github.io). While the script performs its stated function of monitoring token costs, the hardcoded 'phone-home' mechanism and remote script execution instructions are significant red flags.
Capability Assessment
Purpose & Capability
Name/description match behavior: the code reads OpenClaw .jsonl session files, estimates cost, polls, sends Telegram alerts and requests the agent be paused. All of these are coherent with a 'token watchdog' purpose.
Instruction Scope
SKILL.md and the code limit actions to reading session .jsonl files in ~/.openclaw/agents/main/sessions, logging state, and calling the openclaw CLI to send Telegram messages and pause the agent. That scope is consistent with the stated purpose, but reading session files means the tool has access to full session messages (prompts, responses, possibly secrets), which SKILL.md does not explicitly warn about.
Install Mechanism
Although the registry includes the code, SKILL.md recommends a curl download from https://ddaekeu3-cyber.github.io/... which is a third-party GitHub Pages host. Direct downloading and saving an executable script from an external URL increases risk because the hosted file can be changed independently of the registry and will be executed locally.
Credentials
The skill does not request environment variables, but the code hard-codes CONFIG.telegramTarget = '8616468733'. That means session-derived data (task descriptions and derived alerts) will be sent to that fixed Telegram target via the user's openclaw messaging channel. Sending potentially sensitive session contents to a developer/third-party ID without user configuration is disproportionate and could exfiltrate secrets or private prompts.
Persistence & Privilege
The skill is not always-enabled, does not modify other skills, and only writes state/log files to its own ~/.openclaw/workspace/memory directory. It invokes the openclaw CLI to pause the agent, which is consistent with its watchdog role. No elevated or cross-skill privileges are requested.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install token-watchdog
  3. After installation, invoke the skill by name or use /token-watchdog
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
Initial release — session-based OpenClaw cost monitor with Telegram alerts. Stops runaway debug loops.
Metadata
Slug token-watchdog
Version 1.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is Token Watchdog?

Monitors OpenClaw agent token spend per session and alerts via Telegram when cost exceeds estimated budget (2x threshold). Prevents runaway debugging loops f... It is an AI Agent Skill for Claude Code / OpenClaw, with 116 downloads so far.

How do I install Token Watchdog?

Run "/install token-watchdog" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Token Watchdog free?

Yes, Token Watchdog is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Token Watchdog support?

Token Watchdog is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Token Watchdog?

It is built and maintained by ddaekeu3-cyber (@ddaekeu3-cyber); the current version is v1.0.0.

💬 Comments