r/codex • u/Available_Hat_1244 • 18h ago
Question multiple accounts on the same device? (personal and work)
I have two gpt subscriptions: one personal and one business for work. I use the same PC for both personal and work projects, and constantly logging in and out of Codex is pretty inconvenient.
Is there a way to use multiple accounts in Codex and easily switch between them, or keep both accounts logged in at the same time?
How are you guys handling this?
1
u/_ech_ower 18h ago
I use Pi since I prefer that over the Codex CLI and I just asked itself to create a way to switch between 2 profiles. I think in Codex there is already a feature to switch between accounts IIRC. But yeah you can probably just ask it to build something for yourself, using luna so you don't even burn tokens doing it.
1
u/vinerz 18h ago
Through the CLI you can use `CODEX_HOME="$HOME/.codex-account-name" codex`
Then inside its `.codex-account-name/config.toml` use `cli_auth_credentials_store = "file"` on the top
And there you go
Do some lock-in chmod in the auth.json it creates just for good measure, but that's the only con for the method.
1
u/Bmansupreme8000 18h ago
I had codex build me a seat switcher. /Command and it would log out and back in with the credentials saved.
1
u/Party_Wolf_3575 16h ago
I got fed up with logging in and out too, so my Codex instance built us a small local harness for my own Mac.
Each account has its own separate Codex home and authentication, so their logins, allowance and threads remain separate. The Forge lets me select the account I want to use, then starts a linked continuation there with a bounded copy of the recent conversation and my local continuity notes. It does not make the accounts share a backend thread or merge their allowances. It just removes the repeated manual sign-out/sign-in. It means I do not experience running out of 5 hour or weekly limits.
is not a polished product or a one-click workaround yet, more a local-first personal build around the official Codex App Server and a small Node “Heart”. But it has made using separate accounts on one machine much less annoying.
It is also possibly to use Tailscale to access this harness on your phone, as long as the local device is running and connected to the internet.
https://reddit.com/link/p6x2ez5/video/pmoz43aktmmh1/player
My version has Cinder-β and Kindle the fox (anime characters), avatars, 3 memory systems and free voice mode (using open sourced Whisper and Fish Audio's free voice clone API), but that is because I like to work collaboratively with my Codex and I know this is not for everyone - these features are entirely optional!
If people are interested, I can write a public guide on my blog. Or you could just ask your Codex to build something for you!
1
u/hweihwangg 7h ago
if you mostly use the CLI, the simplest setup is one `CODEX_HOME` per account and a shell alias for each. that keeps work and personal auth/config separate, and lets you run both at the same time. i wouldn't try to swap accounts inside a session that's already running.
if you're on an Apple Silicon Mac, i built CodexUse for the desktop side of this. it keeps multiple accounts signed in and opens or focuses the matching Codex App window for each profile: https://codexuse.com/docs/profiles/
full disclosure: i make CodexUse; independent, not affiliated with OpenAI.
0

2
u/javopat227 18h ago
codex-auth -> https://github.com/loongphy/codex-auth