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 c52583a
Browse filesBrowse the repository at this point in the historyBrowse files
* feat(openai): add GPT-5.6 series support
* docs: refresh map for GPT-5.6
* fix(openai): preserve GPT-5.6 thinking metadata
* fix(codex): sync managed app server version
* fix(codex): sync managed app server version
* fix(openai): account for GPT-5.6 cache writes
---------
Co-authored-by: Peter Steinberger <[email protected]>
| ChatGPT/Codex subscription with native Codex runtime |`openai/gpt-5.5`| Default OpenAI agent setup. Sign in with Codex auth. |
38
+
| GPT-5.6 limited preview |`openai/gpt-5.6-sol`, `-terra`, or `-luna`| Requires an OpenAI-approved API organization or Codex workspace. |
38
39
| Direct API-key billing for agent models |`openai/gpt-5.5` plus a Codex-compatible API-key profile | Use `auth.order.openai` to place the backup after subscription auth. |
39
40
| Direct API-key billing through explicit OpenClaw |`openai/gpt-5.5` plus provider/model runtime `openclaw`| Select a normal `openai` API-key profile. |
40
41
| Latest ChatGPT Instant API alias |`openai/chat-latest`| Direct API-key only. Moving alias for experiments, not the default. |
@@ -69,6 +70,25 @@ harness for OpenAI agent turns. Use OpenAI API-key profiles only when you want
69
70
direct API-key auth for an OpenAI agent model.
70
71
</Note>
71
72
73
+
## GPT-5.6 limited preview
74
+
75
+
OpenClaw recognizes the three public GPT-5.6 model ids:
76
+
77
+
-`openai/gpt-5.6-sol`
78
+
-`openai/gpt-5.6-terra`
79
+
-`openai/gpt-5.6-luna`
80
+
81
+
All three expose `max` reasoning in the current Codex app-server catalog. The
82
+
OpenAI launch announcement describes Sol as the flagship tier, Terra as the
83
+
balanced tier, and Luna as the fast, lower-cost tier. See the
and [preview access guide](https://help.openai.com/en/articles/20001325-a-preview-of-gpt-5-6-sol-terra-and-luna).
86
+
87
+
Access is allowlisted during the preview and can be granted separately for the
88
+
API and Codex. A paid ChatGPT plan alone does not grant access. OpenClaw keeps
89
+
`openai/gpt-5.5` as the default; selecting a GPT-5.6 ref without access returns
90
+
the upstream access error instead of falling back silently.
91
+
72
92
<Note>
73
93
OpenAI agent model turns require the bundled Codex app-server plugin. Explicit
74
94
OpenClaw runtime config remains available as an opt-in compatibility route. When OpenClaw is
Copy file name to clipboardExpand all lines: docs/reference/prompt-caching.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -107,7 +107,7 @@ Per-agent heartbeat is supported at `agents.list[].heartbeat`.
107
107
- OpenClaw uses `prompt_cache_key` to keep cache routing stable across turns. Direct OpenAI hosts use `prompt_cache_retention: "24h"` when `cacheRetention: "long"` is selected.
108
108
- OpenAI-compatible Completions providers receive `prompt_cache_key` only when their model config explicitly sets `compat.supportsPromptCacheKey: true`. Long-retention forwarding is a separate capability: explicit `cacheRetention: "long"` sends `prompt_cache_retention: "24h"` only when that compat entry also supports long cache retention. Providers such as Mistral can opt into cache keys while setting `compat.supportsLongCacheRetention: false` to suppress the long-retention field. `cacheRetention: "none"` suppresses both fields.
109
109
- OpenAI responses expose cached prompt tokens via `usage.prompt_tokens_details.cached_tokens` (or `input_tokens_details.cached_tokens` on Responses API events). OpenClaw maps that to `cacheRead`.
110
-
- OpenAI does not expose a separate cache-write token counter, so `cacheWrite` stays `0` on OpenAI paths even when the provider is warming a cache.
110
+
- GPT-5.6 Responses usage can also expose `input_tokens_details.cache_write_tokens`. OpenClaw maps that to `cacheWrite` and prices it at the model's cache-write rate; Responses that omit the field keep `cacheWrite` at `0`.
111
111
- OpenAI returns useful tracing and rate-limit headers such as `x-request-id`, `openai-processing-ms`, and `x-ratelimit-*`, but cache-hit accounting should come from the usage payload, not from headers.
112
112
- In practice, OpenAI often behaves like an initial-prefix cache rather than Anthropic-style moving full-history reuse. Stable long-prefix text turns can land near a `4864` cached-token plateau in current live probes, while tool-heavy or MCP-style transcripts often plateau near `4608` cached tokens even on exact repeats.
113
113
@@ -335,7 +335,7 @@ Defaults:
335
335
- Cache trace events are JSONL and include staged snapshots like `session:loaded`, `prompt:before`, `stream:context`, and `session:after`.
336
336
- Per-turn cache token impact is visible in normal usage surfaces via `cacheRead` and `cacheWrite` (for example `/usage full` and session usage summaries).
337
337
- For Anthropic, expect both `cacheRead` and `cacheWrite` when caching is active.
338
-
- For OpenAI, expect `cacheRead` on cache hits and `cacheWrite` to remain `0`; OpenAI does not publish a separate cache-write token field.
338
+
- For OpenAI, expect `cacheRead` on cache hits. GPT-5.6 Responses can also report `cacheWrite` while prompt segments are written; other Responses payloads that omit the write counter keep it at `0`.
339
339
- If you need request tracing, log request IDs and rate-limit headers separately from cache metrics. OpenClaw's current cache-trace output is focused on prompt/session shape and normalized token usage rather than raw provider response headers.
0 commit comments