Setup & Installation
Or with the ClawHub CLI, for registry-managed skill folders outside a full OpenClaw workspace:
Version History
**Summary: Adds scheduled monitoring and cross-session analytics with proactive alerts.** - Introduced scheduled monitoring and balance alerts via new scripts (`scheduler.js`). - Added cross-session tracking and analytics with session recording and reporting (`session-tracker.js`). - Enhanced documentation: streamlined SKILL.md, added setup guides, new commands, and clear cost-saving recommendations. - Provides sample cron job setups and tool integration steps. - All monitoring/alert state and session data are stored locally for privacy. - No changes to API usage or keys—still only local storage and official APIs.
What This Skill Does
Tracks LLM API token usage and costs across providers including Kimi/Moonshot, OpenAI, Anthropic, Gemini, and local Ollama models. Runs scheduled balance checks via cron, records cross-session spending patterns, and outputs cost-saving recommendations based on context usage and model selection.
Direct API balance querying for Kimi/Moonshot and local session recording means you get actual numbers rather than estimates scraped from provider dashboards.
When to use it
- Checking how many tokens a session consumed before closing
- Setting hourly alerts when Moonshot balance drops below a threshold
- Comparing GPT-4o vs GPT-4o-mini costs for a given workload
- Generating a weekly spending report across multiple LLM providers
- Deciding whether to disable reasoning mode on a small task to cut costs
Example Workflow
Here's how your AI assistant might use this skill in practice.
User asks: check my current token usage and get recommendations
- 1Runs manager.js report with current session token counts, context window usage, and reasoning state
- 2Queries Moonshot API for live account balance
- 3Evaluates context usage thresholds and reasoning mode status against recommendation rules
- 4Outputs cost-saving suggestions such as compacting context or switching to a cheaper model
Session report showing tokens in/out, estimated cost, remaining balance, and actionable recommendations like '/compact' or switching to kimi-k2.5
Requirements
Accounts, API keys, or tools you or your AI assistant may need to set up while using this skill.