← Back to Skills Marketplace
Openclaw Cost Tracker
by
Paul Frederiksen
· GitHub ↗
· v1.1.3
· MIT-0
826
Downloads
1
Stars
9
Active Installs
4
Versions
Install in OpenClaw
/install openclaw-cost-tracker
Description
Track OpenClaw token usage and API costs from local session data. Prefer openclaw-cost-diff for current cost analysis and window-over-window comparison acros...
Usage Guidance
This skill appears to do what it claims: read local OpenClaw session JSONL files and produce cost/token reports. Before running: (1) Inspect the bundled scripts (you already have the source) and run them as a non-root user where possible; (2) adjust example absolute paths in SKILL.md to match your environment (the examples use /root/...); (3) if you plan to use cron, ensure the output destination is secure and does not leak to remote endpoints; (4) if you expect to use the preferred 'openclaw-cost-diff' tool, install it from a trusted source rather than running anything fetched from an unknown URL. If you want additional assurance, run the script in a sandbox or container on a copy of your agents directory first.
Capability Analysis
Type: OpenClaw Skill
Name: openclaw-cost-tracker
Version: 1.1.3
The skill is a utility for tracking OpenClaw token usage and API costs by parsing local session logs. The primary script, `scripts/cost_tracker.py`, is a straightforward Python tool that aggregates data from JSONL files in the user's home directory without any network activity, obfuscation, or access to sensitive system files. While the documentation (SKILL.md and README.md) references an external binary (`openclaw-cost-diff`) and hardcoded root paths, these appear to be environment-specific configurations rather than indicators of malicious intent.
Capability Assessment
Purpose & Capability
Name/description match the included artifacts: SKILL.md and the bundled Python fallback both read local OpenClaw session data and compute token/cost breakdowns. The preferred external tool (openclaw-cost-diff) is optional and consistent with the description.
Instruction Scope
Instructions and the script operate on local session JSONL files under an agents directory (~/.openclaw/agents or OPENCLAW_HOME/agents). Example invocations use absolute root paths (e.g., /root/.openclaw/venvs/...) which are examples only — users should adjust to their environment. The runtime instructions do not instruct reading unrelated system files, exfiltrating data, or calling external endpoints.
Install Mechanism
No install spec is provided (instruction-only skill with a bundled script). Nothing is downloaded or executed from remote URLs by the skill itself.
Credentials
The skill declares no required environment variables or credentials. The script optionally respects OPENCLAW_HOME to discover agents, which is appropriate and proportionate to its file-discovery behavior.
Persistence & Privilege
Skill is not always-enabled and does not request elevated or persistent platform privileges. It does not modify other skills or system settings.
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install openclaw-cost-tracker - After installation, invoke the skill by name or use
/openclaw-cost-tracker - Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.1.3
Prefer openclaw-cost-diff workflow, add updated local usage guidance, keep cost_tracker.py as fallback
v1.1.2
- Updated documentation in README.md for usage, output schema, and integration.
- No changes to code or functionality in this version.
v1.1.1
- Added README.md with detailed usage instructions and overview.
- Updated scripts/cost_tracker.py (contents not specified).
- No changes to user-facing features documented in SKILL.md.
v1.0.0
Initial release: per-model cost breakdown, daily spend trends, JSON + text output
Metadata
Frequently Asked Questions
What is Openclaw Cost Tracker?
Track OpenClaw token usage and API costs from local session data. Prefer openclaw-cost-diff for current cost analysis and window-over-window comparison acros... It is an AI Agent Skill for Claude Code / OpenClaw, with 826 downloads so far.
How do I install Openclaw Cost Tracker?
Run "/install openclaw-cost-tracker" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Openclaw Cost Tracker free?
Yes, Openclaw Cost Tracker is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does Openclaw Cost Tracker support?
Openclaw Cost Tracker is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Openclaw Cost Tracker?
It is built and maintained by Paul Frederiksen (@pfrederiksen); the current version is v1.1.3.
More Skills