跳到正文
TakoAPI
返回技能列表

bot-status-api

由 suspect80 提供

Web & Frontend Development
1.7k下载量由 clawskills.sh 提供
0浏览量
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

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

链接