Skip to content

feat: Support shared profile groups with separate auth #3

@Jacques2Marais

Description

@Jacques2Marais

Problem

When managing multiple ChatGPT accounts where some should share configuration (e.g. two personal accounts), ‎codex-profiles forces full isolation between all profiles. There’s no way to have two profiles share ‎config.toml, ‎AGENTS.md, rules, plugins, and session history while keeping separate ‎auth.json files. The only workaround is manually running ‎clone-config after every change, which is a one-time copy of a limited set of files.

Proposed solution

Add a ‎--share-with <profile> flag to ‎codex-profile init that creates a new profile where most of ‎CODEX_HOME is symlinked back to an existing profile’s directory, with only ‎auth.json (and optionally ‎sessions/ and ‎logs/) kept separate.

Example:

codex-profile init personal-2 --share-with personal-1

This would create ‎~/.codex-personal-2/ with its own ‎auth.json but symlink ‎config.toml, ‎AGENTS.md, ‎AGENTS.override.md, ‎rules/, and other config files back to ‎~/.codex-personal-1/. A config option or flag could control whether ‎sessions/ and ‎logs/ are also shared or kept separate.

Alternatives considered

  • Manually symlinking files between profile directories (works but fragile and not managed by the tool)
  • Using ‎clone-config after every change (one-time copy of only 4 files, not live, doesn’t cover rules or plugins)
  • Auth-file swapping (the approach ‎codex-profiles explicitly replaces; leaves all other state shared with no control over what’s isolated)

Scope

  • This does not require reading, copying, printing, uploading, or rewriting Codex auth tokens.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions