{
  "schemaVersion": "1.0",
  "item": {
    "slug": "bot-status-api",
    "name": "Bot Status API",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/suspect80/bot-status-api",
    "canonicalUrl": "https://clawhub.ai/suspect80/bot-status-api",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/bot-status-api",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=bot-status-api",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "README.md",
      "SKILL.md",
      "collectors/core.js",
      "collectors/devservers.js",
      "collectors/docker.js",
      "collectors/email.js"
    ],
    "primaryDoc": "SKILL.md",
    "quickSetup": [
      "Download the package from Yavira.",
      "Extract the archive and review SKILL.md first.",
      "Import or place the package into your OpenClaw setup."
    ],
    "agentAssist": {
      "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
      "steps": [
        "Download the package from Yavira.",
        "Extract it into a folder your agent can access.",
        "Paste one of the prompts below and point your agent at the extracted folder."
      ],
      "prompts": [
        {
          "label": "New install",
          "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Then review README.md for any prerequisites, environment setup, or post-install checks. Tell me what you changed and call out any manual steps you could not complete."
        },
        {
          "label": "Upgrade existing",
          "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Then review README.md for any prerequisites, environment setup, or post-install checks. Summarize what changed and any follow-up checks I should run."
        }
      ]
    },
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-30T16:55:25.780Z",
      "expiresAt": "2026-05-07T16:55:25.780Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
        "contentDisposition": "attachment; filename=\"network-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/bot-status-api"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    },
    "downloadPageUrl": "https://openagent3.xyz/downloads/bot-status-api",
    "agentPageUrl": "https://openagent3.xyz/skills/bot-status-api/agent",
    "manifestUrl": "https://openagent3.xyz/skills/bot-status-api/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/bot-status-api/agent.md"
  },
  "agentAssist": {
    "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
    "steps": [
      "Download the package from Yavira.",
      "Extract it into a folder your agent can access.",
      "Paste one of the prompts below and point your agent at the extracted folder."
    ],
    "prompts": [
      {
        "label": "New install",
        "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Then review README.md for any prerequisites, environment setup, or post-install checks. Tell me what you changed and call out any manual steps you could not complete."
      },
      {
        "label": "Upgrade existing",
        "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Then review README.md for any prerequisites, environment setup, or post-install checks. Summarize what changed and any follow-up checks I should run."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "Bot Status API",
        "body": "A configurable HTTP service that exposes your OpenClaw bot's operational status as JSON. Designed for dashboard integration, monitoring, and transparency."
      },
      {
        "title": "What It Provides",
        "body": "Bot Core: Online status, model, context usage, uptime, heartbeat timing\nServices: Health checks for any HTTP endpoint, CLI tool, or file path\nEmail: Unread counts from any email provider (himalaya, gog, etc.)\nCron Jobs: Reads directly from OpenClaw's cron/jobs.json\nDocker: Container health via Portainer API\nDev Servers: Auto-detects running dev servers by process grep\nSkills: Lists installed and available OpenClaw skills\nSystem: CPU, RAM, Disk metrics from /proc"
      },
      {
        "title": "1. Copy the service files",
        "body": "Copy server.js, collectors/, and package.json to your desired location."
      },
      {
        "title": "2. Create config.json",
        "body": "Copy config.example.json to config.json and customize:\n\n{\n  \"port\": 3200,\n  \"name\": \"MyBot\",\n  \"workspace\": \"/path/to/.openclaw/workspace\",\n  \"openclawHome\": \"/path/to/.openclaw\",\n  \"cache\": { \"ttlMs\": 10000 },\n  \"model\": \"claude-sonnet-4-20250514\",\n  \"skillDirs\": [\"/path/to/openclaw/skills\"],\n  \"services\": [\n    { \"name\": \"myservice\", \"type\": \"http\", \"url\": \"http://...\", \"healthPath\": \"/health\" }\n  ]\n}"
      },
      {
        "title": "Service Check Types",
        "body": "TypeDescriptionConfighttpFetch URL, check HTTP 200url, healthPath, method, headers, bodycommandRun shell command, check exit 0command, timeoutfile-existsCheck path existspath"
      },
      {
        "title": "3. Run",
        "body": "node server.js"
      },
      {
        "title": "4. Persist (systemd user service)",
        "body": "# ~/.config/systemd/user/bot-status.service\n[Unit]\nDescription=Bot Status API\nAfter=network.target\n\n[Service]\nType=simple\nWorkingDirectory=/path/to/bot-status\nExecStart=/usr/bin/node server.js\nRestart=always\nRestartSec=5\nEnvironment=PORT=3200\nEnvironment=HOME=/home/youruser\nEnvironment=PATH=/usr/local/bin:/usr/bin:/bin\n\n[Install]\nWantedBy=default.target\n\nsystemctl --user daemon-reload\nsystemctl --user enable --now bot-status\nloginctl enable-linger $USER  # survive logout"
      },
      {
        "title": "5. Context/Vitals from OpenClaw",
        "body": "The bot should periodically write vitals to heartbeat-state.json in its workspace:\n\n{\n  \"vitals\": {\n    \"contextPercent\": 62,\n    \"contextUsed\": 124000,\n    \"contextMax\": 200000,\n    \"model\": \"claude-opus-4-5\",\n    \"updatedAt\": 1770304500000\n  }\n}\n\nAdd this to your HEARTBEAT.md so the bot updates it each heartbeat cycle."
      },
      {
        "title": "Endpoints",
        "body": "EndpointDescriptionGET /statusFull status JSON (cached)GET /healthSimple {\"status\":\"ok\"}"
      },
      {
        "title": "Architecture",
        "body": "Zero dependencies — Node.js built-ins only (http, fs, child_process)\nNon-blocking — All shell commands use async exec, never execSync\nBackground refresh — Cache refreshes on interval, requests always served from cache instantly (~10ms)\nConfig-driven — Everything in config.json, no hardcoded values"
      }
    ],
    "body": "Bot Status API\n\nA configurable HTTP service that exposes your OpenClaw bot's operational status as JSON. Designed for dashboard integration, monitoring, and transparency.\n\nWhat It Provides\nBot Core: Online status, model, context usage, uptime, heartbeat timing\nServices: Health checks for any HTTP endpoint, CLI tool, or file path\nEmail: Unread counts from any email provider (himalaya, gog, etc.)\nCron Jobs: Reads directly from OpenClaw's cron/jobs.json\nDocker: Container health via Portainer API\nDev Servers: Auto-detects running dev servers by process grep\nSkills: Lists installed and available OpenClaw skills\nSystem: CPU, RAM, Disk metrics from /proc\nSetup\n1. Copy the service files\n\nCopy server.js, collectors/, and package.json to your desired location.\n\n2. Create config.json\n\nCopy config.example.json to config.json and customize:\n\n{\n  \"port\": 3200,\n  \"name\": \"MyBot\",\n  \"workspace\": \"/path/to/.openclaw/workspace\",\n  \"openclawHome\": \"/path/to/.openclaw\",\n  \"cache\": { \"ttlMs\": 10000 },\n  \"model\": \"claude-sonnet-4-20250514\",\n  \"skillDirs\": [\"/path/to/openclaw/skills\"],\n  \"services\": [\n    { \"name\": \"myservice\", \"type\": \"http\", \"url\": \"http://...\", \"healthPath\": \"/health\" }\n  ]\n}\n\nService Check Types\nType\tDescription\tConfig\nhttp\tFetch URL, check HTTP 200\turl, healthPath, method, headers, body\ncommand\tRun shell command, check exit 0\tcommand, timeout\nfile-exists\tCheck path exists\tpath\n3. Run\nnode server.js\n\n4. Persist (systemd user service)\n# ~/.config/systemd/user/bot-status.service\n[Unit]\nDescription=Bot Status API\nAfter=network.target\n\n[Service]\nType=simple\nWorkingDirectory=/path/to/bot-status\nExecStart=/usr/bin/node server.js\nRestart=always\nRestartSec=5\nEnvironment=PORT=3200\nEnvironment=HOME=/home/youruser\nEnvironment=PATH=/usr/local/bin:/usr/bin:/bin\n\n[Install]\nWantedBy=default.target\n\nsystemctl --user daemon-reload\nsystemctl --user enable --now bot-status\nloginctl enable-linger $USER  # survive logout\n\n5. Context/Vitals from OpenClaw\n\nThe bot should periodically write vitals to heartbeat-state.json in its workspace:\n\n{\n  \"vitals\": {\n    \"contextPercent\": 62,\n    \"contextUsed\": 124000,\n    \"contextMax\": 200000,\n    \"model\": \"claude-opus-4-5\",\n    \"updatedAt\": 1770304500000\n  }\n}\n\n\nAdd this to your HEARTBEAT.md so the bot updates it each heartbeat cycle.\n\nEndpoints\nEndpoint\tDescription\nGET /status\tFull status JSON (cached)\nGET /health\tSimple {\"status\":\"ok\"}\nArchitecture\nZero dependencies — Node.js built-ins only (http, fs, child_process)\nNon-blocking — All shell commands use async exec, never execSync\nBackground refresh — Cache refreshes on interval, requests always served from cache instantly (~10ms)\nConfig-driven — Everything in config.json, no hardcoded values"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/suspect80/bot-status-api",
    "publisherUrl": "https://clawhub.ai/suspect80/bot-status-api",
    "owner": "suspect80",
    "version": "1.0.1",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/bot-status-api",
    "downloadUrl": "https://openagent3.xyz/downloads/bot-status-api",
    "agentUrl": "https://openagent3.xyz/skills/bot-status-api/agent",
    "manifestUrl": "https://openagent3.xyz/skills/bot-status-api/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/bot-status-api/agent.md"
  }
}