@loongphy/codex-auth-linux-x64 0.2.6-alpha.1 → 0.2.6-alpha.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -11
- package/bin/codex-auth +0 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -113,7 +113,6 @@ Remove-Item "$env:LOCALAPPDATA\codex-auth\bin\codex-auth-auto.exe" -Force -Error
|
|
|
113
113
|
| Command | Description |
|
|
114
114
|
|---------|-------------|
|
|
115
115
|
| `codex-auth config auto enable\|disable` | Enable or disable experimental background auto-switching |
|
|
116
|
-
| `codex-auth config auto [--5h <%>] [--weekly <%>]` | Set experimental auto-switch thresholds |
|
|
117
116
|
| `codex-auth config api enable\|disable` | Enable or disable both usage refresh and team name refresh API calls |
|
|
118
117
|
|
|
119
118
|
---
|
|
@@ -236,18 +235,12 @@ codex-auth config auto disable
|
|
|
236
235
|
|
|
237
236
|
`config auto enable` prints the current usage mode after installing the watcher, so you can immediately see whether auto-switch is running with default API-backed usage or local-only fallback semantics.
|
|
238
237
|
|
|
239
|
-
Adjust thresholds:
|
|
240
|
-
|
|
241
|
-
```shell
|
|
242
|
-
codex-auth config auto --5h 12
|
|
243
|
-
codex-auth config auto --5h 12 --weekly 8
|
|
244
|
-
codex-auth config auto --weekly 8
|
|
245
|
-
```
|
|
246
|
-
|
|
247
238
|
When auto-switching is enabled, a long-running background watcher refreshes the active account's usage and silently switches accounts when:
|
|
248
239
|
|
|
249
|
-
- 5h remaining
|
|
250
|
-
- weekly remaining
|
|
240
|
+
- 5h remaining reaches `0`, or
|
|
241
|
+
- weekly remaining reaches `0`
|
|
242
|
+
|
|
243
|
+
When choosing the next account, `codex-auth` prefers a usable account whose remaining quota resets sooner, so a reset at `05:11` wins over `05:30`.
|
|
251
244
|
|
|
252
245
|
The managed background worker is long-running on all supported platforms:
|
|
253
246
|
|
package/bin/codex-auth
CHANGED
|
Binary file
|