An asynchronous AI agent orchestration skill that executes long-running coding, research, and automation tasks in the background with results delivered to mobile messaging apps.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install codex-cli-task
Copy the skill folder to one of these locations
~/.openclaw/skills/ <project>/skills/ Priority: Workspace > Local > Bundled
Copy this prompt to OpenClaw to install it automatically.
Help me install codex-cli-task using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
The Codex CLI Task is a sophisticated background orchestration tool designed for the Openclaw Skills ecosystem. It allows developers to offload complex, multi-step tasks—such as codebase refactoring, deep research, and automated file generation—to a detached OpenAI Codex process. By running asynchronously via the shell, it ensures that the primary agent remains responsive while performing heavy lifting at zero active token cost during the execution phase.
This skill is engineered for reliability and developer-friendly visibility. It features a robust notification pipeline that delivers heartbeats, mid-task progress updates, and final results directly to Telegram threads or WhatsApp groups. It treats the AI as a general-purpose agent with full filesystem access and shell execution capabilities, making it ideal for scenarios where a simple chat interface isn't sufficient for the technical depth required.
run-task.py using nohup, detaching the process from the current OpenClaw session.Ensure you have codex and python3 installed on your system. Configuration requires setting your gateway auth tokens and session visibility in the Openclaw Skills framework.
# Standard Telegram thread-safe launch
nohup python3 run-task.py \
--task "$(cat /tmp/prompt.txt)" \
--project ~/my-project \
--session "agent:main:main:thread:THREAD_ID" \
--timeout 900 \
> /tmp/codex-run.log 2>&1 &
The skill manages persistent data and metadata to ensure session continuity and crash recovery:
| File Path | Description |
|---|---|
~/.openclaw/codex_sessions.json |
Registry of all Codex thread IDs, labels, and status. |
skills/codex-cli-task/pids/ |
Directory tracking active process IDs for lifecycle management. |
/tmp/codex-orchestrator-state-<hash>.json |
Per-project state files to prevent duplicate wake events. |
/tmp/codex-notify-{pid}.py |
Temporary scripts generated to allow Codex to send mid-task updates. |
/tmp/codex-YYYYMMDD-HHMMSS.txt |
Captured final output of the Codex execution. |
--resume flag.iterate mode where the agent automatically evaluates gaps and launches follow-up phases.--validate-only mode to verify routing and session metadata before committing to a long-running run.Loading
An automated backup utility that compresses directories into tar.gz archives and securely transmits them via QQ Email SMTP.

OpenClaw is a self-hosted gateway that bridges communication platforms with powerful AI coding agents and LLM providers.

An AI-powered tool for generating standardized, professional git commit messages following the Conventional Commits format.

A dedicated skill for fetching and decrypting original raw text from the Clipzy online clipboard using UAPI.

A centralized conversation management platform for Openclaw Skills featuring a modern Gemini-style interface and multi-agent support.

A professional multi-agent conversation management platform providing a Gemini-style interface for all your Openclaw Skills.








































