@@ -16,7 +16,7 @@ Follow me on [X @nummanthinks](https://x.com/nummanthinks) for future updates an
1616- ✅ ** Smart auto-updating Codex instructions** - Tracks latest stable release with ETag caching
1717- ✅ Full tool support (write, edit, bash, grep, etc.)
1818- ✅ Automatic tool remapping (Codex tools → opencode tools)
19- - ✅ High reasoning effort with detailed thinking blocks
19+ - ✅ Configurable reasoning effort and summaries (defaults: medium/auto)
2020- ✅ Modular architecture for easy maintenance
2121
2222## Installation
@@ -82,17 +82,151 @@ Select "OpenAI" and choose:
8282## Usage
8383
8484``` bash
85- # Use gpt-5-codex with high reasoning (default )
85+ # Use gpt-5-codex with plugin defaults (medium/auto/medium )
8686opencode run " create a hello world file" --model=openai/gpt-5-codex
8787
88- # Or set as default in opencode.json
89- opencode run " solve this complex algorithm problem"
88+ # Or use regular gpt-5 via ChatGPT subscription
89+ opencode run " solve this complex problem" --model=openai/gpt-5
90+
91+ # Set as default model in opencode.json
92+ opencode run " build a web app"
93+ ```
94+
95+ ### Plugin Defaults
96+
97+ When no configuration is specified, the plugin uses these defaults for all GPT-5 models:
98+
99+ ``` json
100+ {
101+ "reasoningEffort" : " medium" ,
102+ "reasoningSummary" : " auto" ,
103+ "textVerbosity" : " medium"
104+ }
105+ ```
106+
107+ - ** ` reasoningEffort: "medium" ` ** - Balanced computational effort for reasoning
108+ - ** ` reasoningSummary: "auto" ` ** - Automatically adapts summary verbosity
109+ - ** ` textVerbosity: "medium" ` ** - Balanced output length
110+
111+ These defaults match the official Codex CLI behavior and can be customized (see Configuration below).
112+
113+ ## Configuration
114+
115+ You can customize model behavior for both ` gpt-5 ` and ` gpt-5-codex ` models accessed via ChatGPT subscription.
116+
117+ ### Available Settings
118+
119+ ⚠️ ** Important** : The two models have different supported values. Only use values listed in the tables below to avoid API errors.
120+
121+ #### GPT-5 Model
122+
123+ | Setting | Supported Values | Plugin Default | Description |
124+ | ---------| -----------------| ----------------| -------------|
125+ | ` reasoningEffort ` | ` minimal ` , ` low ` , ` medium ` , ` high ` | ** ` medium ` ** | Computational effort for reasoning |
126+ | ` reasoningSummary ` | ` auto ` , ` detailed ` | ** ` auto ` ** | Verbosity of reasoning summaries |
127+ | ` textVerbosity ` | ` low ` , ` medium ` , ` high ` | ** ` medium ` ** | Output length and detail level |
128+
129+ #### GPT-5-Codex Model
130+
131+ | Setting | Supported Values | Plugin Default | Description |
132+ | ---------| -----------------| ----------------| -------------|
133+ | ` reasoningEffort ` | ` minimal ` * , ` low ` , ` medium ` , ` high ` | ** ` medium ` ** | Computational effort for reasoning |
134+ | ` reasoningSummary ` | ` auto ` , ` detailed ` | ** ` auto ` ** | Verbosity of reasoning summaries |
135+ | ` textVerbosity ` | ` medium ` only | ** ` medium ` ** | Output length (codex only supports medium) |
136+
137+ \* ` minimal ` is auto-normalized to ` low ` for gpt-5-codex
138+
139+ #### Shared Settings (Both Models)
140+
141+ | Setting | Values | Plugin Default | Description |
142+ | ---------| --------| ----------------| -------------|
143+ | ` include ` | Array of strings | ` ["reasoning.encrypted_content"] ` | Additional response fields (for stateless reasoning) |
144+
145+ ### Configuration Examples
146+
147+ #### Global Configuration
148+
149+ Apply the same settings to all GPT-5 models:
150+
151+ ``` json
152+ {
153+ "$schema" : " https://opencode.ai/config.json" ,
154+ "plugin" : [" opencode-openai-codex-auth" ],
155+ "model" : " openai/gpt-5-codex" ,
156+ "provider" : {
157+ "openai" : {
158+ "options" : {
159+ "reasoningEffort" : " high" ,
160+ "reasoningSummary" : " detailed" ,
161+ "textVerbosity" : " medium"
162+ }
163+ }
164+ }
165+ }
166+ ```
167+
168+ #### Per-Model Configuration
169+
170+ Different settings for different models:
171+
172+ ``` json
173+ {
174+ "$schema" : " https://opencode.ai/config.json" ,
175+ "plugin" : [" opencode-openai-codex-auth" ],
176+ "provider" : {
177+ "openai" : {
178+ "models" : {
179+ "gpt-5-codex" : {
180+ "options" : {
181+ "reasoningEffort" : " high" ,
182+ "reasoningSummary" : " detailed" ,
183+ "textVerbosity" : " medium"
184+ }
185+ },
186+ "gpt-5" : {
187+ "options" : {
188+ "reasoningEffort" : " high" ,
189+ "reasoningSummary" : " detailed" ,
190+ "textVerbosity" : " low"
191+ }
192+ }
193+ }
194+ }
195+ }
196+ }
197+ ```
198+
199+ #### Mixed Configuration
200+
201+ Global defaults with per-model overrides:
202+
203+ ``` json
204+ {
205+ "$schema" : " https://opencode.ai/config.json" ,
206+ "plugin" : [" opencode-openai-codex-auth" ],
207+ "model" : " openai/gpt-5-codex" ,
208+ "provider" : {
209+ "openai" : {
210+ "options" : {
211+ "reasoningEffort" : " medium" ,
212+ "reasoningSummary" : " auto" ,
213+ "textVerbosity" : " medium"
214+ },
215+ "models" : {
216+ "gpt-5-codex" : {
217+ "options" : {
218+ "reasoningSummary" : " detailed"
219+ }
220+ }
221+ }
222+ }
223+ }
224+ }
90225```
91226
92- The plugin automatically configures:
93- - ** High reasoning effort** for deep thinking
94- - ** Detailed reasoning summaries** to show thought process
95- - ** Medium text verbosity** for balanced output
227+ In this example:
228+ - ` gpt-5-codex ` uses: ` reasoningEffort: "medium" ` , ` reasoningSummary: "detailed" ` (overridden), ` textVerbosity: "medium" `
229+ - ` gpt-5 ` uses all global defaults: ` reasoningEffort: "medium" ` , ` reasoningSummary: "auto" ` , ` textVerbosity: "medium" `
96230
97231## How It Works
98232
@@ -111,13 +245,13 @@ The plugin:
1112456 . ** Tool Remapping** : Injects instructions to map Codex tools to opencode tools:
112246 - ` apply_patch ` → ` edit `
113247 - ` update_plan ` → ` todowrite `
114- 7 . ** Reasoning Configuration** : Forces high reasoning effort with detailed summaries
115- 8 . ** History Filtering** : Removes stored conversation IDs since Codex uses ` store: false `
248+ 7 . ** Reasoning Configuration** : Defaults to medium effort and auto summaries (configurable per-model)
249+ 8 . ** Encrypted Reasoning** : Includes encrypted reasoning content for stateless multi-turn conversations
250+ 9 . ** History Filtering** : Removes stored conversation IDs since Codex uses ` store: false `
116251
117252## Limitations
118253
119254- ** ChatGPT Plus/Pro required** : Must have an active ChatGPT Plus or Pro subscription
120- - ** Medium text verbosity** : Codex only supports ` medium ` for text verbosity
121255
122256## Troubleshooting
123257
0 commit comments