openclaw-daily-ops

Aggregate daily API costs and clean zombie sessions from OpenClaw session files.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Consolidates daily API cost totals from OpenClaw session files and removes stale "zombie" sessions to control spending and free up resources in deployed environments.

Core Features & Use Cases

  • Cost Aggregation: Parses OpenClaw session files and computes daily API cost totals with trend and budget signals.
  • Discord Reporting: Posts a clean daily report to a configurable Discord webhook and optionally pings a high-cost user ID for alerts.
  • Zombie Session Cleanup: Resets or removes stale sessions based on configurable age and size thresholds to prevent runaway costs.
  • Use Case: Run nightly to summarize daily spending, alert stakeholders on over-budget trends, and clear sessions older than 24 hours above a size threshold.

Quick Start

Run the OpenClaw daily ops script with your config to generate a dry-run cost report and preview cleanup actions.

Frequently Asked Questions about openclaw-daily-ops

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

FAQPage Schema
How do I automate API cost reporting for OpenClaw sessions to Discord?

You can automate API cost reporting by scheduling a script to parse OpenClaw session files, compute daily totals, and post a report to a Discord webhook with alerts for high-cost users. This consolidates spending data and notifies stakeholders automatically.

What is a zombie session cleanup and when do I need it for OpenClaw?

Zombie session cleanup resets or removes stale OpenClaw sessions based on age and size thresholds. You need it when deployed agents leave idle sessions that consume resources, so clearing sessions older than 24 hours prevents runaway costs.

Can I run OpenClaw cost aggregation and cleanup in a dry run first?

Yes, you can run the OpenClaw daily ops script in dry-run mode. This generates a preview cost report and lists cleanup actions without executing them, allowing you to verify thresholds and outputs before live deployment.

How do I configure cron jobs to reset stale OpenClaw sessions nightly?

You can configure cron jobs to run the OpenClaw daily ops script nightly with your session path inputs, zombie age, and size thresholds. This scheduled run parses sessions, computes API costs, posts Discord reports, and resets stale sessions automatically.

Does this OpenClaw ops script require a specific Discord webhook setup?

Yes, it requires a configurable Discord webhook URL to post the daily cost report. You can also optionally configure a Discord user ID to receive alerts when high-cost trends or budget thresholds are exceeded.

What input parameters are needed to automate OpenClaw session cleanup and cost reporting?

You need to provide session path inputs, Discord webhook and user ID, plus zombie age and size thresholds. These parameters allow the script to parse sessions, compute API cost totals, post reports, and reset stale sessions accurately.