token-budget-monitor
Track and control token consumption across OpenClaw cron jobs
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/aviclaw/token-budget-monitorWhat This Skill Does
The token-budget-monitor skill provides essential cost control and usage visibility for users running automated LLM workflows via OpenClaw. In environments where cron jobs trigger frequent AI interactions, monitoring token consumption is critical to avoid unexpected API costs and performance bottlenecks. This utility allows you to track inputs and outputs across various sessions, enforce hard limits for specific tasks, and receive proactive alerts before you burn through your budget. By maintaining a centralized record of token usage, the tool helps developers optimize their AI calls and identify which tasks consume the most resources.
Installation
To integrate this utility into your OpenClaw environment, execute the following command in your terminal:
clawhub install openclaw/skills/skills/aviclaw/token-budget-monitor
Ensure that you have appropriate write permissions for the directory where the usage logs will be stored. After installation, verify the setup by running the status command to ensure the configuration file is correctly parsed.
Use Cases
This skill is perfect for automated content pipelines, such as scheduled social media posting or RSS summarization bots. It is particularly valuable for developers managing multi-agent systems where several scripts run concurrently. You can use it to gate-keep high-cost models, automatically falling back to more efficient or free models when specific budget thresholds are hit, or simply to generate analytical reports on the cost-per-job efficiency of your automation workflows.
Example Prompts
- "OpenClaw, please run the token-budget-monitor status command to see how close I am to my daily usage limit for the morning news summary job."
- "Check if the daily-tweet job has exceeded its 5,000 token allowance and provide a recommendation for a cheaper model if it has."
- "Can you set an alert threshold of 90% for my total monthly budget and report any jobs that are currently nearing that limit?"
Tips & Limitations
To maximize the utility of this skill, ensure your cron jobs are configured to report usage statistics immediately after each LLM call. The current implementation relies on local file storage for logs; therefore, you should ensure that your server-side backup strategies include these data files to maintain persistent history. Note that this tool does not automatically cancel remote API requests; it provides the monitoring logic to trigger your own shutdown or fallback procedures. Always keep your freeModel list updated in the config.json file to take advantage of the latest efficient models provided by your API endpoints.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-aviclaw-token-budget-monitor": {
"enabled": true,
"auto_update": true
}
}
}Tags
Flags: file-write, file-read, code-execution
Related Skills
securityvitals
Security vitals checker for OpenClaw. Scans your installation, scores your setup, and shows you exactly what to fix. First scan in seconds.
soul-weaver
AI Soul Weaver - 12 Curated Celebrity Templates + Custom Generation. Generate OpenClaw agent configurations through dialog or select from 12 world-famous tech & business leaders.
jarvis-stock-monitor
全功能智能股票监控预警系统 Pro 版。支持成本百分比、均线金叉死叉、RSI 超买超卖、成交量异动、跳空缺口、动态止盈等 7 大预警规则。基础功能免费,高级功能 SkillPay 付费。
openclaw-troubleshooter
OpenClaw 故障诊断与一键修复工具。自动检测 Gateway 状态、配置错误、端口冲突、危险技能代码,并提供修复方案。基于真实故障经验提取。
skill-frontmatter-doctor
修复 frontmatter、metadata、requires、install 和目录结构问题,贴合当前 OpenClaw 规范。;use for skills, frontmatter, validation workflows;do not use for 编造不存在的字段, 忽略单行 JSON 约束.