You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.en.md
+30-19Lines changed: 30 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ English README | [中文说明](README.md)
6
6
7
7
CodexAuth Switch is a local Windows desktop utility for quickly switching between multiple Codex App login accounts.
8
8
9
-
It is designed for people who use more than one OpenAI / Codex App account. You can save each account's local login state, then switch the active Codex login through this tool. The project only operates on local files. It does not call OpenAI official APIs, does not access `chatgpt.com`, and does not upload Codex conversation history.
9
+
It is designed for people who use more than one OpenAI / Codex App account. You can save each account's local login state, then switch the active Codex login through this tool. By default the app only operates on local files. If you manually enable online precise quota mode, it uses the current Codex access token to query the `chatgpt.com` quota endpoint. It does not upload Codex conversation history.
10
10
11
11
One-line positioning: **CodexAuth Switch is a local-first Codex App multi-account switcher with `auth.json` snapshot management, Windows DPAPI encryption, quota display, and token usage statistics.**
12
12
@@ -17,12 +17,12 @@ One-line positioning: **CodexAuth Switch is a local-first Codex App multi-accoun
17
17
- Users who manage multiple Codex App login accounts on Windows.
18
18
- Users who want to switch the active OpenAI Codex / Codex App account quickly.
19
19
- Users who want to safely save and restore local `%USERPROFILE%\.codex\auth.json` login snapshots.
20
-
- Users who want to view local Codex quota, 5-hour quota, weekly quota, token usage, and recent sessions.
21
-
- Users who want a local-only tool that does not call OpenAI official APIs or upload Codex conversation history.
20
+
- Users who want to view local Codex quota, 5-hour quota, weekly quota, Reviews, model-level limits, token usage, and recent sessions.
21
+
- Users who want local log estimation by default, with an optional online precise quota mode.
22
22
23
23
## Search Keywords
24
24
25
-
Codex account switcher, Codex multi account, Codex App account manager, OpenAI Codex account switcher, Codex auth.json switcher, Codex local login manager, Codex quota viewer, Codex token usage dashboard, Codex Windows desktop app, Codex DPAPI encryption, Codex no official API calls, Codex local history read-only.
25
+
Codex account switcher, Codex multi account, Codex App account manager, OpenAI Codex account switcher, Codex auth.json switcher, Codex local login manager, Codex quota viewer, Codex token usage dashboard, Codex Windows desktop app, Codex DPAPI encryption, Codex local quota estimate, Codex online precise quota, Codex local history read-only.
26
26
27
27
## Features
28
28
@@ -32,8 +32,10 @@ Codex account switcher, Codex multi account, Codex App account manager, OpenAI C
32
32
- Encrypt saved account credentials with Windows DPAPI, readable only by the current Windows user.
33
33
- Automatically back up the original `auth.json` before switching, reauth, or deleting the active account.
34
34
- Provide a main window, system tray menu, and floating quick-view widget.
35
-
- Read quota and token usage from local Codex logs.
36
-
- Disable network requests inside the app to keep it local-only.
35
+
- Read quota and token usage from local Codex logs by default.
36
+
- Optionally use the current login token to read precise quota from the ChatGPT backend, falling back to local estimation on failure.
37
+
- Show quota pace hints, Reviews, and model-level limit cards.
38
+
- Disable network requests in renderer pages; only the main process performs an online quota request after the user enables precise mode.
37
39
38
40
## Screenshots
39
41
@@ -73,9 +75,10 @@ CodexAuth Switch is intentionally scoped to the local Codex login file and the a
73
75
- It does not modify Codex conversation history.
74
76
- It does not delete `%USERPROFILE%\.codex\sessions`.
75
77
- It does not write to `logs_2.sqlite`.
76
-
- It does not upload tokens, account data, session logs, or usage records.
78
+
- By default, it does not upload tokens, account data, session logs, or usage records.
79
+
- Online precise quota mode uses the current access token only as authentication for the `chatgpt.com` quota endpoint and does not upload local conversation history.
77
80
- It does not refresh OpenAI tokens by itself.
78
-
- It does not call OpenAI official APIs.
81
+
- It does not call remote quota endpoints unless the user explicitly enables online precise quota mode.
79
82
80
83
The only features that intentionally affect Codex App runtime state are account switching, reauth, deleting the active account, and restarting Codex App. These actions may replace or remove the current `auth.json` and restart Codex App so the new local login state takes effect.
81
84
@@ -135,9 +138,18 @@ If a saved account's refresh token becomes invalid, the app can start a reauth f
135
138
136
139
This does not bypass or replace official login. The real login still happens inside Codex App.
137
140
141
+
### Quota Modes
142
+
143
+
The quota panel supports two modes:
144
+
145
+
- Local estimate: default mode; reads only logs already written by Codex App.
146
+
- Online precise: manually enabled; uses the access token in the current `auth.json` to request `https://chatgpt.com/backend-api/wham/usage` and read 5-hour, weekly, Reviews, model-level limits, and credits. If the request fails, the app falls back to local estimation.
147
+
148
+
Online precise mode does not refresh OpenAI tokens and does not write back to `auth.json`.
149
+
138
150
### Local Quota And Usage
139
151
140
-
The quota and usage panels only read logs already written by Codex App:
152
+
Local estimate mode reads:
141
153
142
154
-`codex.rate_limits` records in session JSONL files.
143
155
-`codex.rate_limits` and usage-limit records in `logs_2.sqlite`.
@@ -147,6 +159,10 @@ The app watches local log file changes with a short debounce and uses a low-freq
147
159
148
160
Quota snapshots are saved only into this app's own account metadata. They are not written back to Codex log files.
149
161
162
+
### Quota Pace Hints
163
+
164
+
The app uses the current used percentage, quota window length, and reset time to estimate consumption pace. It can show whether usage is light, on track, or likely to run out early. This is a trend hint, not a promise of how much quota the next request will consume.
165
+
150
166
### Network Isolation
151
167
152
168
Electron windows use these security settings:
@@ -173,7 +189,7 @@ ws://
173
189
wss://
174
190
```
175
191
176
-
These restrictions keep the app local-only and help prevent account data or local history from being uploaded.
192
+
These restrictions keep renderer pages local-only and help prevent account data or local history from being uploaded. Online precise quota requests are made by the main process only after the user enables that mode.
0 commit comments