Skip to content
Source
Sign inSign up
pingdotgg/t3code
Open History to see the last commit

providers-codex.md

179 lines5.5 KB

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## Answer questions while Codex works
38​
39Codex can ask questions without stopping its work. Choose a suggested answer or enter your own
40in the question panel. Questions without suggested answers accept text.
41​
42Your answers are sent as a new message. They reach the current turn while Codex is working, or
43start a new turn if it has finished. Unanswered questions stay available after you reconnect.
44This works in the web, desktop, and mobile apps. Codex must support async questions.
45​
46## Sub-agent models
47​
48The web and desktop Agents panel shows each sub-agent's model and reasoning effort when Codex
49reports them. If Codex does not report either value, T3 Code leaves it out instead of using the
50parent agent's settings.
51​
52## Browser and computer activity
53​
54Browser and Computer Use calls show their user-facing task title when Codex provides one. Expanded
55activity groups show an icon for every call. Website calls use the active page's favicon when it is
56available, and desktop app calls use the app's native icon on macOS when available. Other hosts use
57a generic fallback glyph.
58​
59Collapsed activity groups are summarized by source, such as `Used Chrome integration`, instead of
60showing the underlying tool name. Website favicons and native app icons keep their original colors;
61integrations that provide separate light and dark logos use the logo for the current appearance.
62​
63## Approve access to other apps
64​
65When a Codex tool needs access to an app such as Safari, T3 Code shows the app name and asks for
66approval. You can approve, decline, or cancel the request from the desktop app, web app, or mobile
67app. Some tools also offer approval for the current session or permanent approval.
68​
69## I Want Work And Personal Codex Accounts
70​
71Use one real Codex home and one shadow home.
72​
73Recommended setup:
74​
75```text
76~/.codex shared Codex home
77~/.codex_p second account auth
78```
79​
80The idea is:
81​
82- both accounts can see the same T3/Codex sessions
83- each account keeps its own login
84- existing threads can continue with either account
85​
86### Set Up The First Account
87​
88Log in normally:
89​
90```bash
91codex login
92```
93​
94This is the account used by `~/.codex`.
95​
96In T3 Code Settings, name it something obvious:
97​
98```text
99Display name: Codex Work
100CODEX_HOME path: ~/.codex
101Shadow home path: empty
102```
103​
104### Set Up The Second Account
105​
106Log in with a separate Codex home:
107​
108```bash
109mkdir -p ~/.codex_p
110CODEX_HOME=~/.codex_p codex login
111```
112​
113In T3 Code Settings, add another Codex provider:
114​
115```text
116Display name: Codex Personal
117CODEX_HOME path: ~/.codex
118Shadow home path: ~/.codex_p
119```
120​
121The important part is that both providers use the same `CODEX_HOME path`, but only the second one
122has a `Shadow home path`.
123​
124## Which Account Am I Using?
125​
126Open Settings and look at the provider row.
127​
128T3 Code shows the authenticated email for providers that report one. Emails are blurred by default;
129click the blurred email to reveal it.
130​
131Use display names and accent colors to make accounts easy to tell apart in the model picker.
132​
133## I Need A Different API Key Or Endpoint
134​
135Use the provider's Environment variables section in Settings.
136​
137This is useful when a Codex-compatible setup needs account-specific variables. Add the variables to
138the provider instance that should receive them, and mark API keys or tokens as sensitive. Sensitive
139values are stored as server secrets and are not sent back to the app after saving.
140​
141## Can I Switch Accounts In An Existing Thread?
142​
143Yes, when both Codex providers share the same `CODEX_HOME path`.
144​
145For example:
146​
147```text
148Codex Work CODEX_HOME path: ~/.codex
149Codex Personal CODEX_HOME path: ~/.codex, Shadow home path: ~/.codex_p
150```
151​
152Those two providers are considered compatible for continuation, so the locked model picker can show
153both.
154​
155If you add a third Codex provider with a completely different `CODEX_HOME path`, T3 Code treats it
156as a different workspace. It will not be offered for existing threads created under `~/.codex`.
157​
158## If Both Accounts Look The Same
159​
160If two Codex providers show the same account or the same unexpected model list:
161​
1621. Check the email in Settings.
1632. Refresh provider status.
1643. Confirm the second provider has `Shadow home path` set.
1654. Confirm the shadow directory has its own `auth.json`.
1665. If you copied `~/.codex` into the shadow directory, remove everything except `auth.json`.
167​
168Example cleanup:
169​
170```bash
171find ~/.codex_p -mindepth 1 ! -name auth.json -exec rm -rf {} +
172```
173​
174## When To Use A Separate CODEX_HOME
175​
176Use a totally separate `CODEX_HOME path` only when you want a separate Codex workspace.
177​
178That means separate sessions and less account switching inside old threads. Most dual-account users
179should use the shared-home plus shadow-home setup instead.