Recover administrator access
Recovery is deliberately available only from a private terminal on the Alexandria server.
Secure recovery procedure
- Sign in locally to the Mac that runs Alexandria.
- Stop the Alexandria service so active console sessions are invalidated and the OAuth state file cannot be changed concurrently.
- From the installed Alexandria service directory, load the same
ALEX_OAUTH_STATE_FILEvalue used by the service. - Run
npm run oauth:reset -- <administrator-username>and enter the new password privately when prompted. - Restart the service and sign in with the new password.
The reset preserves the existing account and permissions, revokes its access and refresh tokens, and never displays or transmits the old password. Connected apps for this account must authorize again.