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.md
+6-2Lines changed: 6 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -35,6 +35,10 @@ What the installer does:
35
35
- normalizes the plugin entry to `"oc-chatgpt-multi-auth"`
36
36
- clears the cached plugin copy so OpenCode reinstalls the latest package
37
37
38
+
By default, the installer now writes a full catalog config that includes both:
39
+
- modern base model entries such as `gpt-5.4` for `--variant` workflows
40
+
- explicit preset entries such as `gpt-5.4-high` so the shipped catalog is visible directly in model pickers
41
+
38
42
## Example Usage
39
43
40
44
```bash
@@ -96,10 +100,10 @@ See [Architecture](docs/development/ARCHITECTURE.md) for implementation details.
96
100
97
101
Use the quick-start path above for the fastest setup. For full setup, local development installs, legacy OpenCode support, and verification steps, see [Getting Started](docs/getting-started.md).
98
102
99
-
If you are on OpenCode `v1.0.209` or earlier, use:
103
+
If you prefer the compact variant-only config on OpenCode `v1.0.210+`, use:
Copy file name to clipboardExpand all lines: config/README.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,6 +9,8 @@ This directory contains the official OpenCode config templates for the ChatGPT C
9
9
|[`opencode-modern.json`](./opencode-modern.json)|**v1.0.210+**| Variant-based config: 9 base models with 34 total presets |
10
10
|[`opencode-legacy.json`](./opencode-legacy.json)|**v1.0.209 and below**| Legacy explicit entries: 34 individual model definitions |
11
11
12
+
The installer currently uses a merged full-catalog mode by default so users get both the modern base entries and the explicit preset entries without having to hand-edit `opencode.json`.
Copy file name to clipboardExpand all lines: docs/configuration.md
+5-4Lines changed: 5 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -46,10 +46,11 @@ controls how much thinking the model does.
46
46
|`gpt-5.1-codex-mini`| medium, high |
47
47
|`gpt-5.1`| none, low, medium, high |
48
48
49
-
the shipped config templates include 7 base model families and 26 shipped presets overall (26 modern variants or 26 legacy explicit entries). add `gpt-5.4-pro` and/or `gpt-5.3-codex-spark` manually only for entitled workspaces.
50
-
for context sizing, shipped templates use:
51
-
-`gpt-5.4`, `gpt-5.4-mini`, and `gpt-5.4-pro`: `context=1000000`, `output=128000`
52
-
- other shipped families: `context=272000`, `output=128000`
49
+
The shipped config templates include 9 base model families and 34 shipped presets overall (34 modern variants or 34 legacy explicit entries). On OpenCode `v1.0.210+`, those 34 presets intentionally appear as 9 base model entries plus `--variant` values. `gpt-5.4-pro` ships in the templates but may still be entitlement-gated at runtime, while `gpt-5.3-codex-spark` remains a manual add-on for entitled workspaces only.
50
+
For context sizing, shipped templates use:
51
+
-`gpt-5.4` and `gpt-5.4-pro`: `context=1050000`, `output=128000`
52
+
-`gpt-5.4-mini`, `gpt-5.4-nano`, `gpt-5-codex`, `gpt-5.1-codex`, `gpt-5.1-codex-max`, and `gpt-5.1-codex-mini`: `context=400000`, `output=128000`
53
+
-`gpt-5.1`: `context=272000`, `output=128000`
53
54
54
55
model normalization aliases:
55
56
- legacy `gpt-5`, `gpt-5-mini`, `gpt-5-nano` map to `gpt-5.4` (not to `gpt-5.4-mini`)
Copy file name to clipboardExpand all lines: docs/development/CONFIG_FLOW.md
+18-6Lines changed: 18 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -47,7 +47,7 @@ That file controls plugin behavior such as retry policy, beginner safe mode, fal
47
47
48
48
`scripts/install-opencode-codex-auth.js` performs these steps:
49
49
50
-
1. Load the selected template (`config/opencode-modern.json`by default, `config/opencode-legacy.json` with `--legacy`).
50
+
1. Load the selected template set (`full` by default, `config/opencode-modern.json`with `--modern`, `config/opencode-legacy.json` with `--legacy`).
51
51
2. Back up an existing `~/.config/opencode/opencode.json`.
52
52
3. Normalize the plugin list so it ends with plain `oc-chatgpt-multi-auth`.
53
53
4. Replace `provider.openai` with the selected shipped template block.
@@ -56,20 +56,32 @@ That file controls plugin behavior such as retry policy, beginner safe mode, fal
56
56
Important detail:
57
57
58
58
- The installer intentionally writes the plugin entry as `oc-chatgpt-multi-auth`, not `oc-chatgpt-multi-auth@latest`.
59
+
- The default `full` install mode merges the modern base-model template with the explicit legacy preset entries so users can access `--variant` workflows and still see the full shipped preset catalog directly.
59
60
60
61
## Shipped Template Structure
61
62
62
63
### Modern template
63
64
64
-
`config/opencode-modern.json` is the default for OpenCode `v1.0.210+`.
65
+
`config/opencode-modern.json` is the compact variant-based template for OpenCode `v1.0.210+`.
65
66
66
67
It currently ships:
67
68
68
-
- 7 base model families
69
-
- 26 total variants
70
-
-`gpt-5.4` and `gpt-5.4-mini` at 1,000,000 context / 128,000 output
69
+
- 9 base model families
70
+
- 34 total variants
71
+
-`gpt-5.4` and `gpt-5.4-pro` at 1,050,000 context / 128,000 output
72
+
-`gpt-5.4-mini`, `gpt-5.4-nano`, and Codex families at 400,000 context / 128,000 output
73
+
-`gpt-5.1` at 272,000 context / 128,000 output
71
74
-`store: false` plus `include: ["reasoning.encrypted_content"]`
72
75
76
+
### Full installer mode
77
+
78
+
The default installer mode combines:
79
+
80
+
- the 9 modern base model entries from `config/opencode-modern.json`
81
+
- the 34 explicit preset entries from `config/opencode-legacy.json`
82
+
83
+
That hybrid install mode is what fixes the "only 9 models" complaint without removing `--variant` support.
84
+
73
85
Example shape:
74
86
75
87
```json
@@ -110,7 +122,7 @@ opencode run "task" --model=openai/gpt-5.4 --variant=high
110
122
111
123
It currently ships:
112
124
113
-
-26 explicit model entries
125
+
-34 explicit model entries
114
126
- separate model IDs such as `gpt-5.4-high` and `gpt-5.4-mini-xhigh`
115
127
- the same OpenAI provider defaults (`store: false`, `reasoning.encrypted_content`)
Copy file name to clipboardExpand all lines: docs/getting-started.md
+15-3Lines changed: 15 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,7 +29,17 @@ opencode run "Explain this repository" --model=openai/gpt-5.4 --variant=medium
29
29
30
30
The installer updates `~/.config/opencode/opencode.json`, backs up the previous config, normalizes the plugin entry to `oc-chatgpt-multi-auth`, and clears the cached plugin copy so OpenCode reinstalls the latest package.
31
31
32
-
If you are on OpenCode `v1.0.209` or earlier, use:
32
+
By default, the installer writes a full catalog config so you get both:
33
+
- modern base model entries such as `gpt-5.4` for `--variant` workflows
34
+
- explicit preset entries such as `gpt-5.4-high` so the full shipped catalog is visible directly in pickers
35
+
36
+
If you prefer the compact variant-only config on OpenCode `v1.0.210+`, use:
37
+
38
+
```bash
39
+
npx -y oc-chatgpt-multi-auth@latest --modern
40
+
```
41
+
42
+
If you explicitly want the older explicit-only layout, use:
33
43
34
44
```bash
35
45
npx -y oc-chatgpt-multi-auth@latest --legacy
@@ -101,9 +111,11 @@ The repository ships two supported templates:
101
111
|`v1.0.209` and earlier |[`config/opencode-legacy.json`](../config/opencode-legacy.json)|
102
112
103
113
The templates include the supported GPT-5/Codex families, required `store: false` handling, and `reasoning.encrypted_content` for multi-turn sessions.
104
-
Current templates expose 7 shipped base model families and 26 shipped presets overall (26 modern variants or 26 legacy explicit entries), including `gpt-5.4-mini`.
114
+
Current templates expose 9 shipped base model families and 34 shipped presets overall (34 modern variants or 34 legacy explicit entries).
115
+
116
+
On OpenCode `v1.0.210+`, the modern template intentionally shows 9 base model entries because the additional presets are selected through `--variant` instead of separate model keys.
105
117
106
-
Optional model IDs such as `gpt-5.4-pro`or entitlement-gated Spark variants should be added manually only when your workspace supports them.
118
+
`gpt-5.4-pro`ships in the templates but can still be entitlement-gated by your workspace. Add entitlement-gated Spark variants manually only when your workspace supports them.
0 commit comments