Skill flagged — suspicious patterns detected

ClawHub Security flagged this skill as suspicious. Review the scan results before using.

Token Tracker Pro

v2.2.0

记录和追踪 OpenClaw 会话的 token 消耗,提供每日、每周和累计统计,并提出节省 token 的建议

0· 170·0 current·0 all-time

Install

OpenClaw Prompt Flow

Install with OpenClaw

Best for remote or guided setup. Copy the exact prompt, then paste it into OpenClaw for longziruo-max/token-tracker-pro.

Previewing Install & Setup.
Prompt PreviewInstall & Setup
Install the skill "Token Tracker Pro" (longziruo-max/token-tracker-pro) from ClawHub.
Skill page: https://clawhub.ai/longziruo-max/token-tracker-pro
Keep the work scoped to this skill only.
After install, inspect the skill metadata and help me finish setup.
Use only the metadata you can verify from ClawHub; do not invent missing requirements.
Ask before making any broader environment changes.

Command Line

CLI Commands

Use the direct CLI path if you want to install manually and keep every step visible.

OpenClaw CLI

Bare skill slug

openclaw skills install token-tracker-pro

ClawHub CLI

Package manager switcher

npx clawhub@latest install token-tracker-pro
Security Scan
VirusTotalVirusTotal
Suspicious
View report →
OpenClawOpenClaw
Suspicious
medium confidence
Purpose & Capability
Skill 名称与主要代码(CLI、dashboard、hook、数据文件)一致:它记录会话 token、提供统计、在本地保存数据并提供可视化与推荐。可疑点:示例脚本与若干实现使用硬编码路径(/home/seelong/...)和向 PATH/.bashrc 写入的行为,超出了最小必要范围但与“全局 CLI / 快捷键”目标有一定合理性。
!
Instruction Scope
SKILL.md 与 INTEGRATION.md 建议通过在主程序中调用 hook 自动记录,且提到手动/交互式用法。实际代码(shortcut.ts)会自动写入 ~/.bashrc、创建 ~/.config/autostart/.desktop 文件、在 Windows 下写 AutoHotkey 脚本,并在 macOS 写 workflow 文件——这些文件/路径并未在元数据说明中列出,也没有明确要求用户确认。dashboard 在本地开服务(http://localhost:3000)并从本地 data 文件读取,未向外部服务器发送数据。总体上指令有“超出最小权限”的文件写入/系统配置更改。
Install Mechanism
Skill 为 instruction + 本地 Node.js/TypeScript 项目;没有声明自动下载任意可疑二进制或从外部私服提取代码。依赖通过 package.json(express、tsx 等),页面使用 Chart.js CDN(jsdelivr)。没有高风险的远程 extract/install 步骤在 install spec 中。
!
Credentials
元数据声明无需环境变量或凭据,但代码读取 process.env.HOME 和 process.env.APPDATA 并直接修改用户配置文件(~/.bashrc、~/.config/autostart、AutoHotkey 目录等)。虽然这些访问可以解释为实现全局快捷键与 CLI 的需要,但没有在 requires.env/required config paths 中声明,且修改用户 shell 配置和启动脚本属于高影响操作,应由用户显式批准并备份。
!
Persistence & Privilege
Skill 会创建持久化文件(data/token-history.json)并可安装自动启动/快捷键(.desktop、AutoHotkey 脚本、修改 .bashrc PATH),从而获得长期存在于用户环境中的能力。always:false(没有强制安装)减轻了风险,但写入用户启动配置与 PATH 修改是显著的持久性/权限更改,需谨慎。
What to consider before installing
要不要安装:如果你只是想本地统计 token,这个包在功能上匹配;但它会修改你的主目录配置(~/.bashrc、~/.config/autostart、Windows APPDATA 下的 AutoHotkey 脚本)并尝试把自己加入 PATH 和设置快捷键——这些改动没有在元数据里声明。建议在安装前: - 手动审查 shortcut.ts、token-tracker-hook.ts 和 token-tracker-cli.ts(确认要写入/修改的路径和行为)。 - 备份你的 shell 配置(~/.bashrc、~/.zshrc)和任何被改动的目录。不要接受自动 shortcut 安装,改为手动配置快捷键。 - 如果可能,先在隔离环境或临时账号中运行并观察(例如 Docker 或临时用户),确认没有意外行为。 - 注意示例脚本里有硬编码路径(/home/seelong/...),运行前替换为你的路径或删除示例中对绝对路径的引用。 - 如果你不需要全局快捷键,避免运行 npm run token:shortcuts / npx 指令,或者在源码中注释掉 shortcut.ts 的自动写入部分。 如果你希望我,我可以: - 列出 shortcut.ts 将写入的具体文件与修改行,或 - 帮你审查 token-tracker-hook.ts(如果提供其完整内容)以确认它如何读取会话上下文和估算 token。
bin/cli.js:15
Shell command execution detected (child_process).
cli.js:20
Shell command execution detected (child_process).
dashboard.ts:11
Environment variable access combined with network send.
!
dashboard.ts:2
File read combined with network send (possible exfiltration).
Patterns worth reviewing
These patterns may indicate risky behavior. Check the VirusTotal and OpenClaw results above for context-aware analysis before installing.

Like a lobster shell, security has layers — review code before you run it.

latestvk97dqdm80n9at7b89zh0t5atss83k3h6optimizationvk97dqdm80n9at7b89zh0t5atss83k3h6provk97dqdm80n9at7b89zh0t5atss83k3h6productivityvk97dqdm80n9at7b89zh0t5atss83k3h6tokenvk97dqdm80n9at7b89zh0t5atss83k3h6trackingvk97dqdm80n9at7b89zh0t5atss83k3h6
170downloads
0stars
3versions
Updated 1mo ago
v2.2.0
MIT-0

Token Tracker Pro

记录和追踪 OpenClaw 会话的 token 消耗,提供每日、每周和累计统计,并提出节省 token 的建议。

版本信息

  • 版本: 2.2.0
  • 发布日期: 2026-03-25
  • 作者: longziruo-max

主要功能

📊 实时 Token 追踪

  • 追踪每个会话的 token 消耗
  • 支持多种模型类型
  • 自动记录会话开始和结束

📈 统计分析

  • 每日统计:查看今天消耗的 token
  • 每周统计:查看本周累计消耗
  • 累计统计:查看历史总消耗

🎯 智能模型推荐

  • 分析你的使用模式
  • 推荐更经济的模型配置
  • 提供节省 token 的具体建议

💡 Token 优化

  • 基于使用习惯的分析
  • 提供可操作的建议
  • 帮助降低 token 成本

📊 可视化仪表板

  • Web 界面查看实时数据
  • 图表展示趋势
  • 历史数据查询

🔧 Web 界面查看

  • 启动本地服务器
  • 实时刷新(30秒)
  • 响应式设计

使用方法

命令行工具

# 查看今日统计
token-tracker today

# 查看本周统计
token-tracker w

# 查看累计统计
token-tracker a

# 查看历史记录
token-tracker h

# 查看节省建议
token-tracker s

# 交互式菜单
token-tracker i

# 导出数据
token-tracker export

# 清理历史
token-tracker cleanup

# 重置数据
token-tracker reset

npm scripts

cd ~/.openclaw/skills/token-tracker

npm run token:today    # 查看今日统计
npm run token:w        # 查看本周统计
npm run token:a        # 查看累计统计
npm run token:h        # 查看历史记录
npm run token:s        # 查看节省建议
npm run token:i        # 交互式菜单
npm run token:export   # 导出数据
npm run token:cleanup  # 清理历史
npm run token:reset    # 重置数据
npm run token:dashboard # 启动仪表板
npm run token:models   # 查看模型信息
npm run token:recommend # 获取推荐
npm run token:optimize # 优化建议

快捷键支持

Linux/macOS

# 设置快捷键
npm run token:shortcuts

# 快捷键列表
Ctrl+T: 查看今日统计
Ctrl+W: 查看本周统计
Ctrl+A: 查看累计统计
Ctrl+H: 查看历史记录
Ctrl+S: 查看节省建议
Ctrl+I: 交互式菜单

Windows

# 设置快捷键
npm run token:shortcuts

# 需要安装 AutoHotkey,然后运行生成的脚本

Web 仪表板

启动可视化仪表板查看实时数据:

# 启动仪表板
npm run token:dashboard

# 访问地址
http://localhost:3000

功能特性

  • 📊 实时统计(今日/本周)
  • 📈 趋势图表
  • 📊 模型分布图
  • 📜 历史记录
  • 💡 节省建议
  • ⚡ 自动刷新(30秒)

数据存储

Token 数据存储在 ~/.openclaw/skills/token-tracker/data/token-history.json

节省 Token 的建议

  • 使用 memory_search 而不是重复搜索
  • 使用 memory_get 获取特定部分
  • 避免重复读取 MEMORY.md
  • 合并多个工具调用
  • 减少日志输出
  • 使用更精确的搜索词
  • 定期清理不必要的历史

注意事项

  1. Token 记录是近似值,可能略有偏差
  2. 不同模型的 token 消耗不同
  3. 建议定期备份 token 历史数据
  4. 快捷键需要在系统设置中手动配置(部分系统)

技术栈

  • TypeScript
  • Node.js
  • Express

许可证

MIT

贡献

欢迎提交 Issue 和 Pull Request!

Comments

Loading comments...