API Health Monitor

Data & APIs

Parses recent OpenClaw session logs for LLM API errors and returns a structured health report.

Install

openclaw skills install api-health-monitor

api-health-monitor

Scans ~/.openclaw/agents/main/sessions/ for recent LLM API error patterns (500 errors, token failures, cooldowns, service_busy) and produces a JSON health report.

Usage

const { checkApiHealth } = require('./skills/api-health-monitor');
const report = await checkApiHealth();
// { healthy: bool, errors: [...], recommendation: string }

Report Shape

FieldTypeDescription
healthybooleantrue if no errors found
errorsarray[{ type, message, count, lastSeen }]
recommendationstringSuggested action based on findings