openclaw-daily-ops

Calculate daily OpenClaw API costs and post Discord reports while truncating stale session logs.

21|3|Updated Mar 10, 2026
One-click install
npx skills add https://github.com/oh-ashen-one/openclaw-daily-ops --skill openclaw-daily-ops-oh-ashen-one
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: openclaw-daily-ops
Source: https://github.com/oh-ashen-one/openclaw-daily-ops/tree/main
Command: npx skills add https://github.com/oh-ashen-one/openclaw-daily-ops --skill openclaw-daily-ops-oh-ashen-one

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

It prevents OpenClaw deployments from silently accumulating runaway API spend and bloated context by giving you daily per-session cost visibility and automatically clearing stale session files before they snowball.

Core Features & Use Cases

  • Daily cost reporting: Parses OpenClaw session JSONL logs to compute per-session API cost and token totals for today, including a 7-day trend, and posts a formatted summary to Discord.
  • Zombie session hygiene: Truncates (resets) session JSONL files that are older than your configured age threshold and exceed a minimum size threshold, reducing the risk of expensive context growth.
  • Use case: Run on a nightly schedule for always-on agents so you catch high-burn sessions quickly and keep storage/context growth under control, with safety checks that avoid touching active sessions.

Quick Start

Run the cost report and zombie cleanup once by executing the OpenClaw payload that runs scripts/cost_report.py and scripts/zombie_killer.py using your config.json.

Frequently Asked Questions about openclaw-daily-ops

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I report daily OpenClaw API spend automatically?

To report daily OpenClaw API spend automatically, you can run a Python script that parses session JSONL logs to compute per-session costs and posts a formatted summary with a 7-day trend to Discord.

How do I clear zombie session logs to prevent OpenClaw context bloat?

You clear zombie session logs by running a script that truncates session JSONL files older than your configured age threshold and exceeding a minimum size threshold, resetting stale context without touching active sessions.

Do I need a Discord webhook to receive OpenClaw cost alerts?

Yes, you need a valid Discord webhook configured in your SKILL configuration to receive the daily per-session API cost summaries and token totals generated from OpenClaw session logs.

Can I automate OpenClaw session hygiene and cost reporting with cron?

Yes, you can automate OpenClaw session hygiene and cost reporting with cron by scheduling the Python scripts to execute nightly, ensuring recurring operational maintenance and budget alerting for always-on agents.

What is the best way to monitor per-session API costs for always-on agents?

The best way to monitor per-session API costs for always-on agents is parsing JSONL session files to calculate daily token totals and cost trends, then posting alerts via a Discord webhook to catch high-burn sessions quickly.