认证监控
OpenClaw 通过openclaw models status 暴露 OAuth 到期健康状态。可用于自动化与告警;
脚本只是面向手机流程的可选补充。
首选:CLI 检查(可移植)
0: 正常1: 已过期或缺少凭据2: 即将到期(24 小时内)
可选脚本(运维 / 手机流程)
这些脚本位于scripts/ 下,均为可选。它们假设你能通过 SSH 访问网关主机,
并针对 systemd + Termux 做了适配。
scripts/claude-auth-status.sh现在以openclaw models status --json作为权威数据源 (CLI 不可用时回退到直接读文件), 因此计时器环境需要把openclaw放在PATH中。scripts/auth-monitor.sh: cron/systemd 定时器目标;发送告警(ntfy 或手机)。scripts/systemd/openclaw-auth-monitor.{service,timer}: systemd 用户定时器。scripts/claude-auth-status.sh: Claude Code + OpenClaw 认证检查器(full/json/simple)。scripts/mobile-reauth.sh: 通过 SSH 引导重新认证。scripts/termux-quick-auth.sh: 一键小组件状态 + 打开认证 URL。scripts/termux-auth-widget.sh: 完整引导式小组件流程。scripts/termux-sync-widget.sh: 同步 Claude Code 凭据 → OpenClaw。