← Back to Skills Marketplace
neoch3n

OpenClaw Session Cleanup

by NeoCh3n · GitHub ↗ · v1.0.0
cross-platform ⚠ suspicious
392
Downloads
0
Stars
1
Active Installs
1
Versions
Install in OpenClaw
/install openclaw-session-cleanup
Description
Diagnose and stabilize long-running OpenClaw deployments that accumulate stale sessions, unreaped agents, browser-control timeouts, gateway websocket 1006 cl...
Usage Guidance
This skill appears to do what it says: prune/clear OpenClaw sessions, render safer runtime limits, add a cron job, and optionally install a systemd watchdog and swap. Before installing, review the scripts (especially install-to-openclaw.sh, install-watchdog.sh, and the raw GitHub URL if you use the curl|bash one-liner). Note that adding swap and enabling systemd units changes system state and may require sudo; the watchdog unit will attempt to restart OpenClaw gateway automatically. If you don't want system-wide changes, install only into a workspace skills directory or run the cron/script steps manually after inspection.
Capability Analysis
Type: OpenClaw Skill Name: openclaw-session-cleanup Version: 1.0.0 The skill performs high-privilege system operations including modifying user crontabs (install-cron-prune.sh), installing systemd services to /etc/systemd/system (install-watchdog.sh), and creating/enabling system-wide swap files (SKILL.md). While these actions are aligned with the stated goal of stabilizing OpenClaw on small VPS hosts, the requirement for root-level access and persistent system modifications represents a significant attack surface and high-risk behavior.
Capability Assessment
Purpose & Capability
Name/description, SKILL.md instructions, templates, and scripts all align: the skill runs OpenClaw CLI commands, installs a cron prune job, renders a tuned config, and can install a watchdog unit. Required binaries (bash, openclaw) match the declared purpose.
Instruction Scope
SKILL.md instructs running openclaw CLI commands, adding swap, and installing cron/systemd watchdogs — all relevant. These instructions do change system state (crontab, swap, systemd timer/service); they do not attempt to read unrelated secrets or system paths. Users should be aware the playbook performs privileged/administrative operations (swap creation, restarting services) when followed.
Install Mechanism
There is no platform install spec; the repo provides local scripts (install-to-openclaw.sh, install-cron-prune.sh, install-watchdog.sh). README suggests a one-line curl|bash installer from GitHub raw URLs — the source is a well-known host (raw.githubusercontent.com), but piping remote scripts to bash has inherent risk and should be reviewed before running.
Credentials
The skill declares no environment variables, no credentials, and only requires the openclaw binary — this is proportional to its stated purpose. The scripts do not access secrets or unrelated env vars.
Persistence & Privilege
The skill can persist recurring behavior: it installs a per-user cron job (writes crontab) and offers to install a systemd timer/service (system-level). Installing the systemd units targets /etc/systemd/system by default (requires elevated privileges). This persistence is coherent with a watchdog/automation role but is a meaningful system-level change that users should consent to.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install openclaw-session-cleanup
  3. After installation, invoke the skill by name or use /openclaw-session-cleanup
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
Initial release: Provides tools and guidance for stabilizing long-running OpenClaw deployments affected by stale sessions and resource exhaustion. - Diagnose and resolve high session and agent counts, browser-service timeouts, and gateway websocket closures. - Add step-by-step cleanup and escalation instructions to restore a healthy runtime. - Offer safe default configuration recommendations for low-resource VPS hosts. - Include scripts and commands for automating session pruning and watchdog installation. - Provide references to runbooks, config templates, and service files for further customization.
Metadata
Slug openclaw-session-cleanup
Version 1.0.0
License
All-time Installs 1
Active Installs 1
Total Versions 1
Frequently Asked Questions

What is OpenClaw Session Cleanup?

Diagnose and stabilize long-running OpenClaw deployments that accumulate stale sessions, unreaped agents, browser-control timeouts, gateway websocket 1006 cl... It is an AI Agent Skill for Claude Code / OpenClaw, with 392 downloads so far.

How do I install OpenClaw Session Cleanup?

Run "/install openclaw-session-cleanup" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is OpenClaw Session Cleanup free?

Yes, OpenClaw Session Cleanup is completely free (open-source). You can download, install and use it at no cost.

Which platforms does OpenClaw Session Cleanup support?

OpenClaw Session Cleanup is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created OpenClaw Session Cleanup?

It is built and maintained by NeoCh3n (@neoch3n); the current version is v1.0.0.

💬 Comments