Search

PythonReactSEOPDF
OpenClaw

token-budget-monitor

Track and control token consumption across OpenClaw cron jobs

aviclaw0 source installs☆ 0 Repository starsv1.0.0

Installation

Follow the repository instructions for this skill and your agent. Review the files and dependencies before adding it to your workflow.

SkillHub CLI

skillhub install aviclaw/token-budget-monitor

Inspect the source and compatibility requirements, then follow its installation steps.

Give your agent the source link and ask it to inspect instructions and dependencies before explaining the installation steps.

View source ↗Guides

Skill instructions

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

Source information

Source
github
Repository
openclaw/skills
Path
skills/aviclaw/token-budget-monitor
Version
1.0.0
Commit
fe24a2c3f3e46f2db13c4b582d0868deb3d32470
Classification source
rules
Status
active
Visibility
public

These signals come from indexed source analysis and may lag behind changes. Check the current source files.

README

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

# 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:

{
  "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:

{
  "date": "2026-02-22",
  "totalTokens": 45000,
  "jobs": {
    "daily-tweet": { "input": 1000, "output": 500 },
    "rss-brief": { "input": 8000, "output": 2000 }
  }
}

Extracted content

SKILL.md
# 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
README
# 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 }
  }
}
```

Related skills

OpenClaw

xint

0xnyk

X Intelligence CLI — search, monitor, analyze, and engage on X/Twitter. TypeScript + Bun. AI agent skill.

OpenClaw

bambu-studio-ai

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 pi...

OpenClaw

flightclaw

jackculpan

Track flight prices from Google Flights with this OpenClaw skill. Search routes, monitor prices, and get alerts when prices drop.

OpenClaw

openclaw-trading-assistant

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...