← 返回 Skills 市场
501
总下载
1
收藏
2
当前安装
2
版本数
在 OpenClaw 中安装
/install token-cost-estimator
功能描述
Estimate API token costs from OpenClaw session transcripts. Analyzes all agent sessions to calculate what you'd pay on per-token pricing vs subscription plan...
安全使用建议
This skill is internally consistent with its purpose, but it reads your OpenClaw session transcripts (sensitive conversation data) from ~/.openclaw/agents. Before running: (1) inspect the provided Python script so you understand exactly what is read and what is output; (2) run it locally in a safe environment (don't pipe results to unknown services); (3) update pricing constants to current rates if you need accurate numbers; (4) be aware the script uses a rough token approximation (chars/4) and omits some internal system/tool tokens, so treat results as estimates; (5) avoid granting autonomous execution to this skill unless you trust it to run on your transcripts without exfiltrating them.
功能分析
Type: OpenClaw Skill
Name: token-cost-estimator
Version: 1.0.1
The OpenClaw skill 'token-cost-estimator' is benign. Its stated purpose is to estimate API token costs by analyzing local OpenClaw session transcripts. The Python script in `SKILL.md` correctly implements this by reading `.jsonl` files from `~/.openclaw/agents/<agent>/sessions/`. It performs no network operations, executes no external commands, and does not attempt to access or exfiltrate sensitive data. The markdown instructions are clear and do not contain any prompt injection attempts to mislead the AI agent into malicious actions.
能力评估
Purpose & Capability
The name/description match the instructions: the SKILL.md provides a Python script that reads OpenClaw session JSONL files from ~/.openclaw/agents/... and computes token/cost estimates. No unrelated credentials, binaries, or services are requested.
Instruction Scope
Instructions explicitly read user session transcripts from ~/.openclaw/agents/<agent>/sessions/*.jsonl and compute estimates locally. This is expected for the stated purpose but entails accessing potentially sensitive conversation data; the script does not instruct any network exfiltration, but outputs should be handled carefully.
Install Mechanism
No install spec or code files beyond the SKILL.md; the skill is instruction-only and does not download or install external artifacts.
Credentials
No environment variables, credentials, or config paths are required beyond the explicit session file path. Access to the user's home session files is proportional to the cost-estimation purpose, though it is sensitive data.
Persistence & Privilege
The skill is not marked always:true and does not request system-wide changes. Model invocation is allowed (platform default), which means the agent could run the instructions autonomously if permitted — combine that with transcript access only if you trust the skill.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install token-cost-estimator - 安装完成后,直接呼叫该 Skill 的名称或使用
/token-cost-estimator触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.1
- Fixed a bug in the estimation script where the total input/output token counters did not include per-agent totals in the grand total.
- Token cost estimations now accurately reflect all agent session data combined.
- Minor script adjustments to improve clarity of total cost output.
v1.0.0
Initial release of Token Cost Estimator for OpenClaw sessions:
- Estimates API token costs by analyzing local agent session transcripts.
- Differentiates input/output token costs and accounts for context re-sending in conversations.
- Considers caching effects with adjustable cache hit rates for realistic billing.
- Compares estimated API costs to popular subscription plans for easy break-even analysis.
- Provides practical guidance on API cost estimation accuracy and transcript limitations.
元数据
常见问题
Token Cost Estimator 是什么?
Estimate API token costs from OpenClaw session transcripts. Analyzes all agent sessions to calculate what you'd pay on per-token pricing vs subscription plan... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 501 次。
如何安装 Token Cost Estimator?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install token-cost-estimator」即可一键安装,无需额外配置。
Token Cost Estimator 是免费的吗?
是的,Token Cost Estimator 完全免费(开源免费),可自由下载、安装和使用。
Token Cost Estimator 支持哪些平台?
Token Cost Estimator 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Token Cost Estimator?
由 npfaerber(@npfaerber)开发并维护,当前版本 v1.0.1。
推荐 Skills