Install
openclaw skills install claw-agent-cockpitClawHub Security found sensitive or high-impact capabilities. Review the scan results before using.
CLAW Agent 智控驾驶舱 - 专为 OpenClaw Coding Plan 订阅用户打造的一站式运维监控平台。功能包括:(1) API 额度监控与四级告警 (2) 自学习预测引擎(越用越准)(3) 每日用量趋势分析 (4) Token 用量透视 (5) Cron 定时任务管理 (6) 多 Agent 状态监控 (7) 订阅到期倒计时与一键续订。Deploy a full-featured cost & operations dashboard for OpenClaw Coding Plan subscribers. Use when setting up API quota monitoring, Agent status tracking, token usage analysis, Cron management, or subscription expiry tracking.
openclaw skills install claw-agent-cockpitCoding Plan Edition · 专为 OpenClaw Coding Plan 订阅用户打造
CLAW Agent 智控驾驶舱是面向 OpenClaw Coding Plan 订阅用户的一站式运维监控平台,集额度管控、智能预测、Agent 状态监控、资源分析、定时任务管理于一体,帮助用户在有限的 API 额度内高效运营多 Agent 团队。
cp -r assets/dashboard/* "$OPENCLAW_WORKSPACE/"
npm install -g pm2
cd "$OPENCLAW_WORKSPACE" && pm2 start ecosystem.config.js
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" |
效果:
| 等级 | 触发条件 | 颜色 | 建议操作 |
|---|---|---|---|
| 正常 | 预估月末 ≤70% | 🟢 | 无需操作 |
| 关注 | 预估月末 >70% | 🔵 | 关注趋势 |
| 警告 | 预估月末 >85% | 🟡 | 减少非必要调用 |
| 危险 | 预估月末 >100% | 🔴 | 立即节流! |
| 状态 | 含义 |
|---|---|
| 🟢 正常 | 任务进行中 |
| 🔵 休息 | 任务完成,≤24h 未活动 |
| 🟠 待业 | ≥24h 但 <7天 未活动 |
| 🔴 失联 | ≥7 天未活动 |
页面顶部显示 Lite 订阅套餐的到期倒计时:
用户填入实际值
→ 系统对比同期 Token 增量
→ 反推 tokensPerCall 参数
→ EMA 指数平滑更新(α=0.4)
→ 下次预测使用校准后参数
→ 填得越多,预测越准
| 数据 | 更新方式 | 频率 | API 消耗 |
|---|---|---|---|
| Agent 状态 | Cron 自动 | 每 3 小时 | 2-3 次/轮 |
| Token 追踪 | 本地计算 | 每 3 分钟 | 0(零消耗) |
| 预测值 | 本地计算 | 每 3 分钟 | 0(零消耗) |
| 实际值 | 手动填入 | 建议每天 1 次 | 0(零消耗) |
部署后需创建数据更新 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 存在且格式正确npm install -g pm2🦞 CLAW Agent 智控驾驶舱 v1.1 · Powered by OpenClaw