Install
openclaw skills install gateway-monitorProvides real-time monitoring, log search, service status, alerts, and one-click config restore for OpenClaw Gateway and related services.
openclaw skills install gateway-monitor实时监控 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)
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 更新
*** 填充# 使用 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 &
MIT License
欢迎提 Issue 和 PR!