惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

大猫的无限游戏
大猫的无限游戏
阮一峰的网络日志
阮一峰的网络日志
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
WordPress大学
WordPress大学
博客园 - 叶小钗
Hugging Face - Blog
Hugging Face - Blog
博客园 - 司徒正美
Last Week in AI
Last Week in AI
罗磊的独立博客
量子位
Jina AI
Jina AI
T
Tailwind CSS Blog
Apple Machine Learning Research
Apple Machine Learning Research
IT之家
IT之家
美团技术团队
雷峰网
雷峰网
爱范儿
爱范儿
S
SegmentFault 最新的问题
小众软件
小众软件
月光博客
月光博客
酷 壳 – CoolShell
酷 壳 – CoolShell
人人都是产品经理
人人都是产品经理
The Cloudflare Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报

Recent Commits to openclaw:main

test: merge chat side-result checks · openclaw/openclaw@ddd2c2a test: merge cron history checks · openclaw/openclaw@f7eb746 test: merge responsive navigation shell checks · openclaw/openclaw@c2e4b47 docs(changelog): add codex oauth fixes · openclaw/openclaw@628e6cd test: merge navigation routing cases · openclaw/openclaw@5d8cecb Tests: mock channel registry bundled fallback · openclaw/openclaw@2b08233 Secrets: avoid broad web search discovery for single plugin config · openclaw/openclaw@a464f59 test: merge config view browser checks · openclaw/openclaw@20cf511 fix(status): align oauth health with runtime · openclaw/openclaw@eed7116 feat: add macOS screen snapshots for monitor preview (#67954) thanks … · openclaw/openclaw@f377db1 fix: report shared auth scopes in hello-ok (#67810) thanks @BunsDev · openclaw/openclaw@0b6c39b Auto-reply: avoid eager bundled route fallback · openclaw/openclaw@3ea1bf4 Tests: narrow session binding contract setup · openclaw/openclaw@54e4e16 fix(macOS): enable undo/redo in webchat composer text input (#34962) · openclaw/openclaw@00951dc Tests: speed up channel setup promotion · openclaw/openclaw@82b529a Docs: refresh agent instructions · openclaw/openclaw@5775fe2 fix(auth): serialize OAuth refresh across agents to fix #26322 (#67876) · openclaw/openclaw@8e79080 test: allow ollama public surface boundary test · openclaw/openclaw@7d4f1a6 Docs: add test performance guardrails · openclaw/openclaw@89706d3 Tests: restore context-engine usage proof · openclaw/openclaw@e4c4f95 Tests: slim context engine runtime coverage · openclaw/openclaw@74c198f ci: retry failed custom checkouts · openclaw/openclaw@0ee5baf test: trim duplicate provider auth onboarding cases · openclaw/openclaw@1ffc02e matrix: fix sessions_spawn --thread subagent session spawning (#67643) · openclaw/openclaw@1ce2596 test: reduce auth choice fixture churn · openclaw/openclaw@857b9cd test: mock health status config boundaries · openclaw/openclaw@9d5ab4a test: mock onboard config io boundary · openclaw/openclaw@299694d test: mock legacy state plugin boundaries · openclaw/openclaw@2713089 test: mock channel install boundaries · openclaw/openclaw@b945248 test: mock doctor preview channel boundaries · openclaw/openclaw@b1a3ad4
Install Codex plugin on OpenAI model selection (#78799) ·...
pashpashpash · 2026-05-07 · via Recent Commits to openclaw:main

@@ -41,19 +41,19 @@ There are two runtime families:

41414242

Most confusion comes from several different surfaces sharing the Codex name:

434344-

| Surface | OpenClaw name/config | What it does |

45-

| ---------------------------------------------------- | ------------------------------------------ | ---------------------------------------------------------------------------------------------------------- |

46-

| Native Codex app-server runtime | `openai/*` plus `agentRuntime.id: "codex"` | Runs the embedded agent turn through Codex app-server. This is the usual ChatGPT/Codex subscription setup. |

47-

| Codex OAuth provider route | `openai-codex/*` model refs | Uses ChatGPT/Codex subscription OAuth through the normal OpenClaw PI runner. |

48-

| Codex ACP adapter | `runtime: "acp"`, `agentId: "codex"` | Runs Codex through the external ACP/acpx control plane. Use only when ACP/acpx is explicitly asked. |

49-

| Native Codex chat-control command set | `/codex ...` | Binds, resumes, steers, stops, and inspects Codex app-server threads from chat. |

50-

| OpenAI Platform API route for GPT/Codex-style models | `openai/*` model refs | Uses OpenAI API-key auth unless a runtime override, such as `agentRuntime.id: "codex"`, runs the turn. |

44+

| Surface | OpenClaw name/config | What it does |

45+

| ------------------------------------------------ | ------------------------------------ | -------------------------------------------------------------------------------------------------------------- |

46+

| Native Codex app-server runtime | `openai/*` model refs | Runs OpenAI embedded agent turns through Codex app-server. This is the usual ChatGPT/Codex subscription setup. |

47+

| Codex OAuth auth profiles | `openai-codex` auth provider | Stores ChatGPT/Codex subscription auth that the Codex app-server harness consumes. |

48+

| Codex ACP adapter | `runtime: "acp"`, `agentId: "codex"` | Runs Codex through the external ACP/acpx control plane. Use only when ACP/acpx is explicitly asked. |

49+

| Native Codex chat-control command set | `/codex ...` | Binds, resumes, steers, stops, and inspects Codex app-server threads from chat. |

50+

| OpenAI Platform API route for non-agent surfaces | `openai/*` plus API-key auth | Used for direct OpenAI APIs such as images, embeddings, speech, and realtime. |

51515252

Those surfaces are intentionally independent. Enabling the `codex` plugin makes

53-

the native app-server features available; it does not rewrite

54-

`openai-codex/*` into `openai/*`, does not change existing sessions, and does

55-

not make ACP the Codex default. Selecting `openai-codex/*` means "use the Codex

56-

OAuth provider route" unless you separately force a runtime.

53+

the native app-server features available; `openclaw doctor --fix` owns legacy

54+

`openai-codex/*` route repair and stale session pin cleanup. Selecting

55+

`openai/*` for an agent model now means "run this through Codex" unless a

56+

non-agent OpenAI API surface is being used.

57575858

The common ChatGPT/Codex subscription setup uses Codex OAuth for auth, but keeps

5959

the model ref as `openai/*` and selects the `codex` runtime:

@@ -63,9 +63,6 @@ the model ref as `openai/*` and selects the `codex` runtime:

6363

agents: {

6464

defaults: {

6565

model: "openai/gpt-5.5",

66-

agentRuntime: {

67-

id: "codex",

68-

},

6966

},

7067

},

7168

}

@@ -88,10 +85,9 @@ This is the agent-facing decision tree:

8885

1. If the user asks for **Codex bind/control/thread/resume/steer/stop**, use the

8986

native `/codex` command surface when the bundled `codex` plugin is enabled.

9087

2. If the user asks for **Codex as the embedded runtime** or wants the normal

91-

subscription-backed Codex agent experience, use

92-

`openai/<model>` with `agentRuntime.id: "codex"`.

93-

3. If the user asks for **Codex OAuth/subscription auth on the normal OpenClaw

94-

runner**, use `openai-codex/<model>` and leave the runtime as PI.

88+

subscription-backed Codex agent experience, use `openai/<model>`.

89+

3. If legacy config still contains **`openai-codex/*` model refs**, repair it to

90+

`openai/<model>` with `openclaw doctor --fix`.

9591

4. If the user explicitly says **ACP**, **acpx**, or **Codex ACP adapter**, use

9692

ACP with `runtime: "acp"` and `agentId: "codex"`.

9793

5. If the request is for **Claude Code, Gemini CLI, OpenCode, Cursor, Droid, or

@@ -100,8 +96,8 @@ This is the agent-facing decision tree:

10096

| You mean... | Use... |

10197

| --------------------------------------- | -------------------------------------------- |

10298

| Codex app-server chat/thread control | `/codex ...` from the bundled `codex` plugin |

103-

| Codex app-server embedded agent runtime | `agentRuntime.id: "codex"` |

104-

| OpenAI Codex OAuth on the PI runner | `openai-codex/*` model refs |

99+

| Codex app-server embedded agent runtime | `openai/*` agent model refs |

100+

| OpenAI Codex OAuth | `openai-codex` auth profiles |

105101

| Claude Code or other external harness | ACP/acpx |

106102107103

For the OpenAI-family prefix split, see [OpenAI](/providers/openai) and

@@ -166,17 +162,14 @@ Legacy refs such as `claude-cli/claude-opus-4-7` remain supported for

166162

compatibility, but new config should keep the provider/model canonical and put

167163

the execution backend in `agentRuntime.id`.

168164169-

`auto` mode is intentionally conservative. Plugin runtimes can claim

170-

provider/model pairs they understand, but the Codex plugin does not claim the

171-

`openai-codex` provider in `auto` mode. That keeps

172-

`openai-codex/*` as the explicit PI Codex OAuth route and avoids silently

173-

moving subscription-auth configs onto the native app-server harness.

165+

`auto` mode is intentionally conservative for most providers. OpenAI agent

166+

models are the exception: unset runtime and `auto` both resolve to the Codex

167+

harness, while explicit PI runtime config is rejected for `openai/*` agent

168+

turns.

174169175170

If `openclaw doctor` warns that the `codex` plugin is enabled while

176-

`openai-codex/*` still routes through PI, treat that as a diagnosis, not a

177-

migration. Keep the config unchanged when PI Codex OAuth is what you want.

178-

Switch to `openai/<model>` plus `agentRuntime.id: "codex"` only when you want native

179-

Codex app-server execution.

171+

`openai-codex/*` remains in config, treat that as legacy route state. Run

172+

`openclaw doctor --fix` to rewrite it to `openai/*` with the Codex runtime.

180173181174

## Compatibility contract

182175