使用 acpx CLI 通过代理客户端协议 (ACP) 运行代码编写代理,而不是使用 PTY 抓取。适用于将任务路由到 Codex、Claude Code、Gemini CLI 等。
Use acpx as the CLI transport for ACP coding clients.
acpx version, not npx acpx@latest.0.3.0.openai_codex_agent -> Codexclaude_code_agent -> Claude Codegoogle_gemini_agent -> Gemini CLInpx acpx@latest only for explicit manual experiments or upgrade checks, not as the default OpenClaw runtime backend.For OpenClaw/runtime-integrated ACP work, prefer the plugin-local binary:
bash
/opt/homebrew/lib/node_modules/openclaw/extensions/acpx/node_modules/.bin/acpx
Check the pinned version from the extension package:
bash
node -e "console.log(require('/opt/homebrew/lib/node_modules/openclaw/extensions/acpx/package.json').dependencies.acpx)"
bash
acpx codex "fix the tests"
acpx claude "refactor auth"
acpx gemini exec "summarize this repo"
acpx codex sessions new --name backend
acpx codex sessions close backend
For the full upstream reference, read: