🎁 Get the FREE AI Skills Starter Guide β€” Subscribe β†’
BytesAgainBytesAgain
πŸ¦€ ClawHub

API Health Monitor

by @toller892

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

Versionv1.0.1
Downloads371
Installs1
TERMINAL
clawhub install api-health-monitor

πŸ“– About This Skill


name: api-health-monitor description: Parses recent OpenClaw session logs for LLM API errors and returns a structured health report.

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

| Field | Type | Description | |---|---|---| | healthy | boolean | true if no errors found | | errors | array | [{ type, message, count, lastSeen }] | | recommendation | string | Suggested action based on findings |

πŸ’‘ Examples

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