跳到正文
TakoAPI
返回技能列表

bot-status-api-test

由 suspect80 提供

Web & Frontend Development
1.2k下载量由 clawskills.sh 提供
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

Deploy a lightweight status API that exposes.

描述

该技能的功能

A configurable HTTP service that exposes an OpenClaw bot's runtime status as JSON. Reports bot health, context usage, cron job state, installed skills, service connectivity, and system metrics. Runs with zero npm dependencies using Node.js built-ins only.

Zero npm dependencies means no install step, no lockfile churn, and no version conflicts that come with typical monitoring stacks.

何时使用

  • Checking bot uptime from a monitoring dashboard
  • Verifying external service health before a deployment
  • Tracking CPU and RAM usage during heavy agent workloads
  • Building a status page for a self-hosted OpenClaw agent

示例工作流

输入

User asks: Is my bot and its connected services healthy right now?

智能体
  1. 1

    Start the status server with node server.js

  2. 2

    Read config.json to load service definitions, workspace paths, and cache settings

  3. 3

    Run all configured health checks (HTTP, command, file-exists) in parallel

  4. 4

    Serve the aggregated result from cache at GET /status

  5. 5

    Return a JSON object with bot vitals, service statuses, cron jobs, skills list, and system metrics

输出

JSON response containing uptime, context percent used, per-service health status, cron job list, installed skills, and CPU/RAM/disk readings

安装

clawhub install suspect80/bot-status-api-test

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接