You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/getting-started.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -44,15 +44,17 @@ codex auth login
44
44
Expected flow:
45
45
46
46
Backup restore appears under the `Recover saved accounts` heading in the onboarding menu. This flow does not add any new CLI flags or npm scripts.
47
+
See upgrade note: [onboarding restore behavior](upgrade.md#onboarding-restore-note).
47
48
48
49
1. If no accounts are saved yet, the terminal opens directly to the sign-in menu.
49
50
2. Choose one of the sign-in options:
50
51
-`Open Browser (Easy)` for the normal OAuth flow
51
52
-`Manual / Incognito` when you need to paste the callback yourself
52
-
-`Recover saved accounts` when the current pool is empty and a named backup exists under `~/.codex/multi-auth/backups` by default, or under `%CODEX_MULTI_AUTH_DIR%\backups` if you override the storage root with `CODEX_MULTI_AUTH_DIR`
53
+
-`Recover saved accounts` when the current pool is empty and at least one valid named backup exists under `~/.codex/multi-auth/backups` by default, or under `%CODEX_MULTI_AUTH_DIR%\backups` if you override the storage root with `CODEX_MULTI_AUTH_DIR`
53
54
3. If you choose `Recover saved accounts`, the next menu lets you either:
54
55
- load the newest valid backup automatically
55
56
- pick a specific backup from a newest-first list
57
+
Empty, unreadable, or non-JSON backup sidecar files are skipped, so the menu entry appears only when at least one backup parses successfully and contains at least one account.
56
58
4. If you use browser or manual sign-in, complete the official OAuth flow and return to the terminal.
57
59
5. If you load a backup, the selected backup is restored, its active account is synced back into Codex CLI auth, and the login flow continues with that restored pool.
58
60
6. Confirm the restored or newly signed-in account appears in the saved account list.
0 commit comments