

























@@ -180,7 +180,10 @@ Codex after changing config.
180180 Codex app-server binary by default, so local `codex` commands on `PATH` do
181181 not affect normal harness startup.
182182- Codex auth available to the app-server process or to OpenClaw's Codex auth
183- bridge.
183+ bridge. Local app-server launches use an OpenClaw-managed Codex home for each
184+ agent and an isolated child `HOME`, so they do not read your personal
185+`~/.codex` account, skills, plugins, config, thread state, or native
186+`$HOME/.agents/skills` by default.
184187185188The plugin blocks older or unversioned app-server handshakes. That keeps
186189OpenClaw on the protocol surface it has been tested against.
@@ -511,11 +514,33 @@ For an already-running app-server, use WebSocket transport:
511514```
512515513516Stdio app-server launches inherit OpenClaw's process environment by default,
514-but OpenClaw owns the Codex app-server account bridge. Auth is selected in this
515-order:
517+but OpenClaw owns the Codex app-server account bridge and sets both
518+`CODEX_HOME` and `HOME` to per-agent directories under that agent's OpenClaw
519+state. Codex's own skill loader reads `$CODEX_HOME/skills` and
520+`$HOME/.agents/skills`, so both values are isolated for local app-server
521+launches. That keeps Codex-native skills, plugins, config, accounts, and thread
522+state scoped to the OpenClaw agent instead of leaking in from the operator's
523+personal Codex CLI home.
524+525+OpenClaw plugins and OpenClaw skill snapshots still flow through OpenClaw's own
526+plugin registry and skill loader. Personal Codex CLI assets do not. If you have
527+useful Codex CLI skills or plugins that should become part of an OpenClaw agent,
528+inventory them explicitly:
529+530+```bash
531+openclaw migrate codex --dry-run
532+openclaw migrate apply codex --yes
533+```
534+535+The Codex migration provider copies skills into the current OpenClaw agent
536+workspace. Codex native plugins, hooks, and config files are reported or archived
537+for manual review instead of being activated automatically, because they can
538+execute commands, expose MCP servers, or carry credentials.
539+540+Auth is selected in this order:
5165415175421. An explicit OpenClaw Codex auth profile for the agent.
518-2. The app-server's existing account, such as a local Codex CLI ChatGPT sign-in.
543+2. The app-server's existing account in that agent's Codex home.
5195443. For local stdio app-server launches only, `CODEX_API_KEY`, then
520545`OPENAI_API_KEY`, when no app-server account is present and OpenAI auth is
521546 still required.
@@ -553,21 +578,21 @@ If a deployment needs additional environment isolation, add those variables to
553578554579Supported `appServer` fields:
555580556-| Field | Default | Meaning |
557-| ------------------- | ---------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- |
558-| `transport` | `"stdio"` | `"stdio"` spawns Codex; `"websocket"` connects to `url`. |
559-| `command` | managed Codex binary | Executable for stdio transport. Leave unset to use the managed binary; set it only for an explicit override. |
560-| `args` | `["app-server", "--listen", "stdio://"]` | Arguments for stdio transport. |
561-| `url` | unset | WebSocket app-server URL. |
562-| `authToken` | unset | Bearer token for WebSocket transport. |
563-| `headers` | `{}` | Extra WebSocket headers. |
564-| `clearEnv` | `[]` | Extra environment variable names removed from the spawned stdio app-server process after OpenClaw builds its inherited environment. |
565-| `requestTimeoutMs` | `60000` | Timeout for app-server control-plane calls. |
566-| `mode` | `"yolo"` | Preset for YOLO or guardian-reviewed execution. |
567-| `approvalPolicy` | `"never"` | Native Codex approval policy sent to thread start/resume/turn. |
568-| `sandbox` | `"danger-full-access"` | Native Codex sandbox mode sent to thread start/resume. |
569-| `approvalsReviewer` | `"user"` | Use `"auto_review"` to let Codex review native approval prompts. `guardian_subagent` remains a legacy alias. |
570-| `serviceTier` | unset | Optional Codex app-server service tier: `"fast"`, `"flex"`, or `null`. Invalid legacy values are ignored. |
581+| Field | Default | Meaning |
582+| ------------------- | ---------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
583+| `transport` | `"stdio"` | `"stdio"` spawns Codex; `"websocket"` connects to `url`. |
584+| `command` | managed Codex binary | Executable for stdio transport. Leave unset to use the managed binary; set it only for an explicit override. |
585+| `args` | `["app-server", "--listen", "stdio://"]` | Arguments for stdio transport. |
586+| `url` | unset | WebSocket app-server URL. |
587+| `authToken` | unset | Bearer token for WebSocket transport. |
588+| `headers` | `{}` | Extra WebSocket headers. |
589+| `clearEnv` | `[]` | Extra environment variable names removed from the spawned stdio app-server process after OpenClaw builds its inherited environment. `CODEX_HOME` and `HOME` are reserved for OpenClaw's per-agent Codex isolation on local launches. |
590+| `requestTimeoutMs` | `60000` | Timeout for app-server control-plane calls. |
591+| `mode` | `"yolo"` | Preset for YOLO or guardian-reviewed execution. |
592+| `approvalPolicy` | `"never"` | Native Codex approval policy sent to thread start/resume/turn. |
593+| `sandbox` | `"danger-full-access"` | Native Codex sandbox mode sent to thread start/resume. |
594+| `approvalsReviewer` | `"user"` | Use `"auto_review"` to let Codex review native approval prompts. `guardian_subagent` remains a legacy alias. |
595+| `serviceTier` | unset | Optional Codex app-server service tier: `"fast"`, `"flex"`, or `null`. Invalid legacy values are ignored. |
571596572597OpenClaw-owned dynamic tool calls are bounded independently from
573598`appServer.requestTimeoutMs`: each Codex `item/tool/call` request must receive
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。