A comprehensive forensic toolkit for analyzing Openclaw session history to monitor costs, tool usage, and agent regressions.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install openclaw-session-log-forensics
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-log-forensics using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
The Session Logs skill is a developer-centric forensic tool designed for Openclaw operators who need deep visibility into their AI agent interactions. By parsing the append-only JSONL files generated during sessions, this skill enables users to perform complex queries using jq and ripgrep (rg). It is specifically built to help users navigate the Openclaw Skills ecosystem more effectively by providing a clear audit trail of every conversation, cost metric, and tool call made by an agent.
This tool is indispensable for maintaining the health of your AI workflows. It allows you to move beyond simple chat interfaces and treat your interaction history as a structured database, making it possible to identify performance drift and operational inefficiencies that would otherwise remain hidden in raw log files.
To use this skill, ensure that the jq and rg binaries are installed on your system. You can verify your setup by navigating to your agent's session directory:
cd ~/.openclaw/agents/<agentId>/sessions/
ls -lh
No further internal configuration is needed within the Openclaw Skills framework, as the skill operates directly on the generated log files.
The skill organizes and interprets data using the following file structure and metadata schema:
| Component | Format | Purpose |
|---|---|---|
| sessions.json | JSON Index | Maps chat provider keys to specific session IDs for easy lookup. |
| JSON Lines | The primary transcript containing timestamped message and cost objects. | |
| message.role | String | Identifies the speaker as user, assistant, or toolResult. |
| usage.cost.total | Number | Tracks the financial cost of each individual response. |
| toolCall | Object | Metadata capturing the specific Openclaw Skills invoked by the agent. |
Loading
An intelligent 24/7 monitoring agent that tracks website changes, product prices, and competitor updates with instant notifications.

A secure, LAN-accessible web viewer designed to render Markdown files into a clean, e-reader optimized interface for immediate reading across devices.

OpenClaw Pilot is an instruction-first skill that compiles rough ideas into a human-readable blueprint and a clean, machine-ready OpenClaw execution packet.

A comprehensive data analysis suite that integrates database connectivity, SQL execution, interactive visualization, and AI-powered report generation.

Transform text-based Mermaid syntax into professional PNG images or interactive HTML diagrams effortlessly.

An AI-driven Facebook Page manager that automates customer engagement, content distribution, and performance tracking across nine specialized industries.








































