@aaaaorg/cronlint
v0.1.0
Published
Cron job cost & intelligence auditor for OpenClaw
Downloads
39
Maintainers
Readme
@aaaaorg/cronlint
Cron job cost & intelligence auditor for OpenClaw.
Analyzes your cron jobs and tells you which ones are wasting money on AI models when a bash script would do.
Install
npm install -g @aaaaorg/cronlintUsage
cronlint # Audit all jobs (last 24h)
cronlint --hours 48 # Wider analysis window
cronlint --format json # Machine-readable output
cronlint --min-savings 1.00 # Only show big savingsWhat it finds
| Classification | Meaning | Action | |---|---|---| | 🔧 bash-replaceable | Job runs a shell script — AI not needed | Replace with bash/cron | | ⚡ frequency-excessive | Runs too often for what it does | Reduce frequency | | 📉 model-downgrade | Uses Opus/Sonnet but Haiku would suffice | Switch to cheaper model | | ✅ right-sized | Job needs the model it's using | No action needed |
Example output
🔍 cronlint — Cron Job Audit
⚠️ Action Required (3 jobs)
🔧 watchdog-health (*/15 * * * *)
bash-replaceable · model: claude-sonnet-4-5 · 96 runs/day · $2.88/day
💡 Replace with bash script
💰 Save: $86.40/month
⚡ rate-check (0 * * * *)
frequency-excessive · model: claude-sonnet-4-5 · 24 runs/day · $0.72/day
💡 Reduce from 24/day to 6/day
💰 Save: $16.20/month
📊 Total potential savings: $102.60/monthOptions
| Flag | Default | Description |
|---|---|---|
| --config | ~/.openclaw/openclaw.json | OpenClaw config path |
| --jobs | ~/.openclaw/cron/jobs.json | Jobs file path |
| --runs | ~/.openclaw/cron/runs | Runs directory |
| --format | text | Output: text or json |
| --hours | 24 | Analysis window |
| --min-savings | 0.10 | Min daily savings to report |
How it works
- Reads your OpenClaw cron job definitions and run history
- Analyzes each job's prompt text with pattern matching
- Classifies by whether the task actually needs an AI model
- Estimates costs from run history and model pricing
- Reports actionable recommendations with savings estimates
License
MIT
