Codex Bridge
/install codex-bridge
Codex Bridge
Delegate coding tasks from OpenClaw to the local codex CLI and manage them asynchronously.
This skill provides a file-based bridge so OpenClaw can:
- dispatch tasks
- poll status and recent output
- relay clarifying questions
- send answers
- collect final results
When to Use
- Build scripts (Python, Bash, etc.)
- Implement or refactor code in an existing project
- Run larger multi-file coding tasks in the background
- Delegate coding work while keeping OpenClaw responsive
- Handle tasks that may require clarifying questions mid-run
When NOT to Use
- Quick factual questions or explanations
- Small code snippets that OpenClaw can write directly
- Non-coding tasks
- Tasks that should not invoke a local coding agent/CLI
Dispatch a Task
~/.openclaw/skills/codex-bridge/codex-bridge-dispatch.sh \
--task-id \x3Cdescriptive-name> \
--workdir \x3Cproject-directory> \
--prompt "\x3Cdetailed coding task>"
Prompt Writing
Include:
- what to build/fix
- file paths if known
- expected behavior/output
- language/framework preferences
- constraints (tests, style, no new deps, etc.)
Example:
~/.openclaw/skills/codex-bridge/codex-bridge-dispatch.sh \
--task-id scripts-csv-parser \
--workdir ~/projects/data-tools \
--prompt "Create parse_orders.py. Read orders CSV, keep shipped rows, group by customer_id, and write summary CSV with columns customer_id, order_count, total_amount. Use pandas. Add basic CLI args and error handling."
Check Status
~/.openclaw/skills/codex-bridge/codex-bridge-status.sh --task-id \x3Cid>
Common status commands:
~/.openclaw/skills/codex-bridge/codex-bridge-status.sh --list
~/.openclaw/skills/codex-bridge/codex-bridge-status.sh --task-id \x3Cid> --output
~/.openclaw/skills/codex-bridge/codex-bridge-status.sh --task-id \x3Cid> --question
~/.openclaw/skills/codex-bridge/codex-bridge-status.sh --task-id \x3Cid> --result
~/.openclaw/skills/codex-bridge/codex-bridge-status.sh --task-id \x3Cid> --log
Answer Clarifying Questions
When status is waiting_for_answer, read the pending question and send a response:
~/.openclaw/skills/codex-bridge/codex-bridge-status.sh --task-id \x3Cid> --question
~/.openclaw/skills/codex-bridge/codex-bridge-answer.sh --task-id \x3Cid> --answer "\x3Canswer text>"
The bridge resumes the same Codex session after the answer is written.
Workflow
- Dispatch task with a clear prompt.
- Report the task ID.
- Poll status/output periodically.
- If status becomes
waiting_for_answer, read--question, relay to user, then write answer with--answer. - When status is
complete, read--resultand summarize outcomes. - If status is
error, inspect--logand--output.
Notes and Limits
- Uses the local
codexCLI (codex execandcodex exec resume). - Clarifying questions are implemented via a lightweight text marker protocol in the prompt wrapper.
- Bridge state is stored in
~/.codex-bridge/tasks/\x3Ctask-id>/. - Commands run via Codex in the specified
--workdir. - For unattended runs, the bridge times out after 10 minutes waiting for an answer and resumes with a default/sensible fallback.
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install codex-bridge - 安装完成后,直接呼叫该 Skill 的名称或使用
/codex-bridge触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Codex Bridge 是什么?
Dispatch coding tasks to the local OpenAI Codex CLI with background execution, status polling, and answerable clarifying questions. Use when OpenClaw should... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 369 次。
如何安装 Codex Bridge?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install codex-bridge」即可一键安装,无需额外配置。
Codex Bridge 是免费的吗?
是的,Codex Bridge 完全免费(开源免费),可自由下载、安装和使用。
Codex Bridge 支持哪些平台?
Codex Bridge 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Codex Bridge?
由 Abraham Perl(@abeperl)开发并维护,当前版本 v1.0.0。