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
| In-dashboard settings hub | Runtime and display tuning without editing files directly |
57
-
| Browser-first OAuth with manual fallback | Works in normal and constrained terminal environments |
57
+
| Browser-first OAuth with manual fallback |`codex auth login` stays browser-first, while `--manual`, `--no-browser`, and `CODEX_AUTH_NO_BROWSER=1` keep login usable in browser-restricted shells |
58
+
59
+
Manual/non-TTY login accepts the full callback URL on stdin, so automation and host-managed shells can complete auth without relying on a local browser handoff.
Copy file name to clipboardExpand all lines: docs/reference/commands.md
+11Lines changed: 11 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -56,12 +56,23 @@ Compatibility aliases are supported:
56
56
57
57
---
58
58
59
+
## Upgrade Notes
60
+
61
+
-`codex auth login` remains browser-first by default.
62
+
-`codex auth login --manual` and `codex auth login --no-browser` force the manual callback flow instead of launching a browser.
63
+
-`CODEX_AUTH_NO_BROWSER=1` suppresses browser launch for automation/headless sessions. False-like values such as `0` and `false` do not disable browser launch by themselves.
64
+
- In non-TTY/manual shells, pass the full redirect URL on stdin, for example: `echo "http://127.0.0.1:1455/auth/callback?code=..." | codex auth login --manual`.
65
+
- No new npm scripts or storage migration steps were introduced for this auth-flow update.
66
+
67
+
---
68
+
59
69
## Compatibility and Non-TTY Behavior
60
70
61
71
-`codex` remains the primary wrapper entrypoint. It routes `codex auth ...` and the compatibility aliases to the multi-auth runtime, and forwards every other command to the official `@openai/codex` CLI.
62
72
- In non-TTY or host-managed sessions, including `CODEX_TUI=1`, `CODEX_DESKTOP=1`, `TERM_PROGRAM=codex`, or `ELECTRON_RUN_AS_NODE=1`, auth flows degrade to deterministic text behavior.
63
73
- The non-TTY fallback keeps `codex auth login` predictable: it defaults to add-account mode, skips the extra "add another account" prompt, and auto-picks the default workspace selection when a follow-up choice is needed.
64
74
-`codex auth login --manual` keeps the login flow usable in browser-restricted shells by printing the OAuth URL and accepting manual callback input instead of trying to open a browser.
75
+
- In non-TTY/manual shells, provide the full redirect URL on stdin, for example: `echo "http://127.0.0.1:1455/auth/callback?code=..." | codex auth login --manual`.
-`codex auth login` remains the default browser-first path.
55
+
-`codex auth login --manual` and `codex auth login --no-browser` force manual callback handling for browser-restricted shells.
56
+
-`CODEX_AUTH_NO_BROWSER=1` suppresses browser launch for automation/headless sessions. False-like values such as `0` and `false` no longer force manual mode.
57
+
- In non-TTY/manual shells, provide the full redirect URL on stdin, for example: `echo "http://127.0.0.1:1455/auth/callback?code=..." | codex auth login --manual`.
58
+
- No new npm scripts, storage migrations, or extra upgrade steps were introduced for this auth-flow change.
59
+
60
+
For the full command/behavior reference, see [reference/commands.md](reference/commands.md).
61
+
62
+
---
63
+
52
64
## Configuration Upgrade Notes
53
65
54
66
During upgrades, runtime config source precedence is:
0 commit comments