opencode-openai-codex-auth-multi 4.3.0-multiaccount.1 → 4.5.0
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/LICENSE +37 -37
- package/README.md +463 -80
- package/assets/opencode-logo-ornate-dark.svg +18 -18
- package/assets/readme-hero.svg +31 -31
- package/config/README.md +98 -98
- package/config/minimal-opencode.json +11 -11
- package/config/opencode-legacy.json +568 -568
- package/config/opencode-modern.json +236 -236
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +391 -135
- package/dist/index.js.map +1 -1
- package/dist/lib/accounts.d.ts +85 -11
- package/dist/lib/accounts.d.ts.map +1 -1
- package/dist/lib/accounts.js +352 -62
- package/dist/lib/accounts.js.map +1 -1
- package/dist/lib/auth/auth.d.ts +9 -1
- package/dist/lib/auth/auth.d.ts.map +1 -1
- package/dist/lib/auth/auth.js +26 -13
- package/dist/lib/auth/auth.js.map +1 -1
- package/dist/lib/auth/browser.d.ts.map +1 -1
- package/dist/lib/auth/browser.js +9 -2
- package/dist/lib/auth/browser.js.map +1 -1
- package/dist/lib/auth/server.d.ts.map +1 -1
- package/dist/lib/auth/server.js +11 -4
- package/dist/lib/auth/server.js.map +1 -1
- package/dist/lib/auto-update-checker.d.ts +10 -0
- package/dist/lib/auto-update-checker.d.ts.map +1 -0
- package/dist/lib/auto-update-checker.js +129 -0
- package/dist/lib/auto-update-checker.js.map +1 -0
- package/dist/lib/cli.d.ts +1 -0
- package/dist/lib/cli.d.ts.map +1 -1
- package/dist/lib/cli.js +11 -6
- package/dist/lib/cli.js.map +1 -1
- package/dist/lib/config.d.ts +5 -7
- package/dist/lib/config.d.ts.map +1 -1
- package/dist/lib/config.js +49 -6
- package/dist/lib/config.js.map +1 -1
- package/dist/lib/constants.d.ts +7 -0
- package/dist/lib/constants.d.ts.map +1 -1
- package/dist/lib/constants.js +7 -0
- package/dist/lib/constants.js.map +1 -1
- package/dist/lib/index.d.ts +13 -0
- package/dist/lib/index.d.ts.map +1 -0
- package/dist/lib/index.js +13 -0
- package/dist/lib/index.js.map +1 -0
- package/dist/lib/logger.d.ts +13 -17
- package/dist/lib/logger.d.ts.map +1 -1
- package/dist/lib/logger.js +89 -24
- package/dist/lib/logger.js.map +1 -1
- package/dist/lib/oauth-success.html +712 -712
- package/dist/lib/prompts/codex-opencode-bridge.js +121 -121
- package/dist/lib/prompts/codex.d.ts +5 -0
- package/dist/lib/prompts/codex.d.ts.map +1 -1
- package/dist/lib/prompts/codex.js +114 -93
- package/dist/lib/prompts/codex.js.map +1 -1
- package/dist/lib/refresh-queue.d.ts +100 -0
- package/dist/lib/refresh-queue.d.ts.map +1 -0
- package/dist/lib/refresh-queue.js +196 -0
- package/dist/lib/refresh-queue.js.map +1 -0
- package/dist/lib/request/fetch-helpers.d.ts +2 -3
- package/dist/lib/request/fetch-helpers.d.ts.map +1 -1
- package/dist/lib/request/fetch-helpers.js +26 -29
- package/dist/lib/request/fetch-helpers.js.map +1 -1
- package/dist/lib/request/rate-limit-backoff.d.ts +17 -0
- package/dist/lib/request/rate-limit-backoff.d.ts.map +1 -0
- package/dist/lib/request/rate-limit-backoff.js +74 -0
- package/dist/lib/request/rate-limit-backoff.js.map +1 -0
- package/dist/lib/request/request-transformer.d.ts.map +1 -1
- package/dist/lib/request/request-transformer.js +3 -2
- package/dist/lib/request/request-transformer.js.map +1 -1
- package/dist/lib/request/response-handler.js +1 -1
- package/dist/lib/request/response-handler.js.map +1 -1
- package/dist/lib/rotation.d.ts +121 -0
- package/dist/lib/rotation.d.ts.map +1 -0
- package/dist/lib/rotation.js +248 -0
- package/dist/lib/rotation.js.map +1 -0
- package/dist/lib/storage.d.ts +72 -4
- package/dist/lib/storage.d.ts.map +1 -1
- package/dist/lib/storage.js +189 -19
- package/dist/lib/storage.js.map +1 -1
- package/dist/lib/types.d.ts +37 -1
- package/dist/lib/types.d.ts.map +1 -1
- package/package.json +85 -71
- package/scripts/install-opencode-codex-auth.js +191 -191
- package/scripts/test-all-models.sh +258 -258
- package/scripts/validate-model-map.sh +97 -97
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
<svg width="234" height="42" viewBox="0 0 234 42" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
-
<path d="M18 30H6V18H18V30Z" fill="#4B4646"/>
|
|
3
|
-
<path d="M18 12H6V30H18V12ZM24 36H0V6H24V36Z" fill="#B7B1B1"/>
|
|
4
|
-
<path d="M48 30H36V18H48V30Z" fill="#4B4646"/>
|
|
5
|
-
<path d="M36 30H48V12H36V30ZM54 36H36V42H30V6H54V36Z" fill="#B7B1B1"/>
|
|
6
|
-
<path d="M84 24V30H66V24H84Z" fill="#4B4646"/>
|
|
7
|
-
<path d="M84 24H66V30H84V36H60V6H84V24ZM66 18H78V12H66V18Z" fill="#B7B1B1"/>
|
|
8
|
-
<path d="M108 36H96V18H108V36Z" fill="#4B4646"/>
|
|
9
|
-
<path d="M108 12H96V36H90V6H108V12ZM114 36H108V12H114V36Z" fill="#B7B1B1"/>
|
|
10
|
-
<path d="M144 30H126V18H144V30Z" fill="#4B4646"/>
|
|
11
|
-
<path d="M144 12H126V30H144V36H120V6H144V12Z" fill="#F1ECEC"/>
|
|
12
|
-
<path d="M168 30H156V18H168V30Z" fill="#4B4646"/>
|
|
13
|
-
<path d="M168 12H156V30H168V12ZM174 36H150V6H174V36Z" fill="#F1ECEC"/>
|
|
14
|
-
<path d="M198 30H186V18H198V30Z" fill="#4B4646"/>
|
|
15
|
-
<path d="M198 12H186V30H198V12ZM204 36H180V6H198V0H204V36Z" fill="#F1ECEC"/>
|
|
16
|
-
<path d="M234 24V30H216V24H234Z" fill="#4B4646"/>
|
|
17
|
-
<path d="M216 12V18H228V12H216ZM234 24H216V30H234V36H210V6H234V24Z" fill="#F1ECEC"/>
|
|
18
|
-
</svg>
|
|
1
|
+
<svg width="234" height="42" viewBox="0 0 234 42" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M18 30H6V18H18V30Z" fill="#4B4646"/>
|
|
3
|
+
<path d="M18 12H6V30H18V12ZM24 36H0V6H24V36Z" fill="#B7B1B1"/>
|
|
4
|
+
<path d="M48 30H36V18H48V30Z" fill="#4B4646"/>
|
|
5
|
+
<path d="M36 30H48V12H36V30ZM54 36H36V42H30V6H54V36Z" fill="#B7B1B1"/>
|
|
6
|
+
<path d="M84 24V30H66V24H84Z" fill="#4B4646"/>
|
|
7
|
+
<path d="M84 24H66V30H84V36H60V6H84V24ZM66 18H78V12H66V18Z" fill="#B7B1B1"/>
|
|
8
|
+
<path d="M108 36H96V18H108V36Z" fill="#4B4646"/>
|
|
9
|
+
<path d="M108 12H96V36H90V6H108V12ZM114 36H108V12H114V36Z" fill="#B7B1B1"/>
|
|
10
|
+
<path d="M144 30H126V18H144V30Z" fill="#4B4646"/>
|
|
11
|
+
<path d="M144 12H126V30H144V36H120V6H144V12Z" fill="#F1ECEC"/>
|
|
12
|
+
<path d="M168 30H156V18H168V30Z" fill="#4B4646"/>
|
|
13
|
+
<path d="M168 12H156V30H168V12ZM174 36H150V6H174V36Z" fill="#F1ECEC"/>
|
|
14
|
+
<path d="M198 30H186V18H198V30Z" fill="#4B4646"/>
|
|
15
|
+
<path d="M198 12H186V30H198V12ZM204 36H180V6H198V0H204V36Z" fill="#F1ECEC"/>
|
|
16
|
+
<path d="M234 24V30H216V24H234Z" fill="#4B4646"/>
|
|
17
|
+
<path d="M216 12V18H228V12H216ZM234 24H216V30H234V36H210V6H234V24Z" fill="#F1ECEC"/>
|
|
18
|
+
</svg>
|
package/assets/readme-hero.svg
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="1200" height="300" viewBox="0 0 1200 300" role="img" aria-label="OpenCode Codex OAuth">
|
|
2
|
-
<defs>
|
|
3
|
-
<linearGradient id="bg" x1="0" y1="0" x2="1" y2="1">
|
|
4
|
-
<stop offset="0%" stop-color="#0f172a" />
|
|
5
|
-
<stop offset="100%" stop-color="#1f2937" />
|
|
6
|
-
</linearGradient>
|
|
7
|
-
<linearGradient id="accent" x1="0" y1="0" x2="1" y2="0">
|
|
8
|
-
<stop offset="0%" stop-color="#38bdf8" />
|
|
9
|
-
<stop offset="100%" stop-color="#22d3ee" />
|
|
10
|
-
</linearGradient>
|
|
11
|
-
</defs>
|
|
12
|
-
<rect width="1200" height="300" rx="28" fill="url(#bg)" />
|
|
13
|
-
<g opacity="0.12">
|
|
14
|
-
<circle cx="1020" cy="70" r="120" fill="#38bdf8" />
|
|
15
|
-
<circle cx="150" cy="260" r="140" fill="#22d3ee" />
|
|
16
|
-
</g>
|
|
17
|
-
<g fill="none" stroke="url(#accent)" stroke-width="8" stroke-linecap="round" stroke-linejoin="round">
|
|
18
|
-
<path d="M160 95 L100 150 L160 205" />
|
|
19
|
-
<path d="M280 95 L340 150 L280 205" />
|
|
20
|
-
<path d="M205 80 L235 220" />
|
|
21
|
-
</g>
|
|
22
|
-
<text x="420" y="120" fill="#e2e8f0" font-size="42" font-family="'IBM Plex Sans','Segoe UI',Arial,sans-serif" font-weight="600">
|
|
23
|
-
OpenCode Codex OAuth
|
|
24
|
-
</text>
|
|
25
|
-
<text x="420" y="170" fill="#cbd5f5" font-size="24" font-family="'IBM Plex Sans','Segoe UI',Arial,sans-serif">
|
|
26
|
-
ChatGPT Plus/Pro auth for GPT-5.2 and Codex models
|
|
27
|
-
</text>
|
|
28
|
-
<text x="420" y="220" fill="#7dd3fc" font-size="18" font-family="'IBM Plex Sans','Segoe UI',Arial,sans-serif">
|
|
29
|
-
One-command install, modern variants, full tool support
|
|
30
|
-
</text>
|
|
31
|
-
</svg>
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="1200" height="300" viewBox="0 0 1200 300" role="img" aria-label="OpenCode Codex OAuth">
|
|
2
|
+
<defs>
|
|
3
|
+
<linearGradient id="bg" x1="0" y1="0" x2="1" y2="1">
|
|
4
|
+
<stop offset="0%" stop-color="#0f172a" />
|
|
5
|
+
<stop offset="100%" stop-color="#1f2937" />
|
|
6
|
+
</linearGradient>
|
|
7
|
+
<linearGradient id="accent" x1="0" y1="0" x2="1" y2="0">
|
|
8
|
+
<stop offset="0%" stop-color="#38bdf8" />
|
|
9
|
+
<stop offset="100%" stop-color="#22d3ee" />
|
|
10
|
+
</linearGradient>
|
|
11
|
+
</defs>
|
|
12
|
+
<rect width="1200" height="300" rx="28" fill="url(#bg)" />
|
|
13
|
+
<g opacity="0.12">
|
|
14
|
+
<circle cx="1020" cy="70" r="120" fill="#38bdf8" />
|
|
15
|
+
<circle cx="150" cy="260" r="140" fill="#22d3ee" />
|
|
16
|
+
</g>
|
|
17
|
+
<g fill="none" stroke="url(#accent)" stroke-width="8" stroke-linecap="round" stroke-linejoin="round">
|
|
18
|
+
<path d="M160 95 L100 150 L160 205" />
|
|
19
|
+
<path d="M280 95 L340 150 L280 205" />
|
|
20
|
+
<path d="M205 80 L235 220" />
|
|
21
|
+
</g>
|
|
22
|
+
<text x="420" y="120" fill="#e2e8f0" font-size="42" font-family="'IBM Plex Sans','Segoe UI',Arial,sans-serif" font-weight="600">
|
|
23
|
+
OpenCode Codex OAuth
|
|
24
|
+
</text>
|
|
25
|
+
<text x="420" y="170" fill="#cbd5f5" font-size="24" font-family="'IBM Plex Sans','Segoe UI',Arial,sans-serif">
|
|
26
|
+
ChatGPT Plus/Pro auth for GPT-5.2 and Codex models
|
|
27
|
+
</text>
|
|
28
|
+
<text x="420" y="220" fill="#7dd3fc" font-size="18" font-family="'IBM Plex Sans','Segoe UI',Arial,sans-serif">
|
|
29
|
+
One-command install, modern variants, full tool support
|
|
30
|
+
</text>
|
|
31
|
+
</svg>
|
package/config/README.md
CHANGED
|
@@ -1,81 +1,81 @@
|
|
|
1
|
-
# Configuration
|
|
2
|
-
|
|
3
|
-
This directory contains the official opencode configuration files for the OpenAI Codex OAuth plugin.
|
|
4
|
-
|
|
5
|
-
## ⚠️ REQUIRED: Choose the Right Configuration
|
|
6
|
-
|
|
7
|
-
**Two configuration files are available based on your OpenCode version:**
|
|
8
|
-
|
|
9
|
-
| File | OpenCode Version | Description |
|
|
10
|
-
|------|------------------|-------------|
|
|
11
|
-
| [`opencode-modern.json`](./opencode-modern.json) | **v1.0.210+ (Jan 2026+)** | Compact config using variants system - 6 models with built-in reasoning level variants |
|
|
12
|
-
| [`opencode-legacy.json`](./opencode-legacy.json) | **v1.0.209 and below** | Extended config with separate model entries for each reasoning level - 20+ individual model definitions |
|
|
13
|
-
|
|
14
|
-
### Which one should I use?
|
|
15
|
-
|
|
16
|
-
**If you have OpenCode v1.0.210 or newer** (check with `opencode --version`):
|
|
17
|
-
```bash
|
|
18
|
-
cp config/opencode-modern.json ~/.config/opencode/opencode.json
|
|
19
|
-
```
|
|
20
|
-
|
|
21
|
-
**If you have OpenCode v1.0.209 or older**:
|
|
22
|
-
```bash
|
|
23
|
-
cp config/opencode-legacy.json ~/.config/opencode/opencode.json
|
|
24
|
-
```
|
|
25
|
-
|
|
26
|
-
### Why two configs?
|
|
27
|
-
|
|
28
|
-
OpenCode v1.0.210+ introduced a **variants system** that allows defining reasoning effort levels as variants under a single model. This reduces config size from 572 lines to ~150 lines while maintaining the same functionality.
|
|
29
|
-
|
|
30
|
-
**What you get:**
|
|
31
|
-
|
|
32
|
-
| Config File | Model Families | Reasoning Variants | Total Models |
|
|
33
|
-
|------------|----------------|-------------------|--------------|
|
|
34
|
-
| `opencode-modern.json` | 6 | Built-in variants (low/medium/high/xhigh) | 6 base models with 19 total variants |
|
|
35
|
-
| `opencode-legacy.json` | 6 | Separate model entries | 20 individual model definitions |
|
|
36
|
-
|
|
37
|
-
Both configs provide:
|
|
38
|
-
- ✅ All supported GPT 5.2/5.1 variants: gpt-5.2, gpt-5.2-codex, gpt-5.1, gpt-5.1-codex, gpt-5.1-codex-max, gpt-5.1-codex-mini
|
|
39
|
-
- ✅ Proper reasoning effort settings for each variant (including `xhigh` for Codex Max/5.2)
|
|
40
|
-
- ✅ Context limits (272k context / 128k output for all Codex families)
|
|
41
|
-
- ✅ Required options: `store: false`, `include: ["reasoning.encrypted_content"]`
|
|
42
|
-
- ✅ Image input support for all models
|
|
43
|
-
- ✅ All required metadata for OpenCode features
|
|
44
|
-
|
|
45
|
-
### Modern Config Benefits (v1.0.210+)
|
|
46
|
-
|
|
47
|
-
- **74% smaller**: 150 lines vs 572 lines
|
|
48
|
-
- **DRY**: Common options defined once at provider level
|
|
49
|
-
- **Variant cycling**: Built-in support for `Ctrl+T` to switch reasoning levels
|
|
50
|
-
- **Easier maintenance**: Add new variants without copying model definitions
|
|
51
|
-
|
|
52
|
-
## Usage
|
|
53
|
-
|
|
54
|
-
1. **Check your OpenCode version**:
|
|
55
|
-
```bash
|
|
56
|
-
opencode --version
|
|
57
|
-
```
|
|
58
|
-
|
|
59
|
-
2. **Copy the appropriate config** based on your version:
|
|
60
|
-
```bash
|
|
61
|
-
# For v1.0.210+ (recommended):
|
|
62
|
-
cp config/opencode-modern.json ~/.config/opencode/opencode.json
|
|
63
|
-
|
|
64
|
-
# For older versions:
|
|
65
|
-
cp config/opencode-legacy.json ~/.config/opencode/opencode.json
|
|
66
|
-
```
|
|
67
|
-
|
|
68
|
-
3. **Run opencode**:
|
|
69
|
-
```bash
|
|
70
|
-
# Modern config (v1.0.210+):
|
|
71
|
-
opencode run "task" --model=openai/gpt-5.2 --variant=medium
|
|
72
|
-
opencode run "task" --model=openai/gpt-5.2 --variant=high
|
|
73
|
-
|
|
74
|
-
# Legacy config:
|
|
75
|
-
opencode run "task" --model=openai/gpt-5.2-medium
|
|
76
|
-
opencode run "task" --model=openai/gpt-5.2-high
|
|
77
|
-
```
|
|
78
|
-
|
|
1
|
+
# Configuration
|
|
2
|
+
|
|
3
|
+
This directory contains the official opencode configuration files for the OpenAI Codex OAuth plugin.
|
|
4
|
+
|
|
5
|
+
## ⚠️ REQUIRED: Choose the Right Configuration
|
|
6
|
+
|
|
7
|
+
**Two configuration files are available based on your OpenCode version:**
|
|
8
|
+
|
|
9
|
+
| File | OpenCode Version | Description |
|
|
10
|
+
|------|------------------|-------------|
|
|
11
|
+
| [`opencode-modern.json`](./opencode-modern.json) | **v1.0.210+ (Jan 2026+)** | Compact config using variants system - 6 models with built-in reasoning level variants |
|
|
12
|
+
| [`opencode-legacy.json`](./opencode-legacy.json) | **v1.0.209 and below** | Extended config with separate model entries for each reasoning level - 20+ individual model definitions |
|
|
13
|
+
|
|
14
|
+
### Which one should I use?
|
|
15
|
+
|
|
16
|
+
**If you have OpenCode v1.0.210 or newer** (check with `opencode --version`):
|
|
17
|
+
```bash
|
|
18
|
+
cp config/opencode-modern.json ~/.config/opencode/opencode.json
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
**If you have OpenCode v1.0.209 or older**:
|
|
22
|
+
```bash
|
|
23
|
+
cp config/opencode-legacy.json ~/.config/opencode/opencode.json
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
### Why two configs?
|
|
27
|
+
|
|
28
|
+
OpenCode v1.0.210+ introduced a **variants system** that allows defining reasoning effort levels as variants under a single model. This reduces config size from 572 lines to ~150 lines while maintaining the same functionality.
|
|
29
|
+
|
|
30
|
+
**What you get:**
|
|
31
|
+
|
|
32
|
+
| Config File | Model Families | Reasoning Variants | Total Models |
|
|
33
|
+
|------------|----------------|-------------------|--------------|
|
|
34
|
+
| `opencode-modern.json` | 6 | Built-in variants (low/medium/high/xhigh) | 6 base models with 19 total variants |
|
|
35
|
+
| `opencode-legacy.json` | 6 | Separate model entries | 20 individual model definitions |
|
|
36
|
+
|
|
37
|
+
Both configs provide:
|
|
38
|
+
- ✅ All supported GPT 5.2/5.1 variants: gpt-5.2, gpt-5.2-codex, gpt-5.1, gpt-5.1-codex, gpt-5.1-codex-max, gpt-5.1-codex-mini
|
|
39
|
+
- ✅ Proper reasoning effort settings for each variant (including `xhigh` for Codex Max/5.2)
|
|
40
|
+
- ✅ Context limits (272k context / 128k output for all Codex families)
|
|
41
|
+
- ✅ Required options: `store: false`, `include: ["reasoning.encrypted_content"]`
|
|
42
|
+
- ✅ Image input support for all models
|
|
43
|
+
- ✅ All required metadata for OpenCode features
|
|
44
|
+
|
|
45
|
+
### Modern Config Benefits (v1.0.210+)
|
|
46
|
+
|
|
47
|
+
- **74% smaller**: 150 lines vs 572 lines
|
|
48
|
+
- **DRY**: Common options defined once at provider level
|
|
49
|
+
- **Variant cycling**: Built-in support for `Ctrl+T` to switch reasoning levels
|
|
50
|
+
- **Easier maintenance**: Add new variants without copying model definitions
|
|
51
|
+
|
|
52
|
+
## Usage
|
|
53
|
+
|
|
54
|
+
1. **Check your OpenCode version**:
|
|
55
|
+
```bash
|
|
56
|
+
opencode --version
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
2. **Copy the appropriate config** based on your version:
|
|
60
|
+
```bash
|
|
61
|
+
# For v1.0.210+ (recommended):
|
|
62
|
+
cp config/opencode-modern.json ~/.config/opencode/opencode.json
|
|
63
|
+
|
|
64
|
+
# For older versions:
|
|
65
|
+
cp config/opencode-legacy.json ~/.config/opencode/opencode.json
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
3. **Run opencode**:
|
|
69
|
+
```bash
|
|
70
|
+
# Modern config (v1.0.210+):
|
|
71
|
+
opencode run "task" --model=openai/gpt-5.2 --variant=medium
|
|
72
|
+
opencode run "task" --model=openai/gpt-5.2 --variant=high
|
|
73
|
+
|
|
74
|
+
# Legacy config:
|
|
75
|
+
opencode run "task" --model=openai/gpt-5.2-medium
|
|
76
|
+
opencode run "task" --model=openai/gpt-5.2-high
|
|
77
|
+
```
|
|
78
|
+
|
|
79
79
|
> **⚠️ Important**: Use the config file appropriate for your OpenCode version. Using the modern config with an older OpenCode version (v1.0.209 or below) will not work correctly.
|
|
80
80
|
|
|
81
81
|
> **Note**: The config templates use an **unversioned** plugin entry (`opencode-openai-codex-auth-multi`) so the installer can always pull the latest release. If you need reproducibility, pin a specific version manually.
|
|
@@ -88,23 +88,23 @@ For normal usage, prefer `opencode-modern.json` (v1.0.210+) or `opencode-legacy.
|
|
|
88
88
|
|
|
89
89
|
## Available Models
|
|
90
90
|
|
|
91
|
-
|
|
92
|
-
Both configs provide access to the same model families:
|
|
93
|
-
|
|
94
|
-
- **gpt-5.2** (none/low/medium/high/xhigh) - Latest GPT 5.2 model with full reasoning support
|
|
95
|
-
- **gpt-5.2-codex** (low/medium/high/xhigh) - GPT 5.2 Codex presets
|
|
96
|
-
- **gpt-5.1-codex-max** (low/medium/high/xhigh) - Codex Max presets
|
|
97
|
-
- **gpt-5.1-codex** (low/medium/high) - Codex model presets
|
|
98
|
-
- **gpt-5.1-codex-mini** (medium/high) - Codex mini tier presets
|
|
99
|
-
- **gpt-5.1** (none/low/medium/high) - General-purpose reasoning presets
|
|
100
|
-
|
|
101
|
-
All appear in the opencode model selector as "GPT 5.1 Codex Low (OAuth)", "GPT 5.1 High (OAuth)", etc.
|
|
102
|
-
|
|
103
|
-
## Configuration Options
|
|
104
|
-
|
|
105
|
-
See the main [README.md](../README.md#configuration) for detailed documentation of all configuration options.
|
|
106
|
-
|
|
107
|
-
## Version History
|
|
108
|
-
|
|
109
|
-
- **January 2026 (v1.0.210+)**: Introduced variant system support. Use `opencode-modern.json`
|
|
110
|
-
- **December 2025 and earlier**: Use `opencode-legacy.json`
|
|
91
|
+
|
|
92
|
+
Both configs provide access to the same model families:
|
|
93
|
+
|
|
94
|
+
- **gpt-5.2** (none/low/medium/high/xhigh) - Latest GPT 5.2 model with full reasoning support
|
|
95
|
+
- **gpt-5.2-codex** (low/medium/high/xhigh) - GPT 5.2 Codex presets
|
|
96
|
+
- **gpt-5.1-codex-max** (low/medium/high/xhigh) - Codex Max presets
|
|
97
|
+
- **gpt-5.1-codex** (low/medium/high) - Codex model presets
|
|
98
|
+
- **gpt-5.1-codex-mini** (medium/high) - Codex mini tier presets
|
|
99
|
+
- **gpt-5.1** (none/low/medium/high) - General-purpose reasoning presets
|
|
100
|
+
|
|
101
|
+
All appear in the opencode model selector as "GPT 5.1 Codex Low (OAuth)", "GPT 5.1 High (OAuth)", etc.
|
|
102
|
+
|
|
103
|
+
## Configuration Options
|
|
104
|
+
|
|
105
|
+
See the main [README.md](../README.md#configuration) for detailed documentation of all configuration options.
|
|
106
|
+
|
|
107
|
+
## Version History
|
|
108
|
+
|
|
109
|
+
- **January 2026 (v1.0.210+)**: Introduced variant system support. Use `opencode-modern.json`
|
|
110
|
+
- **December 2025 and earlier**: Use `opencode-legacy.json`
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://opencode.ai/config.json",
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://opencode.ai/config.json",
|
|
3
3
|
"plugin": ["opencode-openai-codex-auth-multi"],
|
|
4
4
|
|
|
5
|
-
"provider": {
|
|
6
|
-
"openai": {
|
|
7
|
-
"options": {
|
|
8
|
-
"store": false
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
},
|
|
12
|
-
"model": "openai/gpt-5-codex"
|
|
13
|
-
}
|
|
5
|
+
"provider": {
|
|
6
|
+
"openai": {
|
|
7
|
+
"options": {
|
|
8
|
+
"store": false
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
"model": "openai/gpt-5-codex"
|
|
13
|
+
}
|