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

providers-codex.md

153 lines4.2 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## Approve access to other apps
38​
39When a Codex tool needs access to an app such as Safari, T3 Code shows the app name and asks for
40approval. You can approve, decline, or cancel the request from the desktop app, web app, or mobile
41app. Some tools also offer approval for the current session or permanent approval.
42​
43## I Want Work And Personal Codex Accounts
44​
45Use one real Codex home and one shadow home.
46​
47Recommended setup:
48​
49```text
50~/.codex shared Codex home
51~/.codex_p second account auth
52```
53​
54The idea is:
55​
56- both accounts can see the same T3/Codex sessions
57- each account keeps its own login
58- existing threads can continue with either account
59​
60### Set Up The First Account
61​
62Log in normally:
63​
64```bash
65codex login
66```
67​
68This is the account used by `~/.codex`.
69​
70In T3 Code Settings, name it something obvious:
71​
72```text
73Display name: Codex Work
74CODEX_HOME path: ~/.codex
75Shadow home path: empty
76```
77​
78### Set Up The Second Account
79​
80Log in with a separate Codex home:
81​
82```bash
83mkdir -p ~/.codex_p
84CODEX_HOME=~/.codex_p codex login
85```
86​
87In T3 Code Settings, add another Codex provider:
88​
89```text
90Display name: Codex Personal
91CODEX_HOME path: ~/.codex
92Shadow home path: ~/.codex_p
93```
94​
95The important part is that both providers use the same `CODEX_HOME path`, but only the second one
96has a `Shadow home path`.
97​
98## Which Account Am I Using?
99​
100Open Settings and look at the provider row.
101​
102T3 Code shows the authenticated email for providers that report one. Emails are blurred by default;
103click the blurred email to reveal it.
104​
105Use display names and accent colors to make accounts easy to tell apart in the model picker.
106​
107## I Need A Different API Key Or Endpoint
108​
109Use the provider's Environment variables section in Settings.
110​
111This is useful when a Codex-compatible setup needs account-specific variables. Add the variables to
112the provider instance that should receive them, and mark API keys or tokens as sensitive. Sensitive
113values are stored as server secrets and are not sent back to the app after saving.
114​
115## Can I Switch Accounts In An Existing Thread?
116​
117Yes, when both Codex providers share the same `CODEX_HOME path`.
118​
119For example:
120​
121```text
122Codex Work CODEX_HOME path: ~/.codex
123Codex Personal CODEX_HOME path: ~/.codex, Shadow home path: ~/.codex_p
124```
125​
126Those two providers are considered compatible for continuation, so the locked model picker can show
127both.
128​
129If you add a third Codex provider with a completely different `CODEX_HOME path`, T3 Code treats it
130as a different workspace. It will not be offered for existing threads created under `~/.codex`.
131​
132## If Both Accounts Look The Same
133​
134If two Codex providers show the same account or the same unexpected model list:
135​
1361. Check the email in Settings.
1372. Refresh provider status.
1383. Confirm the second provider has `Shadow home path` set.
1394. Confirm the shadow directory has its own `auth.json`.
1405. If you copied `~/.codex` into the shadow directory, remove everything except `auth.json`.
141​
142Example cleanup:
143​
144```bash
145find ~/.codex_p -mindepth 1 ! -name auth.json -exec rm -rf {} +
146```
147​
148## When To Use A Separate CODEX_HOME
149​
150Use a totally separate `CODEX_HOME path` only when you want a separate Codex workspace.
151​
152That means separate sessions and less account switching inside old threads. Most dual-account users
153should use the shared-home plus shadow-home setup instead.