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
{{ message }}
Repository navigation
Support switching between personal and work profiles in Codex #22026
What version of the Codex App are you using (From "About Codex" dialog)?
No response
What subscription do you have?
No response
What platform is your computer?
No response
What issue are you seeing?
A profile switcher in Codex would be useful for users who need to separate personal and work usage.
Requested workflow: use a personal account/profile for personal projects, and a work account/profile for work-related tasks, without manually signing out or mixing account state across projects.
It adds --auth-profile NAME and CODEX_PROFILE=NAME, so users can run, for example:
codex login --auth-profile work
codex --auth-profile work
codex login --auth-profile personal
codex --auth-profile personal
Each auth profile gets its own Codex home under $CODEX_HOME/profiles/NAME, which separates auth credentials, config overlays, sessions, logs, MCP/plugin state, daemon/socket state, feature flags, memories, and other local state. --profile still works as a config overlay, but inside the selected auth profile home.
I could not create an upstream PR from this account because GitHub rejected PR creation against openai/codex, but the branch is pushed and ready to inspect.
Validation run:
cargo fmt --all
git diff --check
cargo test -p codex-utils-home-dir
cargo test -p codex-rmcp-client oauth::tests
cargo test -p codex-cli --bin codex auth_profile
cargo test -p codex-core build_exec_request_preserves_windows_workspace_roots
broad affected-crate cargo check across home-dir, cli, core, rmcp, mcp, app-server, daemon, chatgpt, cloud-tasks, tui, and exec crates
Reacted by André Jordão, yunusberfuozcan and David Grimsley
Activity
github-actions commentedon May 10, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
dannystaple commentedon May 14, 2026
Not a duplicate since the other ticket had multiple feature requests.
However, the UI design in #20546 seems highly relevant.
DavidJGrimsley commentedon May 26, 2026
Yes this shouldn't be something we should have to ask for.
of-clausulo commentedon May 27, 2026
ETA? this would be really helpful- ability to switch integration profiles quickly
Ducksss commentedon Jun 3, 2026
Sharing a candidate implementation for personal/work profile separation:
Branch: https://github.com/Ducksss/codex/tree/PinZheng/auth-profiles-review
Compare: https://github.com/openai/codex/compare/main...Ducksss:PinZheng/auth-profiles-review?expand=1
It adds
--auth-profile NAMEandCODEX_PROFILE=NAME, so users can run, for example:Each auth profile gets its own Codex home under
$CODEX_HOME/profiles/NAME, which separates auth credentials, config overlays, sessions, logs, MCP/plugin state, daemon/socket state, feature flags, memories, and other local state.--profilestill works as a config overlay, but inside the selected auth profile home.I could not create an upstream PR from this account because GitHub rejected PR creation against
openai/codex, but the branch is pushed and ready to inspect.Validation run:
cargo fmt --allgit diff --checkcargo test -p codex-utils-home-dircargo test -p codex-rmcp-client oauth::testscargo test -p codex-cli --bin codex auth_profilecargo test -p codex-core build_exec_request_preserves_windows_workspace_rootscargo checkacross home-dir, cli, core, rmcp, mcp, app-server, daemon, chatgpt, cloud-tasks, tui, and exec cratesandrecj93 commentedon Sep 4, 2026
This would be greatly appreciated