← 返回 Skills 市场
Token Usage Dashboard
作者
bkes994408-cmd
· GitHub ↗
· v1.0.0
· MIT-0
172
总下载
0
收藏
2
当前安装
1
版本数
在 OpenClaw 中安装
/install token-usage-dashboard
功能描述
Use CodexBar CLI local cost usage to summarize per-model usage for Codex or Claude, including the current (most recent) model or a full model breakdown. Trig...
安全使用建议
This package appears to do what it says: it runs the CodexBar CLI (or ingests an exported JSON) and builds a local dashboard. Before installing or running it: 1) Inspect the brew tap (steipete/tap) and the codexbar formula to ensure you trust that source. Adding a third‑party Homebrew tap can install arbitrary code. 2) Be aware the dashboard parses local LLM session logs (via CodexBar) and llmCalls can include raw prompt text — treat outputs and any generated summary files as sensitive. 3) Example alert configs include webhook URLs, but active dispatch is reportedly not implemented; nonetheless, check any alert/config you provide so you don't accidentally post sensitive data to external webhooks. 4) If you need to be extra cautious, run the scripts on exported JSON copies (not on live logs) in a controlled environment and review code before executing.
功能分析
Type: OpenClaw Skill
Name: token-usage-dashboard
Version: 1.0.0
The token-usage-dashboard skill bundle is a legitimate tool designed to visualize and manage LLM costs and usage patterns using data from the CodexBar CLI. The core logic in scripts/token_usage_dashboard.py and scripts/model_usage.py focuses on local data processing, including cost attribution, anomaly detection, and multi-tenant access control. The implementation demonstrates security awareness through the use of safe subprocess calls, XSS protection in the generated HTML dashboard, and automated anonymization of sensitive prompt data. No indicators of data exfiltration, malicious persistence, or unauthorized remote execution were found, and the bundle includes comprehensive unit tests and documentation.
能力评估
Purpose & Capability
Name/description (token usage dashboard) match the actual code and requirements: scripts call the CodexBar CLI, parse its local cost JSON, and build a dashboard. Required binary is only 'codexbar' and the SKILL.md/install specify the brew formula to provide it.
Instruction Scope
Runtime instructions and scripts invoke 'codexbar cost' (or accept a JSON file/stdin) and parse daily rows and per-call records including llmCalls/prompts. This is expected for a dashboard but means the tool will process local LLM session data (potentially including prompt text). No unexpected network exfiltration or external endpoints are invoked in the provided code; example configs contain webhook URLs but README states active dispatch is not implemented.
Install Mechanism
Install uses a brew formula from the steipete/tap tap. Installing a third-party Homebrew tap is a reasonable delivery mechanism for a macOS CLI, but it is a less-reviewed source than an official/homebrew-core package — verify the tap and formula before installing.
Credentials
No environment variables, credentials, or config paths are required by the skill itself. The code relies on CodexBar to read local logs (as documented). The set of requested access (codexbar CLI and optional input JSON files) is proportionate to the stated purpose.
Persistence & Privilege
Skill is not always-enabled and uses normal invocation. It does not request elevated system privileges or modify other skills. It runs local scripts and may open a browser to show generated HTML; nothing indicates persistent or escalated privileges.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install token-usage-dashboard - 安装完成后,直接呼叫该 Skill 的名称或使用
/token-usage-dashboard触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
- Initial release of the model-usage skill for summarizing per-model Codex or Claude usage via CodexBar CLI.
- Provides both current and all-model breakdowns using local cost logs.
- Supports output as plain text or pretty JSON, with scriptable CLI options and input flexibility.
- Only available on macOS (Darwin) with brew-based installation of CodexBar CLI.
- Offers clear guidance on usage, model selection logic, and references for further details.
元数据
常见问题
Token Usage Dashboard 是什么?
Use CodexBar CLI local cost usage to summarize per-model usage for Codex or Claude, including the current (most recent) model or a full model breakdown. Trig... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 172 次。
如何安装 Token Usage Dashboard?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install token-usage-dashboard」即可一键安装,无需额外配置。
Token Usage Dashboard 是免费的吗?
是的,Token Usage Dashboard 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Token Usage Dashboard 支持哪些平台?
Token Usage Dashboard 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(darwin)。
谁开发了 Token Usage Dashboard?
由 bkes994408-cmd(@bkes994408-cmd)开发并维护,当前版本 v1.0.0。
推荐 Skills