Overview
- Skill Key
- aviclaw/token-budget-monitor
- Author
- aviclaw
- Source Repo
- openclaw/skills
- Version
- 1.0.0
- Source Path
- skills/aviclaw/token-budget-monitor
- Latest Commit SHA
- fe24a2c3f3e46f2db13c4b582d0868deb3d32470
Track and control token consumption across OpenClaw cron jobs
Stars
0
Installs
0
Status
ACTIVE
Visibility
PUBLIC
直接复制以下提示词,发送给你的 AI 助手即可完成安装。
请先检查是否已安装 SkillHub 商店,若未安装,请根据 https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/skillhub.md 安装 SkillHub 商店,然后安装 token-budget-monitor 技能。 若已安装,则直接安装 token-budget-monitor 技能。
# token-budget-monitor
Track and control token consumption across OpenClaw cron jobs, fallback chains, and sessions.
## Installation
```bash
openclaw skills install aviclaw/token-budget-monitor
```
## Usage
```bash
# 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:
```javascript
// 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`:
```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
# Token Budget Monitor
Track and control token consumption across OpenClaw cron jobs, fallback chains, and sessions.
## Features
- **Per-job tracking** — log tokens per cron job execution
- **Budget limits** — set max tokens per job/day
- **Auto-fallback** — switch to cheaper models when over budget
- **Alerts** — warn before hitting limits
- **Model recommendations** — suggest free alternatives
## Usage
```bash
# 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
```
## Configuration
Create `config.json` in skill directory:
```json
{
"dailyLimit": 100000,
"jobLimits": {
"daily-tweet": 5000,
"rss-brief": 10000,
"daily-openclaw-search": 15000
},
"alertThreshold": 0.8,
"freeModels": [
"nvidia/moonshotai/kimi-k2.5",
"google/gemini-2.0-flash-exp"
]
}
```
## Output
Logs written to `~/.openclaw/workspace/outputs/token-usage.json`:
```json
{
"date": "2026-02-22",
"totalTokens": 45000,
"jobs": {
"daily-tweet": { "input": 1000, "output": 500 },
"rss-brief": { "input": 8000, "output": 2000 }
}
}
```
0xnyk
X Intelligence CLI — search, monitor, analyze, and engage on X/Twitter. TypeScript + Bun. AI agent skill.
heyixuan2
Bambu Lab 3D printer control and automation. Activate when user mentions: printer status, 3D printing, slice, analyze model, generate 3D, AMS filament, print monitor, Bambu Lab, or any 3D printing task. Full pipeline: search → generate → analyze → colorize → preview → open BS → user slice → print → monitor. Supports all 9 Bambu Lab printers (A1 Mini, A1, P1S, P2S, X1C, X1E, H2C, H2S, H2D).
jackculpan
Track flight prices from Google Flights with this OpenClaw skill. Search routes, monitor prices, and get alerts when prices drop.
openclaw-trade
openclaw trading assistant| openclaw trading skill | nof1.ai & openclaw [moltbot] collaboration | We get the best practices from alpha arena trading seasons and bring it to clawdbot All top AI agents, realtime monitoring and news research, gather info from private insiders and many other! Using Hyperliquid API.
xquik-dev
X (Twitter) automation skill for AI coding agents. Tweet search, user lookup, follower/following extraction, media download, reply/retweet/quote extraction, 40+ tools, account monitoring & trending topics. REST API, MCP server, HMAC webhooks. Works with Claude Code, Cursor, Codex, Copilot, Windsurf & 40+ agents.
mohsinkhadim59
Step-by-step guides for installing and running OpenClaw, an open-source AI agent, on Mac, Linux VPS, and AWS covering setup, security, messaging channels, Google integration, skills, and monitoring.