suspect80

Bot Status API

IT運用・セキュリティv1.0.1
作者:suspect80更新日 2026-05-17全 2 バージョン · 最新版の公開日 2026-02-05bot-status-api@clawhub_suspect80/bot-status-api
監視・アラートサーバー運用設定生成#Cron#Health

AlphaMoatによると、2026-09時点でBot Status APIのダウンロード数は3,388、スター数は0で、AIスキル全体5,078件中3,309位、IT運用・セキュリティでは264件中212位です。

インストール数
106
ダウンロード数
3388
スター数
-
総合順位
#3,309
全体の上位 66% · IT運用・セキュリティの上位 81%
プラットフォームインストール数ダウンロード数スター数コメント
ClawHub ↗1063388--
SkillHub ↗1063382-—

プラットフォームごとに集計方法と集計時点が異なります。

このスキルでできること

主文では、bot の状態、サービスのヘルスチェック、スケジュール済みジョブ、スキル一覧、システム指標をダッシュボードやステータスページに提供する設定可能な HTTP サービスを説明しています。付属カードは、出力からサービス、ポート、ジョブ時刻、メールメタデータ、ホスト情報が漏れる可能性を警告しています。また、shell チェックを実行し TLS 検証を無効化する場合があります。デプロイ前に認証を追加し、localhost または保護されたネットワークにバインドし、TLS 回避とコマンド検査を削除または限定してください。

資料公開日 2026-10-29

できること

  • 状態 API のデータ範囲と監視エンドポイントを計画する
  • サービス、コマンド、ファイル検査の設定を確認する
  • 認証、ネットワークバインド、TLS 設定を評価する

使う場面

  • OpenClaw の状態を制御された監視エンドポイントで提供するとき
  • 状態フィールドとアクセス範囲を先に確認できるとき
  • デプロイ前に認証、TLS、コマンド実行のリスクを解消できるとき

プロンプト例

スキルのドキュメントをもとに生成した例であり、実際の実行結果ではありません。

サービスを起動せず、状態エンドポイントが公開し得る機密情報を列挙する
監視エンドポイントを保護ネットワーク内に限定して認証を加える
デプロイ提案前にコマンド検査と TLS 検証を確認する

月次の推移

ダウンロード数3388
1922271034972026-03 · ダウンロード数 20312026-05 · ダウンロード数 26402026-06 · ダウンロード数 28092026-07 · ダウンロード数 30962026-08 · ダウンロード数 32492026-09 · ダウンロード数 338826-0326-09
スター数-
0112026-03 · スター数 -2026-05 · スター数 -2026-06 · スター数 -2026-07 · スター数 -2026-08 · スター数 -2026-09 · スター数 -26-0326-09

2026-09 から集計方法を変更し、同名スキルを作者ごとに分けて集計し、全スキルを対象にしました。破線は変更前の月で、変更後のデータとは直接比較せず、変更をまたぐ増減も計算していません。

月ダウンロード数前月比スター数
2026-093388—-
2026-083249+4.9%-
2026-073096+10.2%-
2026-062809+6.4%-
2026-052640—-
2026-032031—-

SKILL.md 原文

作者が公開した元のファイルをテキストのまま表示しています。AlphaMoat による編集や審査はしていません。リンクはクリックできません。コマンドは内容を確認してから実行してください。取得日 2026-10-23。

3.4 KB・ClawHub v1.0.1
---
name: bot-status-api
description: "Deploy a lightweight status API that exposes your OpenClaw bot's runtime health, service connectivity, cron jobs, skills, system metrics, and more. Use when setting up a monitoring dashboard, health endpoint, or status page for an OpenClaw agent. Supports any services via config (HTTP checks, CLI commands, file checks). Zero dependencies — Node.js only."
---

# Bot Status API

A configurable HTTP service that exposes your OpenClaw bot's operational status as JSON. Designed for dashboard integration, monitoring, and transparency.

## What It Provides
すべて表示(全 119 行)

- **Bot Core:** Online status, model, context usage, uptime, heartbeat timing
- **Services:** Health checks for any HTTP endpoint, CLI tool, or file path
- **Email:** Unread counts from any email provider (himalaya, gog, etc.)
- **Cron Jobs:** Reads directly from OpenClaw's `cron/jobs.json`
- **Docker:** Container health via Portainer API
- **Dev Servers:** Auto-detects running dev servers by process grep
- **Skills:** Lists installed and available OpenClaw skills
- **System:** CPU, RAM, Disk metrics from `/proc`

## Setup

### 1. Copy the service files

Copy `server.js`, `collectors/`, and `package.json` to your desired location.

### 2. Create config.json

Copy `config.example.json` to `config.json` and customize:

```json
{
  "port": 3200,
  "name": "MyBot",
  "workspace": "/path/to/.openclaw/workspace",
  "openclawHome": "/path/to/.openclaw",
  "cache": { "ttlMs": 10000 },
  "model": "claude-sonnet-4-20250514",
  "skillDirs": ["/path/to/openclaw/skills"],
  "services": [
    { "name": "myservice", "type": "http", "url": "http://...", "healthPath": "/health" }
  ]
}
```

### Service Check Types

| Type | Description | Config |
|------|-------------|--------|
| `http` | Fetch URL, check HTTP 200 | `url`, `healthPath`, `method`, `headers`, `body` |
| `command` | Run shell command, check exit 0 | `command`, `timeout` |
| `file-exists` | Check path exists | `path` |

### 3. Run

```bash
node server.js
```

### 4. Persist (systemd user service)

```ini
# ~/.config/systemd/user/bot-status.service
[Unit]
Description=Bot Status API
After=network.target

[Service]
Type=simple
WorkingDirectory=/path/to/bot-status
ExecStart=/usr/bin/node server.js
Restart=always
RestartSec=5
Environment=PORT=3200
Environment=HOME=/home/youruser
Environment=PATH=/usr/local/bin:/usr/bin:/bin

[Install]
WantedBy=default.target
```

```bash
systemctl --user daemon-reload
systemctl --user enable --now bot-status
loginctl enable-linger $USER  # survive logout
```

### 5. Context/Vitals from OpenClaw

The bot should periodically write vitals to `heartbeat-state.json` in its workspace:

```json
{
  "vitals": {
    "contextPercent": 62,
    "contextUsed": 124000,
    "contextMax": 200000,
    "model": "claude-opus-4-5",
    "updatedAt": 1770304500000
  }
}
```

Add this to your HEARTBEAT.md so the bot updates it each heartbeat cycle.

## Endpoints

| Endpoint | Description |
|----------|-------------|
| `GET /status` | Full status JSON (cached) |
| `GET /health` | Simple `{"status":"ok"}` |

## Architecture

- **Zero dependencies** — Node.js built-ins only (`http`, `fs`, `child_process`)
- **Non-blocking** — All shell commands use async `exec`, never `execSync`
- **Background refresh** — Cache refreshes on interval, requests always served from cache instantly (~10ms)
- **Config-driven** — Everything in `config.json`, no hardcoded values

IT運用・セキュリティの人気スキル

データ月:2026-09 · ダウンロード数、スター数、インストール数は公開スキルレジストリ(ClawHub、SkillHub)から月単位で集計しています。詳しくはデータの方法論をご覧ください。