Auth Monitoring
モデルプロバイダーの OAuth 期限切れを監視します。
OpenClaw は '<code className="bg-white/10 px-1.5 py-0.5 rounded text-emerald-300 text-sm">'openclaw models status'</code>' を通じて OAuth 期限切れの健全性を公開します。これを使用して
自動化とアラートを行います。スクリプトは電話ワークフローのオプションのアドオンです。
推奨:CLI チェック(ポータブル)
openclaw models status --check
終了コード:
- '<code className="bg-white/10 px-1.5 py-0.5 rounded text-emerald-300 text-sm">'0'</code>':OK
- '<code className="bg-white/10 px-1.5 py-0.5 rounded text-emerald-300 text-sm">'1'</code>':資格情報の期限切れまたは欠落
- '<code className="bg-white/10 px-1.5 py-0.5 rounded text-emerald-300 text-sm">'2'</code>':まもなく期限切れ(24時間以内)
これは cron/systemd で機能し、追加のスクリプトを必要としません。
オプションのスクリプト(アクション/電話ワークフロー)
これらは '<code className="bg-white/10 px-1.5 py-0.5 rounded text-emerald-300 text-sm">'scripts/'</code>' の下にあり、'<strong>'オプション'</strong>' です。SSH アクセスを想定しています
ゲートウェイホストにアクセスし、systemd + Termux に調整されています。
- '<code className="bg-white/10 px-1.5 py-0.5 rounded text-emerald-300 text-sm">'scripts/claude-auth-status.sh'</code>' は現在 '<code className="bg-white/10 px-1.5 py-0.5 rounded text-emerald-300 text-sm">'openclaw models status --json'</code>' を使用します
信頼できる情報源として(CLI が利用できない場合は直接ファイル読み取りにフォールバック)、
したがって、タイマーのために '<code className="bg-white/10 px-1.5 py-0.5 rounded text-emerald-300 text-sm">'openclaw'</code>' を PATH に残してください。
- '<code className="bg-white/10 px-1.5 py-0.5 rounded text-emerald-300 text-sm">'scripts/auth-monitor.sh'</code>':cron/systemd タイマーターゲット。アラートを送信します(ntfy または電話)。
- <code className="bg-white/10 px-1.5 py-0.5 rounded text-emerald-300 text-sm">scripts/systemd/openclaw-auth-monitor.{service,timer}'</code>:systemd ユーザータイマー。
- '<code className="bg-white/10 px-1.5 py-0.5 rounded text-emerald-300 text-sm">'scripts/claude-auth-status.sh'</code>':Claude コード + OpenClaw 認証チェッカー(完全/json/シンプル)。
- '<code className="bg-white/10 px-1.5 py-0.5 rounded text-emerald-300 text-sm">'scripts/mobile-reauth.sh'</code>':SSH を介した再認証フローのガイド。
- '<code className="bg-white/10 px-1.5 py-0.5 rounded text-emerald-300 text-sm">'scripts/termux-quick-auth.sh'</code>':ワンタップウィジェットステータス + 認証 URL を開く。
- '<code className="bg-white/10 px-1.5 py-0.5 rounded text-emerald-300 text-sm">'scripts/termux-auth-widget.sh'</code>':完全なガイド付きウィジェットフロー。
- '<code className="bg-white/10 px-1.5 py-0.5 rounded text-emerald-300 text-sm">'scripts/termux-sync-widget.sh'</code>':Claude コードクレジットを OpenClaw に同期。
電話の自動化や systemd タイマーが必要ない場合は、これらのスクリプトをスキップしてください。