Auth Monitoring
Source: https://docs.datzi.ai/automation/auth-monitoringAuth monitoring
Datzi exposes OAuth expiry health viadatzi models status. Use that for
automation and alerting; scripts are optional extras for phone workflows.
Preferred: CLI check (portable)
0: OK1: expired or missing credentials2: expiring soon (within 24h)
Optional scripts (ops / phone workflows)
These live underscripts/ and are optional. They assume SSH access to the
gateway host and are tuned for systemd + Termux.
scripts/claude-auth-status.shnow usesdatzi models status --jsonas the source of truth (falling back to direct file reads if the CLI is unavailable), so keepdatzionPATHfor timers.scripts/auth-monitor.sh: cron/systemd timer target; sends alerts (ntfy or phone).scripts/systemd/datzi-auth-monitor.{service,timer}: systemd user timer.scripts/claude-auth-status.sh: Claude Code + Datzi auth checker (full/json/simple).scripts/mobile-reauth.sh: guided re-auth flow over SSH.scripts/termux-quick-auth.sh: one-tap widget status + open auth URL.scripts/termux-auth-widget.sh: full guided widget flow.scripts/termux-sync-widget.sh: sync Claude Code creds -> Datzi.
