@@ -54,7 +54,7 @@ Install the opencode-openai-codex-auth-multi plugin and add the OpenAI model def
5454** Option B: One-command install**
5555
5656``` bash
57- npx -y opencode-openai-codex-auth-multi@4.3.1
57+ npx -y opencode-openai-codex-auth-multi@latest
5858```
5959
6060This writes the config to ` ~/.config/opencode/opencode.json ` , backs up existing config, and clears the plugin cache.
@@ -67,7 +67,7 @@ This writes the config to `~/.config/opencode/opencode.json`, backs up existing
6767
6868 ``` json
6969 {
70- "plugin" : [" opencode-openai-codex-auth-multi@4.3.1 " ]
70+ "plugin" : [" opencode-openai-codex-auth-multi@latest " ]
7171 }
7272 ```
7373
@@ -99,7 +99,7 @@ This writes the config to `~/.config/opencode/opencode.json`, backs up existing
99992 . Add the plugin to the ` plugin ` array:
100100 ``` json
101101 {
102- "plugin" : [" opencode-openai-codex-auth-multi@4.3.1 " ]
102+ "plugin" : [" opencode-openai-codex-auth-multi@latest " ]
103103 }
104104 ```
105105
@@ -147,7 +147,7 @@ Add this to your `~/.config/opencode/opencode.json`:
147147``` json
148148{
149149 "$schema" : " https://opencode.ai/config.json" ,
150- "plugin" : [" opencode-openai-codex-auth-multi@4.3.1 " ],
150+ "plugin" : [" opencode-openai-codex-auth-multi@latest " ],
151151 "provider" : {
152152 "openai" : {
153153 "options" : {
@@ -236,7 +236,7 @@ For legacy OpenCode (v1.0.209 and below), use `config/opencode-legacy.json` whic
236236
237237## Multi-Account Setup
238238
239- Add multiple ChatGPT accounts for higher combined quotas. The plugin automatically rotates between accounts when one is rate-limited .
239+ Add multiple ChatGPT accounts for higher combined quotas. The plugin uses ** health-aware rotation ** with automatic failover .
240240
241241``` bash
242242opencode auth login # Run again to add more accounts
@@ -247,6 +247,12 @@ opencode auth login # Run again to add more accounts
247247- ` openai-accounts-switch ` — Switch active account
248248- ` openai-accounts-status ` — Show rate limit status
249249
250+ ** How rotation works (v4.4.0+):**
251+ - Health scoring tracks success/failure per account
252+ - Token bucket prevents hitting rate limits
253+ - Hybrid selection prefers healthy accounts with available tokens
254+ - Always retries when all accounts are rate-limited (waits for reset)
255+
250256** Storage:** ` ~/.opencode/openai-codex-accounts.json `
251257
252258---
@@ -354,7 +360,7 @@ OpenCode uses `~/.config/opencode/` on **all platforms** including Windows.
354360** Solutions:**
3553611 . Update plugin:
356362 ``` bash
357- npx -y opencode-openai-codex-auth-multi@4.3.1
363+ npx -y opencode-openai-codex-auth-multi@latest
358364 ```
3593652 . Ensure config has:
360366 ``` json
@@ -399,7 +405,7 @@ Works alongside oh-my-opencode. No special configuration needed.
399405``` json
400406{
401407 "plugin" : [
402- " opencode-openai-codex-auth-multi@4.3.1 " ,
408+ " opencode-openai-codex-auth-multi@latest " ,
403409 " oh-my-opencode@latest"
404410 ]
405411}
@@ -412,7 +418,7 @@ List this plugin BEFORE DCP:
412418``` json
413419{
414420 "plugin" : [
415- " opencode-openai-codex-auth-multi@4.3.1 " ,
421+ " opencode-openai-codex-auth-multi@latest " ,
416422 " @tarquinen/opencode-dcp@latest"
417423 ]
418424}
@@ -434,6 +440,14 @@ Create `~/.opencode/openai-codex-auth-config.json` for optional settings:
434440| --------| ---------| --------------|
435441| ` codexMode ` | ` true ` | Uses Codex-OpenCode bridge prompt (synced with latest Codex CLI) |
436442
443+ ### Retry Behavior (v4.4.0+)
444+
445+ | Option | Default | What it does |
446+ | --------| ---------| --------------|
447+ | ` retryAllAccountsRateLimited ` | ` true ` | Wait and retry when all accounts are rate-limited |
448+ | ` retryAllAccountsMaxWaitMs ` | ` 0 ` | Max wait time (0 = unlimited) |
449+ | ` retryAllAccountsMaxRetries ` | ` Infinity ` | Max retry attempts |
450+
437451### Environment Variables
438452
439453``` bash
0 commit comments