🦀 ClawHub
Gateway Monitor
by @yes999zc
Provides real-time monitoring, log search, service status, alerts, and one-click config restore for OpenClaw Gateway and related services.
TERMINAL
clawhub install gateway-monitor📖 About This Skill
Gateway Monitor - OpenClaw 监控面板
实时监控 OpenClaw Gateway 状态、日志检索、服务健康检查的一站式监控面板。
功能特性
快速开始
安装
# 克隆项目
git clone https://github.com/yes999zc/gateway-monitor.git
cd gateway-monitor无需依赖,直接运行
node server.js浏览器访问
open http://127.0.0.1:18990
环境变量配置
# 可选配置
export PORT=18990 # 服务端口(默认 18990)
export OMLX_MODELS_URL=http://127.0.0.1:9981/v1/models # oMLX 模型端点
export OMLX_API_KEY=8888 # oMLX API 密钥
export LITELLM_BASE_URL=http://127.0.0.1:4000 # LiteLLM 端点
export LITELLM_CONTAINER_NAME=litellm-omlx # LiteLLM docker 容器名
export LITELLM_AUTO_WAKE_DEFAULT=0 # 是否默认自动唤起(0/1)
API 端点
GET / - 仪表盘页面GET /api/summary - 聚合状态快照GET /api/logs - 日志列表GET /api/gateway-status - Gateway 状态GET /api/launchd-status - launchd 服务状态GET /api/restore-config?confirm=true - 恢复配置GET /api/gateway-restart?confirm=true - 重启 GatewayGET /api/litellm-status?autoWake=1 - LiteLLM 状态(可自动唤起)GET /api/litellm-control?action=wake|start|stop|restart&confirm=true - 控制 LiteLLM 容器GET /api/omlx-capabilities - oMLX 能力检测(模型/VLM/Embedding/Rerank)GET /api/litellm-wake - LiteLLM 按需唤起GET /api/omlx-update?check=1 - 检查 oMLX 更新监控面板截图
使用场景
1. Gateway 健康检查:实时监控 Gateway 运行状态、token 使用情况 2. 日志排查:快速定位错误日志,支持关键字搜索 3. 配置恢复:配置出错时一键从备份恢复 4. 服务管理:LiteLLM、oMLX 等服务状态监控与控制
安全说明
*** 填充后台运行
# 使用 launchd 托管(推荐)
cp bin/ai.openclaw.gateway-monitor.plist ~/Library/LaunchAgents/
launchctl load ~/Library/LaunchAgents/ai.openclaw.gateway-monitor.plist手动后台运行
nohup node server.js > gateway-monitor.log 2>&1 &
更新日志
v1.0.1
v1.0.0
许可证
MIT License
贡献
欢迎提 Issue 和 PR!