acpx — Summary
Slug: acpx
Repo: openclaw/acpx
Stars: 2759 | Forks: 271
License: MIT
Language: TypeScript (Node.js ≥ 22.13.0)
Package: npm install -g acpx
Homepage: https://acpx.sh
One-Line Description
Headless CLI client for stateful Agent Client Protocol (ACP) sessions — enables agent-to-agent communication without PTY scraping.
What It Is
acpx is a TypeScript/Node.js CLI that wraps the Agent Client Protocol (ACP) to let AI agents, orchestrators, and harnesses talk to coding agents (Claude Code, Codex, Pi, Cursor, Copilot, Gemini, Kiro, and 10+ others) over a structured protocol. It is explicitly designed as an agent-first tool: the primary user is another agent or orchestrator, not a human.
Core Value Proposition
Before acpx: orchestrators had to spawn a PTY (pseudo-terminal), scrape ANSI escape codes, parse unstructured text output, and hope the agent's terminal session didn't die mid-task. After acpx: one CLI that speaks ACP, manages persistent multi-turn sessions, queues prompts safely, handles lifecycle (crash reconnect, cooperative cancel), and returns structured typed output (thinking, tool calls, diffs) — for 17 coding agents.
Key Primitives
- Persistent sessions: multi-turn conversations scoped per repo/cwd, survive across invocations
- Named sessions: run parallel workstreams in the same repo (
-s backend,-s frontend) - Prompt queueing: submit while a turn is in-flight; executes in order
- fire-and-forget:
--no-waitqueues without waiting - exec mode: one-shot stateless execution (
acpx codex exec "summarize repo") - Flows:
acpx flow run <file>— TypeScript workflow modules over multiple ACP turns, withacp/action/compute/checkpointnode types anddecision/decisionEdgefor branching - Permission policy:
approve-all,approve-reads,deny-allmodes; JSON policy withautoApprove/autoDeny/escalate/defaultAction - Structured output:
text,json,quietformats;--suppress-readsto hide file body dumps - 17 built-in agents: pi, openclaw, codex, claude, gemini, cursor, copilot, droid, iflow, kilocode, kimi, kiro, opencode, qoder, qwen, trae + raw
--agentescape hatch
Status
Alpha. API/CLI interfaces subject to change. ACP spec coverage tracked in docs/2026-02-19-acp-coverage-roadmap.md. Session state in ~/.acpx/.