@loongphy/codex-auth-win32-x64 0.3.2-alpha.2 → 0.3.2-alpha.4
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 +41 -3
- package/bin/codex-auth.exe +0 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -12,6 +12,10 @@ Install with npm:
|
|
|
12
12
|
npm install -g @loongphy/codex-auth
|
|
13
13
|
```
|
|
14
14
|
|
|
15
|
+
Installed command:
|
|
16
|
+
|
|
17
|
+
- `codex-auth`
|
|
18
|
+
|
|
15
19
|
You can also run it without a global install:
|
|
16
20
|
|
|
17
21
|
```shell
|
|
@@ -58,6 +62,7 @@ Detailed command documentation lives in [docs/commands/README.md](./docs/command
|
|
|
58
62
|
| [`codex-auth remove [--live] [--api\|--skip-api]`](./docs/commands/remove.md) | Remove accounts interactively |
|
|
59
63
|
| [`codex-auth remove <query> [<query>...]`](./docs/commands/remove.md) | Remove accounts by selector |
|
|
60
64
|
| [`codex-auth remove --all`](./docs/commands/remove.md) | Remove all stored accounts |
|
|
65
|
+
| [`codex-auth reset <query>`](./docs/commands/reset.md) | Use the soonest-expiring reset credit for one account |
|
|
61
66
|
| [`codex-auth alias set <query> <alias>`](./docs/commands/alias.md) | Set an alias for an account |
|
|
62
67
|
| [`codex-auth alias clear <query>`](./docs/commands/alias.md) | Clear the alias for an account |
|
|
63
68
|
|
|
@@ -77,6 +82,41 @@ Detailed command documentation lives in [docs/commands/README.md](./docs/command
|
|
|
77
82
|
| Command | Description |
|
|
78
83
|
|---------|-------------|
|
|
79
84
|
| [`codex-auth config live --interval <seconds>`](./docs/commands/config.md) | Configure live TUI refresh interval |
|
|
85
|
+
| [`codex-auth completion <bash\|zsh\|fish\|pwsh>`](./docs/commands/completion.md) | Print a shell completion script |
|
|
86
|
+
|
|
87
|
+
## Shell Completion
|
|
88
|
+
|
|
89
|
+
Install Fish completions with:
|
|
90
|
+
|
|
91
|
+
```shell
|
|
92
|
+
mkdir -p ~/.config/fish/completions
|
|
93
|
+
codex-auth completion fish > ~/.config/fish/completions/codex-auth.fish
|
|
94
|
+
source ~/.config/fish/completions/codex-auth.fish
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
Install Bash completions with:
|
|
98
|
+
|
|
99
|
+
```shell
|
|
100
|
+
mkdir -p ~/.local/share/bash-completion/completions
|
|
101
|
+
codex-auth completion bash > ~/.local/share/bash-completion/completions/codex-auth
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
Install Zsh completions with (the directory must be in `fpath` before `compinit` runs):
|
|
105
|
+
|
|
106
|
+
```shell
|
|
107
|
+
mkdir -p ~/.zsh/completions
|
|
108
|
+
codex-auth completion zsh > ~/.zsh/completions/_codex-auth
|
|
109
|
+
echo 'fpath=(~/.zsh/completions $fpath)' >> ~/.zshrc
|
|
110
|
+
autoload -Uz compinit && compinit
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
Install PowerShell completions with:
|
|
114
|
+
|
|
115
|
+
```powershell
|
|
116
|
+
codex-auth completion pwsh >> $PROFILE
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
Tab cycles candidates inline by default on PowerShell 5.1 and 7+; for a menu picker, add `Set-PSReadLineKeyHandler -Key Tab -Function MenuComplete` to your profile.
|
|
80
120
|
|
|
81
121
|
## Quick Examples
|
|
82
122
|
|
|
@@ -158,8 +198,6 @@ This project is provided as-is and use is at your own risk.
|
|
|
158
198
|
2. **Local-only:** With per-command `--skip-api`, the tool scans local `~/.codex/sessions/*/rollout-*.jsonl` files for usage data and skips team name refresh API calls. This mode is safer, but it can be less accurate because recent Codex rollout files often contain `rate_limits: null`, so the latest local usage limit data may lag by several hours.
|
|
159
199
|
|
|
160
200
|
**API Call Declaration:**
|
|
161
|
-
By using the default API-backed refresh, this tool will send your ChatGPT access token to OpenAI's servers for usage limit and team name refresh.
|
|
162
|
-
- `GET https://chatgpt.com/backend-api/wham/usage`
|
|
163
|
-
- `GET https://chatgpt.com/backend-api/accounts`
|
|
201
|
+
By using the default API-backed refresh, this tool will send your ChatGPT access token to OpenAI's servers for usage limit, reset-credit, and team name refresh. Redeeming a reset credit with `codex-auth reset` (or from the `list --live` rail) additionally sends a consume request — the only state-mutating call this tool makes — and it is never sent during a refresh. See [docs/api.md](docs/api.md) for the exact endpoints.
|
|
164
202
|
|
|
165
203
|
This behavior may be detected by OpenAI and could violate their terms of service, potentially leading to account suspension or other risks. The decision to use this feature and any resulting consequences are entirely yours.
|
package/bin/codex-auth.exe
CHANGED
|
Binary file
|