This guide is for people who want to use more than one Codex account in T3 Code.
Common reasons:
- use a work account for work projects
- use a personal account for personal projects
- switch to another account when one account hits limits
- keep one shared Codex history instead of maintaining two separate Codex setups
Use the default provider.
In Settings, your Codex provider can stay like this:
Display name: Codex
CODEX_HOME path: ~/.codex
Shadow home path: empty
Log in with Codex normally:
codex loginUse one real Codex home and one shadow home.
Recommended setup:
~/.codex shared Codex home
~/.codex_p second account auth
The idea is:
- both accounts can see the same T3/Codex sessions
- each account keeps its own login
- existing threads can continue with either account
Log in normally:
codex loginThis is the account used by ~/.codex.
In T3 Code Settings, name it something obvious:
Display name: Codex Work
CODEX_HOME path: ~/.codex
Shadow home path: empty
Log in with a separate Codex home:
mkdir -p ~/.codex_p
CODEX_HOME=~/.codex_p codex loginIn T3 Code Settings, add another Codex provider:
Display name: Codex Personal
CODEX_HOME path: ~/.codex
Shadow home path: ~/.codex_p
The important part is that both providers use the same CODEX_HOME path, but only the second one
has a Shadow home path.
Open Settings and look at the provider row.
T3 Code shows the authenticated email for providers that report one. Emails are blurred by default; click the blurred email to reveal it.
Use display names and accent colors to make accounts easy to tell apart in the model picker.
Use the provider's Environment variables section in Settings.
This is useful when a Codex-compatible setup needs account-specific variables. Add the variables to the provider instance that should receive them, and mark API keys or tokens as sensitive. Sensitive values are stored as server secrets and are not sent back to the app after saving.
Yes, when both Codex providers share the same CODEX_HOME path.
For example:
Codex Work CODEX_HOME path: ~/.codex
Codex Personal CODEX_HOME path: ~/.codex, Shadow home path: ~/.codex_p
Those two providers are considered compatible for continuation, so the locked model picker can show both.
If you add a third Codex provider with a completely different CODEX_HOME path, T3 Code treats it
as a different workspace. It will not be offered for existing threads created under ~/.codex.
If two Codex providers show the same account or the same unexpected model list:
- Check the email in Settings.
- Refresh provider status.
- Confirm the second provider has
Shadow home pathset. - Confirm the shadow directory has its own
auth.json. - If you copied
~/.codexinto the shadow directory, remove everything exceptauth.json.
Example cleanup:
find ~/.codex_p -mindepth 1 ! -name auth.json -exec rm -rf {} +Use a totally separate CODEX_HOME path only when you want a separate Codex workspace.
That means separate sessions and less account switching inside old threads. Most dual-account users should use the shared-home plus shadow-home setup instead.