返回顶部
r

rts-dashboard

RTS (Real-Time Strategy) style monitoring dashboard for OpenClaw. Provides a browser-based tactical command center with real-time visualization of agents, skills, sessions, cron jobs, and system vitals. Features include a tactical map with active agents, radar scan animation, agent/skill detail panels, and chat messaging via Gateway WebSocket (chat.send). Use when the user wants to monitor OpenClaw status visually, launch a dashboard, or view agents/sessions/skills in a game-style UI.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
131
下载量
0
收藏
概述
安装方式
版本历史

rts-dashboard

# RTS Dashboard A StarCraft/C&C-inspired tactical command center for OpenClaw monitoring. ## Agent Actions ### Start Dashboard When the user wants to open/view/launch the dashboard, or when visiting `127.0.0.1:4320` fails: 1. **Check if already running:** ```powershell Get-NetTCPConnection -LocalPort 4320 -ErrorAction SilentlyContinue ``` 2. **If not running, start it in background:** ```powershell cd "<skill_dir>"; node server.js ``` Use `exec` with `background: true` and `yieldMs: 3000`, then check logs to confirm `⚡ Online` message. 3. **If `node_modules/` is missing**, run `npm install` first. 4. Tell the user: `http://127.0.0.1:4320` is ready. ### Stop Dashboard ```powershell Get-NetTCPConnection -LocalPort 4320 | ForEach-Object { Stop-Process -Id $_.OwningProcess -Force } ``` ## Quick Start (Manual) ```bash cd rts-dashboard npm install node server.js ``` Open `http://127.0.0.1:4320` in browser. ## Requirements - Node.js 18+ - OpenClaw Gateway running (default port 18789) - `ws` npm package (auto-installed via `npm install`) ## Features - **Tactical map**: Active agents as diamond nodes with orbiting skill dots and trail animation - **Left panel**: Full agent list + skill library with search - **Right panel**: System vitals (CPU/RAM), gateway status, event logs, selected target details - **Agent detail**: Model, current task, deployed skills, recent conversation - **Skill detail**: Description, use cases, related agents - **Chat bar**: Send messages to agents via Gateway WebSocket `chat.send` RPC - **Cron jobs**: Display scheduled tasks with status on the map - **5-min cooldown**: Agents remain visible for 5 minutes after going offline (amber blink + countdown) - **CRT scan line + radar sweep + grid**: Full military-UI aesthetic ## Configuration Environment variables (all optional): | Variable | Default | Description | |----------|---------|-------------| | `RTS_PORT` | `4320` | Dashboard HTTP port | | `OPENCLAW_GATEWAY_PORT` | `18789` | Gateway port | | `OPENCLAW_HOME` | `~/.openclaw` | OpenClaw home directory | | `OPENCLAW_GATEWAY_TOKEN` | (from config) | Gateway auth token | ## Authentication The dashboard implements Ed25519 device signing for Gateway WebSocket authentication: - On first launch, generates a keypair and saves to `.device-keys.json` - Signs each `connect.challenge` nonce using v3 protocol - Gateway token is auto-discovered from `OPENCLAW_GATEWAY_TOKEN` env var or `gateway.auth.token` in `openclaw.json` - Localhost connections are auto-approved by Gateway (no manual pairing needed) - **No `dangerouslyDisableDeviceAuth` or `allowInsecureAuth` required** ## Cross-Platform - OpenClaw installation path auto-detected via `require.resolve` → `which/where` → `npm root -g` → fallback paths - Skill directories: `~/.agents/skills/` (user) + `{openclaw}/skills/` (built-in) + `{openclaw}/extensions/*/skills/` (extensions) - Agent/skill config parsed via `JSON.parse` (robust, no regex) - Works on Windows, macOS, and Linux ## Gateway Requirements The dashboard needs the Gateway to allow its WebSocket origin: ```json5 { gateway: { controlUi: { allowedOrigins: ["http://127.0.0.1:4320"] } } } ``` This is the only Gateway config change needed. Apply with `openclaw config set gateway.controlUi.allowedOrigins '["http://127.0.0.1:4320"]'` or via the Control UI config panel. ## Data Sources (refreshed every 3 seconds) - **Agents**: `~/.openclaw/openclaw.json` → `agents.list` - **Skills**: Filesystem scan of skill directories - **Active sessions**: `.jsonl.lock` files in `~/.openclaw/agents/*/sessions/` - **System vitals**: Node.js `os` module (CPU delta sampling every 2s) - **Gateway status**: HTTP GET to gateway root - **Cron jobs**: `~/.openclaw/cron/jobs.json` ## File Structure ``` rts-dashboard/ ├── SKILL.md # This file ├── server.js # Node.js server (HTTP + WebSocket) ├── package.json # Dependencies (ws only) └── public/ └── index.html # Single-file dashboard (HTML + CSS + Canvas JS) ```

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 rts-dashboard-1776026677 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 rts-dashboard-1776026677 技能

通过命令行安装

skillhub install rts-dashboard-1776026677

下载 Zip 包

⬇ 下载 rts-dashboard v1.0.0

文件大小: 35.73 KB | 发布时间: 2026-4-13 11:50

v1.0.0 最新 2026-4-13 11:50
Initial release

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部