← Back to Skills Marketplace
vanthienha199

Smart Cost Tracker

by Ha Le · GitHub ↗ · v1.0.1 · MIT-0
cross-platform ✓ Security Clean
138
Downloads
0
Stars
0
Active Installs
2
Versions
Install in OpenClaw
/install smart-cost-tracker
Description
Track AI agent spending in real time. Shows cost per message, per conversation, per day. Budget alerts, daily/weekly reports, cost-per-task breakdown. Use wh...
Usage Guidance
This skill appears to be what it claims: a local cost estimator that writes a JSON log at ~/.openclaw/cost-log.json and needs access to the conversation text to estimate token counts. Before installing or enabling: (1) confirm the runtime will not persist full message text (only metadata) if you care about privacy; (2) check file permissions on ~/.openclaw/cost-log.json or store it on encrypted disk if your machine is shared; (3) remember pricing is an estimate—update the model pricing in the SKILL.md if your provider's rates differ; (4) because it's instruction-only, review your agent runtime to ensure no other skill or component can read/forward the cost-log (the SKILL.md itself does not send data externally). If any of these are unacceptable, disable or do not enable tracking.
Capability Analysis
Type: OpenClaw Skill Name: smart-cost-tracker Version: 1.0.1 The smart-cost-tracker skill is a utility designed to monitor and report AI API usage costs locally. It instructions the agent to maintain a log file at `~/.openclaw/cost-log.json` and explicitly states that no data should be sent to external services. The logic is transparent, focuses solely on cost estimation and budget alerting, and contains no evidence of malicious intent, data exfiltration, or unauthorized execution.
Capability Assessment
Purpose & Capability
Name and description match the instructions: the skill calculates/estimates per-message and aggregated costs and writes a local cost log. It does not request unrelated credentials, binaries, or installs.
Instruction Scope
Instructions stay within the declared purpose: estimate tokens, compute costs, and maintain ~/.openclaw/cost-log.json. The skill necessarily needs access to conversation prompts/responses to estimate token counts; the SKILL.md does not instruct storing full message text (log schema shows metadata only), but implementers could store more—users should confirm the runtime will not persist full messages.
Install Mechanism
No install spec or code files are present (instruction-only). Nothing is downloaded or written to disk by an installer beyond the described cost-log file created at runtime.
Credentials
No environment variables or credentials are requested, which is proportional. The skill writes to the user's home directory (~/.openclaw/cost-log.json) and needs access to conversation text to estimate tokens — both are expected for this purpose. Users should be aware that the log may contain task names/session metadata that could be sensitive.
Persistence & Privilege
always is false and the skill is user-invocable; it only persists its own local cost-log. It does not request system-wide config changes or elevated privileges.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install smart-cost-tracker
  3. After installation, invoke the skill by name or use /smart-cost-tracker
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.1
- Cost tracking is now user-controlled: you must enable or disable tracking explicitly. - Added clear data storage disclosure: spending history is only stored locally and never sent externally. - Introduced new commands: "Start tracking"/"Stop tracking" to enable or pause logging at any time. - Tracking and cost log updates only occur when the feature is enabled, giving users more privacy and control. - All original features and commands for reports, trends, and budget alerts remain unchanged.
v1.0.0
smart-cost-tracker v1.0.0 - Initial release: Track AI agent spending in real time, providing per-message, per-conversation, daily, and weekly cost breakdowns. - Supports budget alerts and automatic daily/weekly reports. - Maintains a local cost log tracking tokens, models, tasks, and spending history. - Offers commands for quick cost queries, budget management, and cost trends. - All data is stored locally for privacy; no external data transmission.
Metadata
Slug smart-cost-tracker
Version 1.0.1
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 2
Frequently Asked Questions

What is Smart Cost Tracker?

Track AI agent spending in real time. Shows cost per message, per conversation, per day. Budget alerts, daily/weekly reports, cost-per-task breakdown. Use wh... It is an AI Agent Skill for Claude Code / OpenClaw, with 138 downloads so far.

How do I install Smart Cost Tracker?

Run "/install smart-cost-tracker" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Smart Cost Tracker free?

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

Which platforms does Smart Cost Tracker support?

Smart Cost Tracker is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Smart Cost Tracker?

It is built and maintained by Ha Le (@vanthienha199); the current version is v1.0.1.

💬 Comments