تخطَّ إلى المحتوى
TakoAPI
العودة إلى المهارات

bot-status-api

بواسطة suspect80

Web & Frontend Development
1.7kالتنزيلات وفق ما يذكره clawskills.sh
0المشاهدات
لا إعجاباتسجّل الدخول للإعجاب بهذه المهارة
—لم يُقيَّم بعد
تقييمك

موجز

Deploy a lightweight status API that exposes your OpenClaw.

الوصف

ما الذي تفعله هذه المهارة

A configurable HTTP service that exposes an OpenClaw bot's operational status as JSON. Reports bot health, model context usage, cron jobs, installed skills, service connectivity, and system metrics. Runs on Node.js built-ins with no external dependencies.

Zero external dependencies means it deploys anywhere Node.js is available without managing package installs or version conflicts.

متى تستخدمها

  • Checking bot uptime and context usage from a monitoring dashboard
  • Alerting when a dependent HTTP service goes down
  • Monitoring Docker container health via Portainer
  • Confirming dev servers are running before starting a work session

مثال على سير العمل

الإدخال

User asks: What's the status of my bot right now?

الوكيل
  1. 1

    Serve GET /status from the running bot-status server

  2. 2

    Read heartbeat-state.json from the bot workspace for context vitals

  3. 3

    Run configured service health checks against HTTP endpoints, shell commands, and file paths

  4. 4

    Read cron/jobs.json for the list of scheduled jobs

  5. 5

    Collect CPU, RAM, and disk metrics from /proc

الإخراج

JSON response showing bot online with 62% context used, all services healthy, 3 cron jobs active, and disk at 45% capacity

التثبيت

clawhub install suspect80/bot-status-api

شغّل أمر واجهة سطر الأوامر، أو الصق النص في Claude Code أو Cursor أو Codex أو أي وكيل برمجة تستخدمه.

الروابط