An automated session telemetry hook that captures turns, tool calls, and model costs into searchable Markdown reports.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install collect-session
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 collect-session using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
The collect-session skill is a powerful telemetry and archival tool designed for the OpenClaw ecosystem. It bridges the gap between ephemeral AI interactions and persistent knowledge management by automatically capturing session data whenever a user issues a /new or /reset command. By leveraging LiteLLM, it enriches raw logs with human-readable summaries and precise cost tracking.
This skill is essential for developers and teams who need to maintain a verifiable audit trail of agent work. It transforms messy session histories into a structured library of Markdown files, a machine-readable JSONL log, and a centralized index, ensuring that every insight generated by your AI agent is findable and accountable within Openclaw Skills.
Copy the core logic to your workspace and ensure execution permissions:
cp collect-session.mjs <workspace-dir>/scripts/collect-session.mjs
chmod +x <workspace-dir>/scripts/collect-session.mjs
Register the hook by creating the handler directory and the required metadata file at ~/.openclaw/hooks/collect-session/HOOK.md with the appropriate events (command:new, command:reset).
Update your openclaw.json to activate the internal hook:
"hooks": {
"internal": {
"entries": {
"collect-session": {
"enabled": true
}
}
}
}
The skill maintains a structured hierarchy within your designated memory directory to ensure compatibility with other Openclaw Skills:
| File / Path | Format | Purpose |
|---|---|---|
/sessions/YYYY-MM-DD-<slug>.md |
Markdown | Individual session reports with full telemetry and enrichment. |
SESSION-INDEX.md |
Markdown Table | A high-level overview of all recorded sessions for quick navigation. |
session-log.jsonl |
JSON Lines | Machine-readable records including cost, model, and turn counts. |
--sweep flag to process and archive all historical, uncollected sessions at once.MODEL_PRICING table to derive costs even when providers return zero-value telemetry.Loading
A comprehensive interface for managing DevOps lifecycles, from application tracking to automated release window monitoring.

A professional AI content creation skill that crafts high-engagement articles for social media while eliminating robotic AI traces.

A professional diagnostic tool for AI agents to analyze spreadsheet structures and recommend stable, compatible formulas for Excel and WPS Office.

An automated data collection and analysis skill that builds a precise personal profile for your AI agent by indexing your logged-in social media activity.

A data-driven automation suite for Taobao dropshipping focusing on intelligent selection, marketing optimization, and order fulfillment.

A high-performance safety proxy that intercepts and validates AI tool calls in real-time to prevent malicious or accidental actions.








































