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
{{ message }}
Repository navigation
Commit 0c4be13
Browse filesBrowse the repository at this point in the historyBrowse files
# supports_websockets = true # only when config.websockets is true
67
67
```
68
68
69
-
In both modes opencodex writes `$CODEX_HOME/opencodex.config.toml` as a reference/fallback config.
70
-
On loopback it contains the root keys you can merge manually if automatic injection was removed;
71
-
on non-loopback it contains the dedicated provider form.
69
+
When OpenCodex owns routing, both modes write `$CODEX_HOME/opencodex.config.toml` as a
70
+
reference/fallback config. On loopback it contains the root keys you can merge manually if automatic
71
+
injection was removed; on non-loopback it contains the dedicated provider form. External-provider
72
+
mode leaves this profile untouched.
72
73
73
74
:::caution
74
75
Root keys such as `openai_base_url`, `model_provider`, and `model_catalog_json`**must** sit before the
@@ -161,9 +162,11 @@ existing sessions with that provider id; replacing the active id can make those
161
162
disappear from Codex's history view.
162
163
163
164
Keep one tool as the owner of Codex provider configuration. To use OpenCodex behind an existing
164
-
provider manager, point that manager at the local OpenAI-compatible endpoint
165
-
`http://127.0.0.1:10100/v1`. To let OpenCodex inject routing directly, first switch Codex back to its
166
-
built-in `openai` provider, then rerun `ocx start`.
165
+
provider manager, point that provider at `http://127.0.0.1:10100/v1` with Responses passthrough
166
+
(`wire_api = "responses"` in Codex TOML), not Chat Completions translation. When proxy API auth is
167
+
enabled, also pass `x-opencodex-api-key` from `OPENCODEX_API_AUTH_TOKEN`, matching the non-loopback
168
+
provider form above. To let OpenCodex inject routing directly, first switch Codex back to its
169
+
built-in `openai` provider and remove any user-owned root `openai_base_url`, then rerun `ocx start`.
message: `⚠️ Codex routing NOT injected: config.toml selects the external model_provider ${tomlString(activeProvider)}.\n`+
374
374
` OpenCodex preserves external provider configuration so existing ${tomlString(activeProvider)} session history stays visible.\n`+
375
-
` Configure your provider manager to use http://${providerBaseHost(config?.hostname)}:${port}/v1, or switch Codex to the built-in openai provider and rerun 'ocx start'.`,
375
+
` Configure that provider for Responses passthrough at http://${providerBaseHost(config?.hostname)}:${port}/v1`+
376
+
`${shouldInjectApiAuthHeader(config) ? ` with x-opencodex-api-key from OPENCODEX_API_AUTH_TOKEN` : ""}.\n`+
377
+
` For direct injection, switch to the built-in openai provider, remove any user-owned root openai_base_url, and rerun 'ocx start'.`,
0 commit comments