codex-profiles: switch Codex CLI/Desktop accounts with isolated CODEX_HOME directories #30852
Ducksss
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hi! I built a small Bash helper for people who use Codex across personal, work, school, or client accounts and want each account to keep separate auth, config, sessions, plugins, caches, and logs.
Project: https://github.com/Ducksss/codex-profiles
Docs: https://ducksss.github.io/codex-profiles/
What it does:
CODEX_HOMEdirectories:default -> ~/.codex,work -> ~/.codex-work, etc.auth.jsontokens isolated; it never reads, prints, copies, parses, or migrates auth tokens.Example:
codex-profile init work codex-profile login work codex-profile cli work codex-profile app work ~/Dev/projectIt is intentionally small: one Bash script, no runtime dependencies. It is community-maintained and not an official OpenAI project.
One important boundary: it only isolates Codex local state via
CODEX_HOME. OS-level credentials like SSH keys, GitHub CLI auth, browser cookies, and other user-level credentials are still shared by the same OS account. For strict separation, separate OS users are still the right tool.Sharing here in case it helps anyone juggling multiple Codex accounts or client contexts. Feedback welcome.
All reactions