API Health Monitor

v1.0.1

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

0· 91· 2 versions· 0 current· 1 all-time· Updated 6d ago· MIT-0

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

Version tags

debugvk9793n1whcw47e5kqq9rc4rc8d85a5zfhealthvk9793n1whcw47e5kqq9rc4rc8d85a5zflatestvk9793n1whcw47e5kqq9rc4rc8d85a5zfmonitoringvk9793n1whcw47e5kqq9rc4rc8d85a5zfopenclawvk9793n1whcw47e5kqq9rc4rc8d85a5zf