Open History to see the last commit
1# Codex
2
3This guide is for people who want to use more than one Codex account in T3 Code. For Claude, see
4[Claude](./providers-claude.md). For first-time setup, see [Install T3 Code](./install.md).
5
6Common reasons:
7
8- use a work account for work projects
9- use a personal account for personal projects
10- switch to another account when one account hits limits
11- keep one shared Codex history instead of maintaining two separate Codex setups
12
13## I Only Use One Codex Account
14
15Use the default provider.
16
17In Settings, your Codex provider can stay like this:
18
19```text
20Display name: Codex
21CODEX_HOME path: ~/.codex
22Shadow home path: empty
23```
24
25Log in with Codex normally:
26
27```bash
28codex login
29```
30
31## Send feedback to OpenAI
32
33In an existing Codex thread, send `/feedback` or `/feedback` followed by a description of the
34issue. T3 Code uploads the thread and Codex logs to OpenAI and shows a thread ID that you can copy
35and share with OpenAI employees.
36
37## Sub-agent models
38
39The web and desktop Agents panel shows each sub-agent's model and reasoning effort when Codex
40reports them. If Codex does not report either value, T3 Code leaves it out instead of using the
41parent agent's settings.
42
43## Browser and computer activity
44
45Browser and Computer Use calls show their user-facing task title when Codex provides one. Expanded
46activity groups show an icon for every call. Website calls use the active page's favicon when it is
47available, and desktop app calls use the app's native icon on macOS when available. Other hosts use
48a generic fallback glyph.
49
50Collapsed activity groups are summarized by source, such as `Used Chrome integration`, instead of
51showing the underlying tool name. Website favicons and native app icons keep their original colors;
52integrations that provide separate light and dark logos use the logo for the current appearance.
53
54## Approve access to other apps
55
56When a Codex tool needs access to an app such as Safari, T3 Code shows the app name and asks for
57approval. You can approve, decline, or cancel the request from the desktop app, web app, or mobile
58app. Some tools also offer approval for the current session or permanent approval.
59
60## I Want Work And Personal Codex Accounts
61
62Use one real Codex home and one shadow home.
63
64Recommended setup:
65
66```text
67~/.codex shared Codex home
68~/.codex_p second account auth
69```
70
71The idea is:
72
73- both accounts can see the same T3/Codex sessions
74- each account keeps its own login
75- existing threads can continue with either account
76
77### Set Up The First Account
78
79Log in normally:
80
81```bash
82codex login
83```
84
85This is the account used by `~/.codex`.
86
87In T3 Code Settings, name it something obvious:
88
89```text
90Display name: Codex Work
91CODEX_HOME path: ~/.codex
92Shadow home path: empty
93```
94
95### Set Up The Second Account
96
97Log in with a separate Codex home:
98
99```bash
100mkdir -p ~/.codex_p
101CODEX_HOME=~/.codex_p codex login
102```
103
104In T3 Code Settings, add another Codex provider:
105
106```text
107Display name: Codex Personal
108CODEX_HOME path: ~/.codex
109Shadow home path: ~/.codex_p
110```
111
112The important part is that both providers use the same `CODEX_HOME path`, but only the second one
113has a `Shadow home path`.
114
115## Which Account Am I Using?
116
117Open Settings and look at the provider row.
118
119T3 Code shows the authenticated email for providers that report one. Emails are blurred by default;
120click the blurred email to reveal it.
121
122Use display names and accent colors to make accounts easy to tell apart in the model picker.
123
124## I Need A Different API Key Or Endpoint
125
126Use the provider's Environment variables section in Settings.
127
128This is useful when a Codex-compatible setup needs account-specific variables. Add the variables to
129the provider instance that should receive them, and mark API keys or tokens as sensitive. Sensitive
130values are stored as server secrets and are not sent back to the app after saving.
131
132## Can I Switch Accounts In An Existing Thread?
133
134Yes, when both Codex providers share the same `CODEX_HOME path`.
135
136For example:
137
138```text
139Codex Work CODEX_HOME path: ~/.codex
140Codex Personal CODEX_HOME path: ~/.codex, Shadow home path: ~/.codex_p
141```
142
143Those two providers are considered compatible for continuation, so the locked model picker can show
144both.
145
146If you add a third Codex provider with a completely different `CODEX_HOME path`, T3 Code treats it
147as a different workspace. It will not be offered for existing threads created under `~/.codex`.
148
149## If Both Accounts Look The Same
150
151If two Codex providers show the same account or the same unexpected model list:
152
1531. Check the email in Settings.
1542. Refresh provider status.
1553. Confirm the second provider has `Shadow home path` set.
1564. Confirm the shadow directory has its own `auth.json`.
1575. If you copied `~/.codex` into the shadow directory, remove everything except `auth.json`.
158
159Example cleanup:
160
161```bash
162find ~/.codex_p -mindepth 1 ! -name auth.json -exec rm -rf {} +
163```
164
165## When To Use A Separate CODEX_HOME
166
167Use a totally separate `CODEX_HOME path` only when you want a separate Codex workspace.
168
169That means separate sessions and less account switching inside old threads. Most dual-account users
170should use the shared-home plus shadow-home setup instead.