install
source · Clone the upstream repo
git clone https://github.com/openclaw/skills
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/openclaw/skills "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/aviclaw/token-budget-monitor" ~/.claude/skills/clawdbot-skills-token-budget-monitor && rm -rf "$T"
manifest:
skills/aviclaw/token-budget-monitor/SKILL.mdsource content
token-budget-monitor
Track and control token consumption across OpenClaw cron jobs, fallback chains, and sessions.
Installation
openclaw skills install aviclaw/token-budget-monitor
Usage
# Check current usage node track-usage.js status # Check budget for a specific job node track-usage.js check daily-tweet # Alert if over budget node track-usage.js alert # Get model recommendations node track-usage.js recommend
Integration
Add to cron jobs to track usage:
// After LLM call completes const usage = result.usage; exec('node /path/to/track-usage.js track <job-name> ' + usage.input_tokens + ' ' + usage.output_tokens + ' ' + model);
Configuration
Edit
config.json:
{ "dailyLimit": 100000, "jobLimits": { "daily-tweet": 5000, "rss-brief": 15000 }, "alertThreshold": 0.8, "freeModels": [ "nvidia/moonshotai/kimi-k2.5", "google/gemini-2.0-flash-exp" ] }
Features
- Per-job token tracking
- Daily budget limits
- Per-job custom limits
- Alert when threshold exceeded
- Recommend free model alternatives
Author
- GitHub: @aviclaw
License
MIT