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/reference/commands.md
+15-9Lines changed: 15 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -55,6 +55,14 @@ Compatibility aliases are supported:
55
55
56
56
---
57
57
58
+
## Compatibility and Non-TTY Behavior
59
+
60
+
-`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.
61
+
- 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.
62
+
- 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.
63
+
64
+
---
65
+
58
66
## Dashboard Hotkeys
59
67
60
68
### Main Dashboard
@@ -80,15 +88,13 @@ Compatibility aliases are supported:
Copy file name to clipboardExpand all lines: docs/reference/storage-paths.md
+35Lines changed: 35 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -35,6 +35,14 @@ Ownership note:
35
35
36
36
-`~/.codex/multi-auth/*` is managed by this project.
37
37
-`~/.codex/accounts.json` and `~/.codex/auth.json` are managed by official Codex CLI.
38
+
- The `codex` wrapper preserves that official CLI file-backed auth layout by forwarding non-auth commands with `-c cli_auth_credentials_store="file"`, unless the caller already set `cli_auth_credentials_store` explicitly.
39
+
- Set `CODEX_MULTI_AUTH_FORCE_FILE_AUTH_STORE=0` to opt out of that wrapper-injected file-store override and leave the downstream CLI auth store untouched.
40
+
41
+
Compatibility note:
42
+
43
+
- This file-store forwarding keeps auth state readable from disk outside interactive terminals, so wrapper forwarding and non-TTY auth flows stay deterministic after the Ink migration.
44
+
45
+
> **Windows note:** The wrapper keeps the official Codex CLI file-store layout unchanged, so Windows `EPERM`/`EBUSY` retry handling still lives with the downstream CLI writes rather than this wrapper layer. Opting out with `CODEX_MULTI_AUTH_FORCE_FILE_AUTH_STORE=0` stops injecting the file-store override for future wrapper launches, but it does not rewrite or expose previously written CLI auth files beyond the standard `~/.codex/auth.json` and `~/.codex/accounts.json` locations.
38
46
39
47
---
40
48
@@ -72,6 +80,33 @@ Examples:
72
80
73
81
---
74
82
83
+
## Named Backup Exports
84
+
85
+
Experimental named backup exports are written under the local plugin-owned backup namespace beside the active accounts file:
86
+
87
+
- global root: `~/.codex/multi-auth/backups/<name>.json`
0 commit comments