← 返回 Skills 市场
Token Cost Time
作者
highnoonoffice
· GitHub ↗
· v0.1.3
· MIT-0
77
总下载
0
收藏
0
当前安装
3
版本数
在 OpenClaw 中安装
/install token-cost-time
功能描述
Estimate LLM task token usage, cost, and duration using rule-based classification and optional local profile data without external dependencies.
安全使用建议
This skill is internally consistent and runs entirely locally, but before installing: 1) Review and accept that it will write two files under your home directory (~/.token-cost-time/profile.json and execution-log.jsonl). Those logs contain model names, token counts, durations, costs, retries, and timestamps (they do not include prompt text or model outputs). 2) If you wire automation (cron or agent hooks) to call record(), ensure that automation does not capture or write sensitive prompt or output content into these logs. 3) The package.json in the bundle lists version 0.1.0 while registry metadata is 0.1.3 — consider verifying source/origin and integrity if provenance matters. 4) Because this runs as Node code, inspect the shipped files yourself or run in an isolated environment if you have heightened security/privacy requirements.
功能分析
Type: OpenClaw Skill
Name: token-cost-time
Version: 0.1.3
The skill bundle is a utility for estimating and tracking LLM token usage, costs, and durations. It operates entirely locally using Node.js built-ins, storing profile and log data in the user's home directory (~/.token-cost-time/). Analysis of the source code (src/record.js, src/models.js) and documentation (SKILL.md) confirms the tool has no external dependencies, makes no network calls, and contains no evidence of malicious intent or high-risk vulnerabilities.
能力评估
Purpose & Capability
Name/description match the actual code: rule-based classification, baseline priors, cost calculation, local recording, and a CLI. The files and functions provided (calibrate, record, compare) are exactly what the README claims. No unrelated binaries or credentials are requested.
Instruction Scope
SKILL.md and the CLI limit operations to classification, estimation, and local recording. The README suggests wiring a cron that reads 'session_status' to auto-record runs — that integration may read other session metadata in your environment. The skill itself does not collect prompts or outputs, only model name, token counts, duration, cost, retries, and timestamps. Confirm any automated integration does not forward sensitive prompt/content to the logs.
Install Mechanism
No install spec or network downloads; this is a local JS module intended to run with Node (>=18). All source files are included and use Node built-ins only. No remote code fetching or archive extraction is present.
Credentials
The skill requires no environment variables, no credentials, and no special config paths beyond writing to files under the user's home directory (default: ~/.token-cost-time/). That file access is proportional to the purpose (local profile + execution log).
Persistence & Privilege
Does not request always:true or elevated privileges. It persists its own profile and log under ~/.token-cost-time and does not modify other skills or system-wide agent configuration.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install token-cost-time - 安装完成后,直接呼叫该 Skill 的名称或使用
/token-cost-time触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.1.3
Now ships full source. calibrate, record, compare, classify, CLI — all included. Install and run immediately.
v0.1.2
Removed scanner-triggering patterns from docs. No functional changes.
v0.1.1
Pre-execution LLM estimator. Rule-based task classifier, baseline priors for 8 models, per-user calibration via record(). Self-improving: estimates tune to your actual workload over time. Includes self-improvement guide.
元数据
常见问题
Token Cost Time 是什么?
Estimate LLM task token usage, cost, and duration using rule-based classification and optional local profile data without external dependencies. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 77 次。
如何安装 Token Cost Time?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install token-cost-time」即可一键安装,无需额外配置。
Token Cost Time 是免费的吗?
是的,Token Cost Time 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Token Cost Time 支持哪些平台?
Token Cost Time 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Token Cost Time?
由 highnoonoffice(@highnoonoffice)开发并维护,当前版本 v0.1.3。
推荐 Skills