An automated session management utility that prevents context overflow by archiving long threads and rotating sessions with intelligent summaries.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install openclaw-session-guard
Copy the skill folder to one of these locations
~/.openclaw/skills/ <project>/skills/ Priority: Workspace > Local > Bundled
Copy this prompt to OpenClaw to install it automatically.
Help me install openclaw-session-guard using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
OpenClaw Session Guard is a robust management tool within the Openclaw Skills ecosystem designed to tackle the common problem of context window exhaustion. In long-running AI interactions, users often encounter frequent context compaction which can degrade performance and disrupt workflow. This skill acts as a protective layer, monitoring token usage and triggering automated transitions before limits are reached.
By implementing a sophisticated summary-and-rotate mechanism, it ensures that your AI agent maintains continuity without the technical overhead of manual session management. It creates a seamless bridge between old and new sessions, allowing for deep, multi-hour development or research tasks while keeping the context lean and efficient.
To deploy this utility from the collection of Openclaw Skills, execute the following installation script in your terminal:
bash ~/.openclaw/skills/openclaw-session-guard/scripts/install.sh
You can verify the active policies and background task status using:
bash ~/.openclaw/skills/openclaw-session-guard/scripts/status.sh
To remove the guard and stop all scheduled maintenance tasks:
bash ~/.openclaw/skills/openclaw-session-guard/scripts/uninstall.sh
The skill manages its operations through a structured directory within the OpenClaw environment, tracking the following metadata and files:
| Component | Logic | Description |
|---|---|---|
| Threshold | 80% | The trigger point for session rotation. |
| Cooldown | 1800s | Minimum time between consecutive rotations. |
| Scan Cycle | 300s | Frequency of background session audits. |
| Summary | Top 6 | Number of recent messages preserved per role. |
| Archives | Local Files | Persistent storage of rotated session histories. |
Loading
An AI video generation tool that leverages the Volcengine Dreamina API to create high-quality videos with automatically synthesized audio.

A CLI-driven browser automation tool for AI agents to navigate, interact with, and extract data from web pages.

A high-performance browser automation tool for AI agents to navigate websites, interact with UI elements, and extract data programmatically.

A bridge for AI agents to programmatically schedule events on iCloud Calendar with native iPhone notification support.

A robust communication skill that enables AI agents to send single and bulk SMS messages globally through the TelTel REST API.

A dedicated utility to configure OpenRouter as the primary LLM provider for your AI agent environment.








































