Skip to content

[Feature]: Allow multiple Codex (ChatGPT) or Claude accounts to be linked and auto-switch accounts #2111

Description

@diyanko

Before submitting

  • I searched existing issues and did not find a duplicate.
  • I am describing a concrete problem or use case, not just a vague idea.

Area

Not sure

Problem or use case

The use case would be to allow people with multiple ChatGPT accounts to be able to get most out of the subscriptions, often with personal and work accounts.

Proposed solution

If it can allow signing into multiple accounts of ChatGPT and let the user switch across them easily, they can make make use of multiple subscriptions if they have access without paying for a more expensive subscription.

Right now, one of the ways I'm getting around it is by switching around the auth.json file generated by codex when I am signing in. Though sometimes it forces you to re-authenticate it again.

Why this matters

This is mostly for people who are trying to make most use of their subscriptions if they have more than one account. Like for people who might have two ChatGPT accounts so they are paying $40 a month and easily take advantage of full usage given.

Smallest useful scope

A very simple way to sign in to multiple options and just switch across the accounts.

Alternatives considered

No response

Risks or tradeoffs

No response

Examples or references

No response

Contribution

  • I would be open to helping implement this.

Activity

  1. added
    enhancementRequested improvement or new capability.
    needs-triageIssue needs maintainer review and initial categorization.
    on Apr 17, 2026
  2. diyanko commented on Apr 17, 2026

    @diyanko
    Author

    cp /Users/diyanko/******/codex-auth/db/auth.json /Users/diyanko/.codex/auth.json
    This is an example of a command I run to switch around multiple auth.json files. I have multiple and I have some of my friends as they do not use Codex, so taking advantage of that.

  3. roni-estein commented on Apr 17, 2026

    @roni-estein

    Thats clever and will affect me in a couple of days! I'll try and build something built in over the weekend and PR it. Also consider they don't really want PRs right now it probably wont get merged, but you could install it and cherry pick the PRs you want included.

  4. juliusmarminge commented on Jun 20, 2026

    @juliusmarminge
    Member

    Provider instances now allow separate Codex and Claude account homes/configurations and let users switch between them in the provider picker. That satisfies the issue's smallest scope of linking multiple accounts and switching manually.

    This was closed as part of a large repo-wide maintenance sweep. If you think it's still relevant, please reopen.

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

    enhancementRequested improvement or new capability.needs-triageIssue needs maintainer review and initial categorization.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions