← Back to Skills Marketplace
Session Cost Tracker
by
Rushant Ashtputre
· GitHub ↗
· v1.0.0
799
Downloads
0
Stars
6
Active Installs
1
Versions
Install in OpenClaw
/install session-cost-tracker
Description
Track and analyze AI session cost-to-value by logging task, value, and token use to optimize productivity and reduce wasted effort.
Usage Guidance
This skill appears to do exactly what it says: locally log session records to ~/.clawdbot/session-costs.json (or a path you set via SESSION_COST_FILE). Before running: inspect the track.sh yourself (it's included), confirm you are comfortable with it creating/writing the data file in your home directory, and ensure you have the expected utilities (jq or python3, bc, uuidgen) or accept the fallbacks. There are no network calls or secret-requiring env vars, but as with any script, run it with a user account that has only the permissions you intend and consider restricting file permissions on the output JSON if it will contain sensitive notes.
Capability Analysis
Type: OpenClaw Skill
Name: session-cost-tracker
Version: 1.0.0
The OpenClaw AgentSkills bundle 'session-cost-tracker' is designed to help agents track the cost and value of their sessions. The `SKILL.md` provides clear instructions for usage and optional manual cron setup, without containing any prompt injection attempts against the agent. The `track.sh` script stores data locally in `~/.clawdbot/session-costs.json` and uses `jq` or Python for safe JSON parsing and manipulation. There is no evidence of data exfiltration, malicious execution, persistence mechanisms, or obfuscation. Input handling for logging uses `jq --argjson` or `json.loads`, which safely embed user-provided strings into JSON without shell injection risks. The skill is benign and performs its stated purpose without high-risk behaviors.
Capability Assessment
Purpose & Capability
The name/description (track cost-to-value of agent sessions) matches the included script and instructions. The skill only needs to record task, value, tokens, model, and timestamps to a local file; nothing requested or included (no env secrets, no network endpoints) is unrelated to that purpose.
Instruction Scope
SKILL.md directs the user to run the provided track.sh to log and view stats; the script only reads/writes a local file (default ~/.clawdbot/session-costs.json) and uses standard local utilities (date, mkdir, jq/python3, bc, uuidgen). It does not read unrelated system files, access credentials, or transmit data externally.
Install Mechanism
There is no install spec. This is an instruction-only skill with an included shell script. Nothing is downloaded or extracted from remote URLs. Risk from installation is low — the script is placed locally and executed by the user.
Credentials
No required environment variables or credentials are declared. The script optionally respects SESSION_COST_FILE to override the default path, which is reasonable and proportional to the task.
Persistence & Privilege
The skill does not request persistent platform privileges (always is false). It writes its own data file under the user's home directory and does not modify other skills or system-wide configurations.
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install session-cost-tracker - After installation, invoke the skill by name or use
/session-cost-tracker - Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
Initial release. Track cost-to-value ratio of agent sessions. Built during 30-day shipping challenge.
Metadata
Frequently Asked Questions
What is Session Cost Tracker?
Track and analyze AI session cost-to-value by logging task, value, and token use to optimize productivity and reduce wasted effort. It is an AI Agent Skill for Claude Code / OpenClaw, with 799 downloads so far.
How do I install Session Cost Tracker?
Run "/install session-cost-tracker" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Session Cost Tracker free?
Yes, Session Cost Tracker is completely free (open-source). You can download, install and use it at no cost.
Which platforms does Session Cost Tracker support?
Session Cost Tracker is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Session Cost Tracker?
It is built and maintained by Rushant Ashtputre (@rushant-123); the current version is v1.0.0.
More Skills