LaunchKit · 2026
Back to Skills

trustlog-guard

Financial governance for OpenClaw agents.

0
259 downloads
by @anouartrust

Setup & Installation

openclaw skills install @anouartrust/trustlog-guard

Or with the ClawHub CLI, for registry-managed skill folders outside a full OpenClaw workspace:

npx clawhub install trustlog-guard

What This Skill Does

Reads OpenClaw agent session logs to track API spending by model and session. Enforces daily and monthly budgets, detects anomalies like runaway loops and model escalations, and produces formatted cost reports. All processing is local with no external connections.

Unlike cloud-based cost monitoring tools, it reads spend data directly from local session files with no external accounts, API keys, or data transmission required.

When to use it

  • Reviewing total API spend after a long agent session
  • Setting a daily budget limit to prevent unexpected charges
  • Spotting an agent stuck in a message loop before costs escalate
  • Identifying which AI model is consuming the most budget
  • Finding which sessions drove the highest spending this month

Example Workflow

Here's how your AI assistant might use this skill in practice.

INPUT

User asks: /trustlog

AGENT
  1. 1Scans ~/.openclaw/agents/{agent}/sessions/*.jsonl for cost records
  2. 2Groups message costs by today, this week, and this month
  3. 3Ranks top sessions by total spend and message count
  4. 4Runs anomaly checks for burn rate spikes, rapid-fire loops, and model escalations
  5. 5Appends optimization tips based on model usage patterns and cache efficiency
OUTPUT

Full financial report with spending overview, cost breakdown by model, top sessions, anomaly scan results, and one actionable optimization tip