← 返回 Skills 市场
odinbot33

OEE AI Cost Tracker

作者 OdinBot33 · GitHub ↗ · v1.0.0
cross-platform ✓ 安全检测通过
683
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install oee-ai-cost-tracker
功能描述
Tracks AI API usage by logging calls, reporting spending by model and period, and suggesting cheaper models to optimize costs.
安全使用建议
This skill is coherent and local-only, but review the following before installing: (1) It creates/updates usage.jsonl in the skill directory — ensure that file location is acceptable and not a shared/remote mount. Logged fields include description and taskType you pass; avoid logging full prompts or secrets. (2) pricing.json is static — verify prices are accurate for your providers and update as needed. (3) The cost estimates are local heuristics (not authoritative billing data) and unknown/unsupported model names return a $0 estimate. (4) There are minor robustness issues (e.g., a possible division-by-zero when all recorded costs are zero) — harmless but may raise errors on edge cases. If you accept local logging of usage and the minimal file writes, this skill is reasonable to use. If you need centralized or auditable billing, prefer vendor billing APIs rather than local estimates.
功能分析
Type: OpenClaw Skill Name: oee-ai-cost-tracker Version: 1.0.0 This skill bundle is designed to track AI API call costs locally. All files (Python scripts and JSON data) operate strictly within the skill's directory, reading from and writing to `usage.jsonl` and `pricing.json`. There are no network calls, no execution of arbitrary system commands, no attempts to access sensitive user data (like environment variables or credential files), and no obfuscation. The `SKILL.md` instructions for the agent are clear, directly related to the stated purpose, and do not contain any prompt injection attempts to manipulate the agent into unauthorized actions. The code is straightforward and aligns perfectly with its described functionality.
能力评估
Purpose & Capability
Name/description (track API usage, report spend, suggest cheaper models) match the provided files: tracker.py logs entries to a local JSONL file, report.py reads that file and pricing.json to produce reports and suggestions. No unrelated binaries, env vars, or external services are requested.
Instruction Scope
SKILL.md instructs importing log_usage and running report.py, which is exactly what the code implements. The runtime instructions only read/write local files in the skill directory (pricing.json and usage.jsonl). There are no directives to read other system files, environment variables, or send data to external endpoints.
Install Mechanism
No install spec; this is an instruction-only skill with small Python scripts that rely on the stdlib. No downloads, packages, or extraction steps are present.
Credentials
No environment variables, credentials, or config paths are required. The skill stores logs in a local usage.jsonl file and uses a local pricing.json; both are reasonable and proportionate for the stated purpose.
Persistence & Privilege
always is false and the skill does not request elevated or persistent platform privileges. It only creates/updates a usage.jsonl file alongside the code (normal for a local logger).
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install oee-ai-cost-tracker
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /oee-ai-cost-tracker 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
- Initial release of AI Cost Tracker by Odin's Eye Enterprises. - Log every AI API call with model, token counts, and cost to a JSONL file. - Generate spend reports by model, time period, and use case via command-line. - Get suggestions for cheaper model routing based on task complexity. - No external dependencies—Python 3.10+ standard library only. - Easy integration: import the logging library or use the CLI for reporting.
元数据
Slug oee-ai-cost-tracker
版本 1.0.0
许可证
累计安装 0
当前安装数 0
历史版本数 1
常见问题

OEE AI Cost Tracker 是什么?

Tracks AI API usage by logging calls, reporting spending by model and period, and suggesting cheaper models to optimize costs. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 683 次。

如何安装 OEE AI Cost Tracker?

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

OEE AI Cost Tracker 是免费的吗?

是的,OEE AI Cost Tracker 完全免费(开源免费),可自由下载、安装和使用。

OEE AI Cost Tracker 支持哪些平台?

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

谁开发了 OEE AI Cost Tracker?

由 OdinBot33(@odinbot33)开发并维护,当前版本 v1.0.0。

💬 留言讨论