← Back to Skills Marketplace
y-victor

Token-cost-calc

by Y-Victor · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ Security Clean
74
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install openai-newapi-calc-token
Description
Use when calculating, auditing, implementing, or reviewing token pricing and billing formulas for OpenAI-style APIs, NewAPI-compatible gateways, cached input...
Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install openai-newapi-calc-token
  3. After installation, invoke the skill by name or use /openai-newapi-calc-token
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
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.
Metadata
Slug openai-newapi-calc-token
Version 1.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is Token-cost-calc?

Use when calculating, auditing, implementing, or reviewing token pricing and billing formulas for OpenAI-style APIs, NewAPI-compatible gateways, cached input... It is an AI Agent Skill for Claude Code / OpenClaw, with 74 downloads so far.

How do I install Token-cost-calc?

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

Is Token-cost-calc free?

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

Which platforms does Token-cost-calc support?

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

Who created Token-cost-calc?

It is built and maintained by Y-Victor (@y-victor); the current version is v1.0.0.

💬 Comments