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 58d2b9d
Browse filesBrowse the repository at this point in the historyBrowse files
- Providers/OpenAI: preserve native `reasoning.effort: "none"` and strict tool schemas on direct OpenAI-family endpoints, keep OpenAI-compatible proxies on the older compat shim path, and enable OpenAI WebSocket warm-up by default for native Responses routes.
25
+
- Providers/OpenAI Codex: split native `contextWindow` from runtime `contextTokens` for `openai-codex/gpt-5.4`, keep the default effective cap at `272000`, and expose a per-model config override via `models.providers.*.models[].contextTokens`.
25
26
- Skills/uv install: block workspace `.env` from overriding `UV_PYTHON` and strip related interpreter override keys from uv skill-install subprocesses so repository-controlled env files cannot steer the selected Python runtime. (#59178) Thanks @pgondhi987.
26
27
- Telegram/reactions: preserve `reactionNotifications: "own"` across gateway restarts by persisting sent-message ownership state instead of treating cold cache as a permissive fallback. (#59207) Thanks @samzong.
27
28
- Gateway/startup: detect PID recycling in gateway lock files on Windows and macOS, and add startup progress so stale lock conflicts no longer block healthy restarts. (#59843) Thanks @TonyDerek-dot.
- Fallback runtime rules, cooldown probes, and session-override persistence are
20
20
documented in [/concepts/model-failover](/concepts/model-failover).
21
+
-`models.providers.*.models[].contextWindow` is native model metadata;
22
+
`models.providers.*.models[].contextTokens` is the effective runtime cap.
21
23
- Provider plugins can inject model catalogs via `registerProvider({ catalog })`;
22
24
OpenClaw merges that output into `models.providers` before writing
23
25
`models.json`.
@@ -187,6 +189,7 @@ OpenClaw ships with the pi‑ai catalog. These providers require **no**
187
189
-`params.serviceTier` is also forwarded on native Codex Responses requests (`chatgpt.com/backend-api`)
188
190
- Shares the same `/fast` toggle and `params.fastMode` config as direct `openai/*`; OpenClaw maps that to `service_tier=priority`
189
191
-`openai-codex/gpt-5.3-codex-spark` remains available when the Codex OAuth catalog exposes it; entitlement-dependent
192
+
-`openai-codex/gpt-5.4` keeps native `contextWindow = 1050000` and a default runtime `contextTokens = 272000`; override the runtime cap with `models.providers.openai-codex.models[].contextTokens`
190
193
- Policy note: OpenAI Codex OAuth is explicitly supported for external tools/workflows like OpenClaw.
191
194
192
195
```json5
@@ -195,6 +198,18 @@ OpenClaw ships with the pi‑ai catalog. These providers require **no**
195
198
}
196
199
```
197
200
201
+
```json5
202
+
{
203
+
models: {
204
+
providers: {
205
+
"openai-codex": {
206
+
models: [{ id:"gpt-5.4", contextTokens:160000 }],
207
+
},
208
+
},
209
+
},
210
+
}
211
+
```
212
+
198
213
### Other subscription-style hosted options
199
214
200
215
-[Qwen / Model Studio](/providers/qwen_modelstudio): Alibaba Cloud Standard pay-as-you-go and Coding Plan subscription endpoints
@@ -2204,6 +2205,7 @@ OpenClaw uses the built-in model catalog. Add custom providers via `models.provi
2204
2205
- SecretRef-managed provider header values are refreshed from source markers (`secretref-env:ENV_VAR_NAME` for env refs, `secretref-managed` for file/exec refs).
2205
2206
- Empty or missing agent `apiKey`/`baseUrl` fall back to `models.providers` in config.
2206
2207
- Matching model `contextWindow`/`maxTokens` use the higher value between explicit config and implicit catalog values.
2208
+
- Matching model `contextTokens` preserves an explicit runtime cap when present; use it to limit effective context without changing native model metadata.
2207
2209
- Use `models.mode: "replace"` when you want config to fully rewrite `models.json`.
2208
2210
- Marker persistence is source-authoritative: markers are written from the active source config snapshot (pre-resolution), not from resolved runtime secret values.
2209
2211
@@ -2219,6 +2221,8 @@ OpenClaw uses the built-in model catalog. Add custom providers via `models.provi
2219
2221
-`models.providers.*.baseUrl`: upstream API base URL.
2220
2222
-`models.providers.*.headers`: extra static headers for proxy/tenant routing.
2221
2223
-`models.providers.*.models`: explicit provider model catalog entries.
2224
+
-`models.providers.*.models.*.contextWindow`: native model context window metadata.
2225
+
-`models.providers.*.models.*.contextTokens`: optional runtime context cap. Use this when you want a smaller effective context budget than the model's native `contextWindow`.
2222
2226
-`models.providers.*.models.*.compat.supportsDeveloperRole`: optional compatibility hint. For `api: "openai-completions"` with a non-empty non-native `baseUrl` (host not `api.openai.com`), OpenClaw forces this to `false` at runtime. Empty/omitted `baseUrl` keeps default OpenAI behavior.
0 commit comments