Install
openclaw skills install codex-devRun Codex as a background local job with an immediate receipt, saved logs and patch artifacts, optional Telegram notifications, and explicit workdir support.
openclaw skills install codex-devUse this skill when the user wants asynchronous Codex execution instead of a long-lived interactive session.
当用户希望把 Codex 任务放到后台执行、先拿到作业回执、并在完成后查看摘要或接收 Telegram 通知时,使用这个 skill。
$HOME/.codex-dev/jobs/<job-id>/$HOME/.codex-dev/jobs/<job-id>/task.txt, status.json, codex.out.log, summary.txt, and patch.txttask.txt、status.json、codex.out.log、summary.txt、patch.txt--workdir--workdir 明确指定工作目录scripts/codex-dev-dispatchscripts/codex-dev-dispatchscripts/codex-dev-workerscripts/codex-dev-workerscripts/telegram-notifyscripts/telegram-notifyscripts/install-local.shscripts/install-local.shreferences/local-setup.mdreferences/local-setup.mdPrefer this skill for any request that should:
If the user only wants read-only inspection, a normal direct response is usually enough.
Common examples:
Run the dispatcher script directly from the installed skill folder: 从已安装的 skill 目录直接运行分发脚本:
./scripts/codex-dev-dispatch "Inspect the repo and fix one issue."
Or with an explicit work directory: 或显式指定工作目录:
./scripts/codex-dev-dispatch --workdir /absolute/path "Fix the issue only in this directory."
Query status and summary: 查询状态和摘要:
./scripts/codex-dev-dispatch status <job-id>
./scripts/codex-dev-dispatch show <job-id>
./scripts/codex-dev-dispatch help
If installed with local wrappers, the same flow can be exposed as: 如果已安装本地包装命令,也可以这样使用:
codex-dev "Fix one issue and summarize the change."
codex-help
codex-dev-status <job-id>
codex-dev-show <job-id>
常见中文用法:
codex-dev "修复一个小问题并总结修改"
codex-dev --workdir /absolute/path "只在这个目录里完成修改"
codex-help
Optional environment variables: 可选环境变量:
CODEX_DEV_DEFAULT_WORKDIRCODEX_DEV_JOBS_ROOTCODEX_DEV_CHAT_IDTELEGRAM_BOT_TOKENCODEX_DEV_OPENCLAW_CONFIGIf TELEGRAM_BOT_TOKEN is unset, the worker will try to read botToken from CODEX_DEV_OPENCLAW_CONFIG and then from ~/.openclaw/openclaw.json.
如果 TELEGRAM_BOT_TOKEN 未设置,worker 会尝试先从 CODEX_DEV_OPENCLAW_CONFIG,再从 ~/.openclaw/openclaw.json 中读取 botToken。
--workdir must be an absolute existing pathpatch.txt is generated relative to the detected repo rootFor write requests, prefer idempotent changes. If the requested content already exists, do not append or duplicate it; state that clearly in the summary. 对于写入型请求,优先保持幂等。如果目标内容已经存在,不要重复追加,并在摘要中明确说明。
references/local-setup.md when you need to wire the installed skill into a local OpenClaw agent