← Back to Skills Marketplace
683
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install oee-ai-cost-tracker
Description
Tracks AI API usage by logging calls, reporting spending by model and period, and suggesting cheaper models to optimize costs.
Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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).
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install oee-ai-cost-tracker - After installation, invoke the skill by name or use
/oee-ai-cost-tracker - Provide required inputs per the skill's parameter spec and get structured output
Version History
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.
Metadata
Frequently Asked Questions
What is OEE AI Cost Tracker?
Tracks AI API usage by logging calls, reporting spending by model and period, and suggesting cheaper models to optimize costs. It is an AI Agent Skill for Claude Code / OpenClaw, with 683 downloads so far.
How do I install OEE AI Cost Tracker?
Run "/install oee-ai-cost-tracker" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is OEE AI Cost Tracker free?
Yes, OEE AI Cost Tracker is completely free (open-source). You can download, install and use it at no cost.
Which platforms does OEE AI Cost Tracker support?
OEE AI Cost Tracker is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created OEE AI Cost Tracker?
It is built and maintained by OdinBot33 (@odinbot33); the current version is v1.0.0.
More Skills