← 返回 Skills 市场
y-victor

Token-cost-calc

作者 Y-Victor · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
74
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install openai-newapi-calc-token
功能描述
Use when calculating, auditing, implementing, or reviewing token pricing and billing formulas for OpenAI-style APIs, NewAPI-compatible gateways, cached input...
安全使用建议
This skill appears coherent and safe from a packaging standpoint. Before installing, consider: (1) verify inputs you pass (token counts, price tables, recharge ratios) come from trusted sources—this skill will compute based on whatever numbers it receives; (2) review and test edge cases (zero and negative tokens, division-by-zero for rechargeRatio) as the checklist suggests; (3) if you dislike autonomous invocation, keep the skill user-invocable only or disable autonomous use in agent settings; and (4) if you integrate these formulas into production billing, add unit tests and compare results against the official provider billing docs to ensure no subtle mismatch in units or quotas.
功能分析
Type: OpenClaw Skill Name: openai-newapi-calc-token Version: 1.0.0 The skill bundle provides legitimate instructions and formulas for calculating API token costs across different billing models (OpenAI, NewAPI, and custom multipliers). The files (SKILL.md and references/formulas.md) contain purely mathematical logic and a safe JavaScript calculation snippet with no evidence of data exfiltration, malicious execution, or harmful prompt injection.
能力评估
Purpose & Capability
The name and description match the actual content: formulas, rules, and examples for OpenAI-style and NewAPI-style token/quota pricing. The skill does not request unrelated credentials, binaries, or config paths.
Instruction Scope
SKILL.md stays on-topic: it contains step-by-step formulas, normalization rules, a verification checklist, common mistakes, and refers only to the included references/formulas.md. It does not instruct the agent to read unrelated files, contact external endpoints, or access environment variables.
Install Mechanism
No install spec or code files that would be downloaded or executed are present. This instruction-only skill writes nothing to disk and has minimal surface area.
Credentials
The skill declares no required environment variables or credentials. That is proportionate for a calculation/audit skill which only needs numeric inputs from the user at runtime.
Persistence & Privilege
always is false (default) and the skill does not request persistent system-wide configuration or modification of other skills. Autonomous invocation is allowed by default, which is normal for skills and not by itself a concern.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install openai-newapi-calc-token
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /openai-newapi-calc-token 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
- Initial release of token-cost-skill. - Supports calculating and reviewing token billing for OpenAI-style APIs and NewAPI-compatible gateways. - Differentiates between raw pricing, quota-based billing, and dashboard-specific cost projections. - Provides core rules to avoid double-counting cached tokens and to prevent mixing incompatible pricing units. - Includes detailed formulas, verification checklist, and common mistake handling for accurate token billing.
元数据
Slug openai-newapi-calc-token
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Token-cost-calc 是什么?

Use when calculating, auditing, implementing, or reviewing token pricing and billing formulas for OpenAI-style APIs, NewAPI-compatible gateways, cached input... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 74 次。

如何安装 Token-cost-calc?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install openai-newapi-calc-token」即可一键安装,无需额外配置。

Token-cost-calc 是免费的吗?

是的,Token-cost-calc 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Token-cost-calc 支持哪些平台?

Token-cost-calc 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Token-cost-calc?

由 Y-Victor(@y-victor)开发并维护,当前版本 v1.0.0。

💬 留言讨论