Codex Bridge for Openclaw

A file-based bridge that enables OpenClaw to dispatch, monitor, and manage complex coding tasks via the local Codex CLI.

abeperl
v1.0.0
Mar 5, 2026
0
1.1k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install codex-bridge

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install codex-bridge using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Codex Bridge?

Codex Bridge is a sophisticated integration for Openclaw Skills designed to facilitate seamless delegation of heavy-duty coding tasks to a local OpenAI Codex CLI. It acts as an asynchronous execution layer, allowing a primary AI agent to offload script generation, code refactoring, and multi-step development work while remaining responsive for other user requests. By utilizing a robust file-based bridge, it ensures that long-running processes are tracked, managed, and resumed effectively through dedicated background execution paths.

Codex Bridge Use Cases

  • Building complex automation scripts in Python, Bash, or JavaScript using Openclaw Skills.
  • Implementing large-scale architectural refactors across an existing codebase.
  • Offloading multi-file coding operations to background processes for better performance.
  • Managing interactive coding tasks that require human clarification mid-execution.
  • Maintaining continuous agent availability during intensive code generation cycles.

How Codex Bridge Works

  1. The user or agent dispatches a specific task using the dispatch script, defining the project directory and the prompt.
  2. The bridge initiates a background execution session via the local Codex CLI, isolating the process from the main agent loop.
  3. Openclaw Skills poll the task status periodically to capture real-time output, logs, or transition states.
  4. If Codex identifies an ambiguity, it pauses and writes a clarifying question to the bridge.
  5. Upon receiving an answer from the user via the bridge, the session resumes exactly where it left off.
  6. Once the task reaches a complete status, final code results and summaries are retrieved and presented to the user.

Codex Bridge Setup

To utilize this skill, ensure that python3 and the codex CLI are installed on your machine. You must also configure the execution permissions for the bridge scripts located within your Openclaw Skills directory.

# Ensure the scripts are executable
chmod +x ~/.openclaw/skills/codex-bridge/codex-bridge-dispatch.sh
chmod +x ~/.openclaw/skills/codex-bridge/codex-bridge-status.sh
chmod +x ~/.openclaw/skills/codex-bridge/codex-bridge-answer.sh

Codex Bridge Data Schema & Taxonomy

The bridge organizes task-related data within a structured local directory, ensuring Openclaw Skills can maintain state across asynchronous sessions.

Component Path / Detail
Task Root ~/.codex-bridge/tasks/<task-id>/
Status File Contains the current lifecycle state (e.g., waiting_for_answer, running, complete).
Task Output A continuous stream of CLI output from the Codex process.
Questions Temporary storage for clarifying questions generated during the run.
Metadata JSON records of task duration, working directory, and prompt parameters.

Codex Bridge Advanced Features

  • Background execution support enables non-blocking operations within Openclaw Skills.
  • Interactive text-marker protocol for handling clarifying questions during autonomous runs.
  • Automated 10-minute timeout for unattended tasks, ensuring sessions resume with sensible fallbacks.
  • Detailed log and result inspection for debugging failed or errored coding executions.
  • Full support for multi-agent workflows by isolating task states via unique task identifiers.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*