Skip to content

Support switching between personal and work profiles in Codex #22026

Open

Description

@vltansky

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.

Related existing issues:

What steps can reproduce the bug?

No response

What is the expected behavior?

Codex should support switching between named profiles/accounts, so users can choose the right personal or work identity for each project/task.

Additional information

No response

Activity

  1. added
    enhancement
    app
    auth
    on May 10, 2026
  2. github-actions commented on May 10, 2026

    @github-actions
    Contributor

    Potential duplicates detected. Please review them and close your issue if it is a duplicate.

    Powered by Codex Action

  3. dannystaple commented on May 14, 2026

    @dannystaple

    Not a duplicate since the other ticket had multiple feature requests.
    However, the UI design in #20546 seems highly relevant.

  4. DavidJGrimsley commented on May 26, 2026

    @DavidJGrimsley

    Yes this shouldn't be something we should have to ask for.

  5. of-clausulo commented on May 27, 2026

    @of-clausulo

    ETA? this would be really helpful- ability to switch integration profiles quickly

  6. Ducksss commented on Jun 3, 2026

    @Ducksss

    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 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
  7. andrecj93 commented on Sep 4, 2026

    @andrecj93

    This would be greatly appreciated

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    appauthenhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions