Cost Tracking for Models
v1.0.2Track OpenClaw usage costs and provide detailed reports by date and model. Supports daily, weekly, and monthly report formats for Discord and other messaging channels.
⭐ 12· 4.4k·25 current·26 all-time
MIT-0
Download zip
LicenseMIT-0 · Free to use, modify, and redistribute. No attribution required.
Security Scan
OpenClaw
Benign
high confidencePurpose & Capability
Name/description match the implementation: the scripts parse OpenClaw JSONL session logs (~/.openclaw/agents/*/sessions/*.jsonl) using jq to compute costs by date and model. Required binary (jq) and the provided CLI wrapper are appropriate for this task.
Instruction Scope
Instructions and scripts operate only on local OpenClaw session logs and produce text/JSON/Discord-formatted reports. This is expected for a cost-tracking tool, but it means the skill requires read access to potentially sensitive local session logs (timestamps, messages, errorText, model names, token counts). No instructions or code transmit data to external services or hardcoded remote endpoints.
Install Mechanism
Install spec only installs jq via Homebrew (well-known package manager). There are no downloads from arbitrary URLs or archive extractions. This is low-risk and proportional to the stated need for JSON parsing.
Credentials
The skill declares no required environment variables or credentials and the code does not attempt to read tokens/keys. Minor inconsistency: package.json's 'openclaw' metadata lists 'bash' and 'jq' as required bins while registry metadata listed only 'jq' — bash is normally available on supported OSes and this is a small mismatch rather than a security issue.
Persistence & Privilege
The skill does not request always:true and does not modify other skills or system-wide configs. A cron example is provided for automated reporting, but that's an optional configuration file (config/cron-examples.json) and not an automatic system change by the installer.
Assessment
This skill appears to do exactly what it says: read local OpenClaw session logs and produce cost reports. Before installing or running it, consider: 1) The scripts read ~/.openclaw/agents/*/sessions/*.jsonl which may contain sensitive message text and metadata — only run if you trust the source and are comfortable allowing read access to those logs. 2) The tool does not post to Discord automatically (report_discord.sh formats output and prints it); if you wire it into a cron or agent action that posts to external channels, review those delivery steps and credentials separately. 3) There's a small metadata mismatch (package.json mentions bash + jq while registry lists jq only) — not harmful but worth noting. If unsure, inspect the scripts locally (they are included) and run them with --format json on a copy of your logs or in a restricted environment first.Like a lobster shell, security has layers — review code before you run it.
Claudevk973arxvfbw086a711hv6bypbh805rqgCodexvk973arxvfbw086a711hv6bypbh805rqgCostvk973arxvfbw086a711hv6bypbh805rqgDailyvk973arxvfbw086a711hv6bypbh805rqgGeminivk973arxvfbw086a711hv6bypbh805rqgModelvk973arxvfbw086a711hv6bypbh805rqgOpenAIvk973arxvfbw086a711hv6bypbh805rqgReportvk973arxvfbw086a711hv6bypbh805rqglatestvk97ctdb8wkz8p215w1fzaf48bh80k68f
License
MIT-0
Free to use, modify, and redistribute. No attribution required.
Runtime requirements
💰 Clawdis
OSmacOS · Linux
Binsjq
Install
Install jq (JSON parser)
Bins: jq
brew install jq