Agent skill · data analytics · sundial-org

clawdbot-cost-tracker

Track Clawdbot AI model usage and estimate costs. Use when reporting daily/weekly costs, analyzing token usage across sessions, or monitoring AI spending. Supports Claude (opus/sonnet), GPT, and Codex models.

Why this skill is useful

Provides specific scripts and cost estimation formulas for tracking AI model usage that the AI wouldn't generate on its own.

What it needs

Requires node installed locally. About 1k tokens when loaded. Last updated 2026-03-07. 639 stars on the source repository.

What this skill does

Clawdbot Cost Tracker Track token usage and estimate API costs across all Clawdbot sessions. Quick Start Get Current Usage Extract totalTokens and model from each session. Calculate Cost Model pricing (USD per million tokens): Model Input Output Avg Ratio ------- ------- -------- ----------- claude-opus-4-5 $15 $75 30/70 claude-sonnet-4 $3 $15 30/70 codex-mini-latest $1 $5 30/70 gpt-4o $2.5 $10 30/70 gpt-4o-mini $0.15 $0.6 30/70 Cost formula (assuming 30% input, 70% output): Daily Tracking Save Usage Snapshot Store daily snapshots in memory/usage/YYYY-MM-DD.json: Calculate Daily Cost Compare consecutive days to get daily usage: Scripts scripts/snapshot-usage.js Creates a usage snapshot from current session data. scripts/calculate-cost.js Calculates cost for a date range. Integration with Daily Report Add to HEARTBEAT.md: 1. Call sessionslist to get current tokens 2. Load previous day's snapshot from memory/usage/ 3. Calculate delta and estimate cost 4. Include in daily report format: Color Conventions (Chinese Style) For financial displays in Chinese context: 🔴 Red = Up/Increase 🟢 Green = Down/Decrease

How to use it

Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:

@skills sundial-org/clawdbot-cost-tracker

View the source on GitHub

Browse the @skills marketplace