← 返回 Skills 市场
mumuli2021

CLAW Agent 智控驾驶舱

作者 mumuli2021 · GitHub ↗ · v1.2.7 · MIT-0
cross-platform ⚠ suspicious
98
总下载
0
收藏
0
当前安装
10
版本数
在 OpenClaw 中安装
/install claw-agent-cockpit
功能描述
CLAW Agent 智控驾驶舱 - 专为 OpenClaw Coding Plan 订阅用户打造的一站式运维监控平台。功能包括:(1) API 额度监控与四级告警 (2) 自学习预测引擎(越用越准)(3) 每日用量趋势分析 (4) Token 用量透视 (5) Cron 定时任务管理 (6) 多 Agent 状...
使用说明 (SKILL.md)

🦞 CLAW Agent 智控驾驶舱

Coding Plan Edition · 专为 OpenClaw Coding Plan 订阅用户打造

产品简介

CLAW Agent 智控驾驶舱是面向 OpenClaw Coding Plan 订阅用户的一站式运维监控平台,集额度管控、智能预测、Agent 状态监控、资源分析、定时任务管理于一体,帮助用户在有限的 API 额度内高效运营多 Agent 团队。

核心亮点

  • 🎓 自学习预测 — 根据实际数据自动校准预测参数,越用越准
  • 📊 实际 vs 预测 — 双轨对比,一眼看清消耗趋势和偏差
  • 🚨 四级告警 — 正常→关注→警告→危险,提前预警超额风险
  • 🧠 Token 透视 — 各 Agent 资源消耗全景分析
  • Cron 可控 — 页面直接管理定时任务频率和开关
  • 🦞 订阅倒计时 — 实时天/时/分/秒倒计时 + 进度条 + 四级颜色提醒 + 一键续订
  • 💰 零额外消耗 — 本地数据追踪,不浪费 API 调用

快速部署

1. 复制资源文件到工作区

cp -r assets/dashboard/* "$OPENCLAW_WORKSPACE/"

2. 安装 PM2(如未安装)

npm install -g pm2

3. 启动服务

cd "$OPENCLAW_WORKSPACE" && pm2 start ecosystem.config.js

4. 打开驾驶舱

http://localhost:8888/agent-dashboard.html

配置说明

编辑 quota-data.json 匹配你的 Coding Plan:

配置项 说明 示例
config.monthlyQuota 月度 API 调用上限 18000
config.billingCycleStart 计费周期开始日期 "2026-04-11"
config.billingCycleEnd 计费周期结束日期 "2026-05-11"

操作手册

📝 填写实际额度(核心操作)

  1. 登录阿里云控制台,查看 Coding Plan 当前已用次数
  2. 在页面 "📝 实际已用" 输入框中填入数字
  3. 点击 "保存"

效果:

  • 环形图和告警基于实际值更新
  • 对比表显示实际 vs 预测偏差
  • 系统自动学习,校准预测参数
  • 建议每天填 1 次,越频繁预测越准

🚨 告警等级说明

等级 触发条件 颜色 建议操作
正常 预估月末 ≤70% 🟢 无需操作
关注 预估月末 >70% 🔵 关注趋势
警告 预估月末 >85% 🟡 减少非必要调用
危险 预估月末 >100% 🔴 立即节流!

⏰ 管理 Cron 任务

  1. 找到 "⏰ Cron 定时任务管理" 区域
  2. 开关控制启用/禁用
  3. 下拉框调整频率
  4. 修改后点击 "保存并生效"

🧠 分析 Agent 消耗

  • 柱状图:哪个 Agent 消耗最多
  • 饼图:各 Agent 占比分布
  • 针对高消耗 Agent 优化策略

🤖 Agent 状态说明

状态 含义
🟢 正常 任务进行中
🔵 休息 任务完成,≤24h 未活动
🟠 待业 ≥24h 但 \x3C7天 未活动
🔴 失联 ≥7 天未活动

🦞 订阅到期倒计时

页面顶部显示 Lite 订阅套餐的到期倒计时:

  • 大字显示剩余天数 + 时:分:秒实时跳动
  • 进度条显示订阅剩余比例
  • 四级颜色提醒:🟢 >14天安全 → 🔵 714天注意 → 🟡 37天警告 → 🔴 ≤3天紧急
  • 🔄 续订按钮:点击弹出确认弹窗,确认后自动延长 30 天
  • 到期日、总天数、进度条随续订自动更新

自学习预测原理

用户填入实际值
  → 系统对比同期 Token 增量
  → 反推 tokensPerCall 参数
  → EMA 指数平滑更新(α=0.4)
  → 下次预测使用校准后参数
  → 填得越多,预测越准

数据更新机制

数据 更新方式 频率 API 消耗
Agent 状态 Cron 自动 每 3 小时 2-3 次/轮
Token 追踪 本地计算 每 3 分钟 0(零消耗)
预测值 本地计算 每 3 分钟 0(零消耗)
实际值 手动填入 建议每天 1 次 0(零消耗)

Cron 配置

部署后需创建数据更新 Cron,详见 references/cron-setup.md

文件说明

文件 用途
agent-dashboard.html 驾驶舱主页面
agent-api.js API 服务 (port 8889)
update-agent-data.js Agent 数据更新器
quota-tracker.js 自学习额度预测器
ecosystem.config.js PM2 服务配置
agent-data.json Agent 状态数据
quota-data.json 额度追踪数据

故障排查

  • 页面空白pm2 list 检查服务状态
  • 无数据 → 确认 agent-data.json 存在且格式正确
  • 预测不动 → 填入实际值触发校准
  • PM2 未找到npm install -g pm2

🦞 CLAW Agent 智控驾驶舱 v1.1 · Powered by OpenClaw

安全使用建议
Key points to consider before installing: - Clarify runtime requirements: the package expects OPENCLAW_WORKSPACE and requires python3 and pm2 (npm -g). These are not listed in metadata — set OPENCLAW_WORKSPACE to a dedicated, empty workspace directory before running. - Network exposure: agent-api.js listens on 0.0.0.0 and returns CORS '*' and the ecosystem config starts python's http.server bound to 0.0.0.0. This makes the dashboard and API reachable from the network. If you run this on any machine with external network access, remote parties could read or POST to endpoints and modify quota/cron files. Mitigations: (a) run behind a firewall or bind services to 127.0.0.1 only (change server.listen host and python server binding), (b) restrict CORS and add authentication or IP filtering, or (c) run in an isolated VM/container with no sensitive files. - Unauthenticated write endpoints: POST /api/quota and POST /api/cron-update write JSON files under the workspace without auth. Treat the workspace as untrusted and do not place secrets or other sensitive files there. - Cron guidance and session collection: the Cron guide suggests calling sessions_list and writing session-derived agent-data.json. That operation requires platform/agent permissions and may surface sensitive session/context data. Only enable such Cron tasks if you have reviewed what data will be collected, limited permissions, and storage policies. If you cannot confirm the Cron payload is safe, avoid enabling automated collection. - Run a code review: if you decide to install, inspect and (if needed) modify agent-api.js and ecosystem.config.js to bind to localhost, remove or tighten CORS, and add auth. Also verify there are no other files in OPENCLAW_WORKSPACE that you don't expect, and back up any existing workspace data before copying files in. - If unsure, test locally in an isolated environment (throwaway VM/container) and do not expose the service to the internet until you’ve hardened access controls.
功能分析
Type: OpenClaw Skill Name: claw-agent-cockpit Version: 1.2.7 The skill bundle provides a legitimate monitoring dashboard for OpenClaw agents, featuring API quota tracking, token usage analysis, and agent status monitoring. The implementation consists of a Node.js API server (agent-api.js), a PM2 configuration (ecosystem.config.js) for process management, and a frontend dashboard (agent-dashboard.html). While the API is unauthenticated and binds to all network interfaces (0.0.0.0), these are common characteristics for local development utilities and the code contains no evidence of malicious intent, data exfiltration, or unauthorized execution.
能力评估
Purpose & Capability
Code (dashboard frontend, local API, quota tracker, updater) matches the stated purpose of a local operations dashboard and local quota prediction. However SKILL.md and ecosystem.config.js assume an OPENCLAW_WORKSPACE path and require runtime tools (pm2, python3) even though metadata lists no required env vars or binaries — this mismatch should be clarified.
Instruction Scope
Runtime instructions and included code read/write workspace files (agent-data.json, quota-data.json) and expose an HTTP API for reads and writes. The SKILL.md's references to creating a Cron that runs an agent 'sessions_list' operation indicate instructions to collect platform session/context data (sensitive) — but no credentials or authorization are declared. The manual and Cron guide therefore expand scope beyond the local dashboard and implicitly rely on agent/platform privileges.
Install Mechanism
This is an instruction-only skill (no external install download), which lowers install risk. Still, SKILL.md instructs npm install -g pm2 and ecosystem.config.js runs python3 -m http.server; metadata did not declare these required binaries. That discrepancy (no declared required binaries but explicit install/run steps) is inconsistent.
Credentials
The skill does not request credentials in metadata, but it expects OPENCLAW_WORKSPACE (used in cp commands and PM2 config) and the Cron guide implies calling platform APIs (sessions_list) that require agent/platform credentials. Missing declaration of these environment/config needs is disproportionate and unclear.
Persistence & Privilege
The included services bind to 0.0.0.0 and set CORS Access-Control-Allow-Origin: '*' (both in the local API and python http.server being started), exposing the dashboard and unauthenticated endpoints (e.g., POST /api/quota, POST /api/cron-update) to the network. The API accepts writes and saves files without authentication, which could allow remote modification or data exposure if the host is reachable. always:false mitigates forced injection, but network exposure is a significant operational risk.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install claw-agent-cockpit
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /claw-agent-cockpit 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.2.7
v1.2.7: 修复 API 路由无法处理带查询参数的 URL(cache-busting 时间戳导致额度监控区域不显示)
v1.2.6
v1.2.6: 修复前端重复处理每日数据问题(直接使用后端返回的每日数据,删除前端缩放逻辑)
v1.2.5
v1.2.5: 添加 API 请求 cache-busting 参数,避免浏览器缓存旧数据
v1.2.4
v1.2.4: 修复每日用量趋势图数据严重偏差问题(用实际历史记录增量重新分配每日数据,确保总和=实际值)+ 工作区与技能目录文件同步
v1.2.3
v1.2.3: 修复每日用量趋势图数据不准问题(用实际历史记录重新分配每日数据,确保总和=实际值)
v1.2.2
v1.2.2: 修复预测数据不同步问题(保存实际值时立即触发 updateQuota,让 stats 与 manualStats 保持一致)
v1.2.1
v1.2.1: 修复日均消耗预测偏差问题(有实际值时优先用实际值计算日均,预测更准确)
v1.2.0
v1.2: 新增订阅到期倒计时(实时天/时/分/秒 + 四级颜色阶梯 + 进度条)+ 一键续订按钮(弹窗确认,自动延长30天)+ SKILL.md 文档更新
v1.1.0
v1.1.0: 添加完整中文操作手册、产品介绍、告警说明、自学习原理、数据更新机制等内容
v1.0.0
v1.0.0: Initial release - Quota monitoring, self-learning prediction, Agent status dashboard, Token analysis, Cron management. Built for OpenClaw Coding Plan subscribers.
元数据
Slug claw-agent-cockpit
版本 1.2.7
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 10
常见问题

CLAW Agent 智控驾驶舱 是什么?

CLAW Agent 智控驾驶舱 - 专为 OpenClaw Coding Plan 订阅用户打造的一站式运维监控平台。功能包括:(1) API 额度监控与四级告警 (2) 自学习预测引擎(越用越准)(3) 每日用量趋势分析 (4) Token 用量透视 (5) Cron 定时任务管理 (6) 多 Agent 状... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 98 次。

如何安装 CLAW Agent 智控驾驶舱?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install claw-agent-cockpit」即可一键安装,无需额外配置。

CLAW Agent 智控驾驶舱 是免费的吗?

是的,CLAW Agent 智控驾驶舱 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

CLAW Agent 智控驾驶舱 支持哪些平台?

CLAW Agent 智控驾驶舱 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 CLAW Agent 智控驾驶舱?

由 mumuli2021(@mumuli2021)开发并维护,当前版本 v1.2.7。

💬 留言讨论