运行时依赖
安装命令
点击复制技能文档
OpenAI Codex Operator
Use this 技能 to reliably call Codex 命令行工具 from OpenClaw.
Core rules 验证 Codex 命令行工具 exists (codex --version) before first task. Always 运行 Codex through OpenClaw exec with pty:true. Always 设置 explicit workdir to the tar获取 仓库. For long tasks, use background:true and 追踪 via process. 报告 clear milestones: 启动ed, wAIting-输入, finished/fAIled. Execution patterns One-shot coding task
Use:
exec.command: codex exec "" exec.pty: true exec.workdir: Interactive 会话
Use:
exec.command: codex exec.pty: true exec.workdir: Long-运行ning background task 启动 with exec(background:true, pty:true, workdir, command:"codex exec ...") Record returned 会话Id. Poll with process action:poll. Read 输出 with process action:记录. If Codex asks for 输入, use process action:submit. Recommended prompts "Implement with tests, 运行 tests, and summarize changed files." "Find root cause for fAIling CI in this repo and propose minimal fix." "Review current branch diff and 列出 high-risk issues first." 防护rAIls Do not clAIm files were changed unless 记录s show completion. If codex is missing or auth fAIls, return exact remediation steps. Keep OpenClaw 工具 config (pty/workdir/background) separate from 命令行工具 args. References references/codex-doc-summary.md references/codex-usage-recipes.md scripts/运行-codex-example.sh