Use acpx as a headless ACP CLI for agent-to-agent communication, including prompt/exec/sessions workflows, session scoping, queueing, permissions, and output...
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install acpx或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install acpx⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/acpx/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: acpx description: Use acpx as a headless ACP CLI for agent-to-agent communication, including prompt/exec/sessions workflows, session scoping, queueing, permissions, and output formats. ---
Use this skill when you need to run coding agents through acpx, manage persistent ACP sessions, queue prompts, or consume structured agent output from scripts.
acpx is a headless, scriptable CLI client for the Agent Client Protocol (ACP). It is built for agent-to-agent communication over the command line and avoids PTY scraping.
Core capabilities:
exec)-s/--session)--no-wait)cancel) for in-flight turnssession/cancel on interruptset-mode, set )--fileconfig show|initsessions show, sessions history)statusauthenticate handshake via env/config credentialstext, json, quiet)--agent escape hatchnpm i -g acpx
For normal session reuse, prefer a global install over npx.
prompt is the default verb.
acpx [global_options] [prompt_text...]
acpx [global_options] prompt [prompt_options] [prompt_text...]
acpx [global_options] exec [prompt_options] [prompt_text...]
acpx [global_options] cancel [-s <name>]
acpx [global_options] set-mode <mode> [-s <name>]
acpx [global_options] set <key> <value> [-s <name>]
acpx [global_options] status [-s <name>]
acpx [global_options] sessions [list | new [--name <name>] | close [name] | show [name] | history [name] [--limit <count>]]
acpx [global_options] config [show | init]
acpx [global_options] <agent> [prompt_options] [prompt_text...]
acpx [global_options] <agent> prompt [prompt_options] [prompt_text...]
acpx [global_options] <agent> exec [prompt_options] [prompt_text...]
acpx [global_options] <agent> cancel [-s <name>]
acpx [global_options] <agent> set-mode <mode> [-s <name>]
acpx [global_options] <agent> set <key> <value> [-s <name>]
acpx [global_options] <agent> status [-s <name>]
acpx [global_options] <agent> sessions [list | new [--name <name>] | close [name] | show [name] | history [name] [--limit <count>]]
If prompt text is omitted and stdin is piped, acpx reads prompt text from stdin.
Friendly agent names resolve to commands:
codex -> npx @zed-industries/codex-acpclaude -> npx @zed-industries/claude-agent-acpgemini -> geminiopencode -> npx opencode-aipi -> npx pi-acpRules:
codex for top-level prompt, exec, and sessions.--agent explicitly sets a raw ACP adapter command.--agent in the same command.Implicit:
acpx codex 'fix flaky tests'
Explicit:
acpx codex prompt 'fix flaky tests'
acpx prompt 'fix flaky tests' # defaults to codex
Behavior:
NO_SESSION and prompts for sessions newsession/cancel before force-kill fallbackPrompt options:
-s, --session : use a named session within the same cwd--no-wait: enqueue and return immediately when session is already busy-f, --file : read prompt text from file (- means stdin)acpx exec 'summarize this repo'
acpx codex exec 'summarize this repo'
Behavior:
acpx codex cancel
acpx codex set-mode plan
acpx codex set approval_policy conservative
Behavior:
cancel: sends cooperative session/cancel through queue-owner IPC.set-mode: calls ACP session/set_mode.set: calls ACP session/set_config_option.set-mode/set route through queue-owner IPC when active, otherwise reconnect directly.acpx sessions
acpx sessions list
acpx sessions new
acpx sessions new --name backend
acpx sessions close
acpx sessions close backend
acpx sessions show
acpx sessions history --limit 20
acpx status
acpx codex sessions
acpx codex sessions new --name backend
acpx codex sessions close backend
acpx codex sessions show backend
acpx codex sessions history backend --limit 20
acpx codex status
Behavior:
sessions and sessions list are equivalentnew creates a fresh session for the current (agentCommand, cwd, optional name) scopenew --name targets a named session scopenew replaces an existing open session in that scope, the old one is soft-closedclose targets current cwd default sessionclose targets current cwd named sessionshow [name] prints stored metadata for that scoped sessionhistory [name] prints stored turn history previews (default 20, use --limit)--agent : raw ACP agent command (escape hatch)--cwd : working directory for session scope (default: current directory)--approve-all: auto-approve all permission requests--approve-reads: auto-approve reads/searches, prompt for writes (default mode)--deny-all: deny all permission requests--format : output format (text, json, quiet)--timeout : max wait time (positive number)--ttl : queue owner idle TTL before shutdown (default 300, 0 disables TTL)--verbose: verbose ACP/debug logs to stderrPermission flags are mutually exclusive.
Config files are merged in this order (later wins):
~/.acpx/config.json/.acpxrc.json Supported keys:
defaultAgentdefaultPermissions (approve-all, approve-reads, deny-all)ttl (seconds)timeout (seconds or null)format (text, json, quiet)agents map (name -> { command })auth map (authMethodId -> credential)Use acpx config show to inspect the resolved config and acpx config init to create the global template.
Persistent prompt sessions are scoped by:
agentCommandcwdnamePersistence:
~/.acpx/sessions/*.json.-s/--session creates parallel named conversations in the same repo.--cwd changes scope and therefore session lookup.closed: true and closedAt.Resume behavior:
acpx creates a fresh session and updates the saved record.loadSession even if previously closed.--no-waitQueueing is per persistent session.
...
安装 Acpx 后,可以对 AI 说这些话来触发它
Help me get started with Acpx
Explains what Acpx does, walks through the setup, and runs a quick demo based on your current project
Use Acpx to use acpx as a headless ACP CLI for agent-to-agent communication, in...
Invokes Acpx with the right parameters and returns the result directly in the conversation
What can I do with Acpx in my marketing & growth workflow?
Lists the top use cases for Acpx, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/acpx/ 目录(个人级,所有项目可用),或 .claude/skills/acpx/(项目级)。重启 AI 客户端后,用 /acpx 主动调用,或让 AI 根据上下文自动发现并使用。
Acpx 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
Acpx 可免费安装使用。请查阅仓库了解许可证信息。
Use acpx as a headless ACP CLI for agent-to-agent communication, including prompt/exec/sessions workflows, session scoping, queueing, permissions, and output...
Acpx 属于「Marketing & Growth」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。
Automate my marketing & growth tasks using Acpx
Identifies repetitive steps in your workflow and sets up Acpx to handle them automatically