GitHub - ccheney/codex-multi-account: Run multiple instances of Codex each with their own auth · GitHub
/" data-turbo-transient="true" />
Skip to content
Search or jump to...
Search code, repositories, users, issues, pull requests...
-->
Search
Clear
Search syntax tips
Provide feedback
--><br>We read every piece of feedback, and take your input very seriously.
Include my email address so I can be contacted
Cancel
Submit feedback
Saved searches
Use saved searches to filter your results more quickly
-->
Name
Query
To see all available qualifiers, see our documentation.
Cancel
Create saved search
Sign in
/;ref_cta:Sign up;ref_loc:header logged out"}"<br>Sign up
Appearance settings
Resetting focus
You signed in with another tab or window. Reload to refresh your session.<br>You signed out in another tab or window. Reload to refresh your session.<br>You switched accounts on another tab or window. Reload to refresh your session.
Dismiss alert
{{ message }}
ccheney
codex-multi-account
Public
Notifications<br>You must be signed in to change notification settings
Fork
Star
main
BranchesTags
Go to file
CodeOpen more actions menu
Folders and files<br>NameNameLast commit message<br>Last commit date<br>Latest commit
History<br>1 Commit<br>1 Commit
.gitignore
.gitignore
LICENSE
LICENSE
README.md
README.md
codex-multi-account.sh
codex-multi-account.sh
View all files
Repository files navigation
Codex Multi-Account Desktop Launcher
Run additional Codex Desktop windows on macOS with separate OAuth accounts.
This is an unsupported local workaround. By default it creates a clean isolated<br>Codex home and Chromium profile for the extra account. It does not symlink or<br>share history unless you explicitly opt in.
Quick Start
chmod +x ./codex-multi-account.sh<br>./codex-multi-account.sh
The default secondary account uses:
~/.codex-multi-2
~/Library/Application Support/Codex-Multi-2
After the new Codex window opens, sign in with your second account.
More Accounts
Launch N total accounts, counting your normal Codex app as account 1:
./codex-multi-account.sh --accounts 5
That launches multi-2 through multi-5.
For a named secondary account:
./codex-multi-account.sh --account work
That uses ~/.codex-work and ~/Library/Application Support/Codex-work.
Optional Shared History
By default, every account has separate projects, chats, runtime data, and auth.
To share project/sidebar/chat history from your primary ~/.codex profile:
./codex-multi-account.sh --symlink-history
Auth stays separate. The script automatically detects the current<br>state_*.sqlite file, so rerunning it can relink after Codex changes suffixes<br>such as state_5.sqlite to state_6.sqlite.
Quit Codex windows before changing shared-history links.
Reset
Remove all managed secondary Codex homes and profiles created by this script:
./codex-multi-account.sh --reset
Remove a specific account or account range:
./codex-multi-account.sh --reset --account work<br>./codex-multi-account.sh --reset --accounts 5
Reset refuses to remove your primary ~/.codex, your home directory, or the<br>normal Codex app profile. Quit matching secondary Codex windows before reset.
About
Run multiple instances of Codex each with their own auth
Topics
codex
multi-instance
openai-codex
Resources
Readme
License
MIT license
Uh oh!
There was an error while loading. Please reload this page.
Activity
Stars
stars
Watchers
watching
Forks
forks
Report repository
Packages
Uh oh!
There was an error while loading. Please reload this page.
Contributors
Uh oh!
There was an error while loading. Please reload this page.
Languages
Shell<br>100.0%
You can’t perform that action at this time.