acpx

One headless CLI to drive stateful Agent Client Protocol sessions across ACP-compatible coding agents.

Source repo
openclaw/acpx
Stars
★ 3.4k
Last updated
2d ago
License
MIT
Primary language
TypeScript

At a glance

How it runs
CLILibrary / SDK
Works with
Universal · cross-platformCodex · Claude Code
Cost
Free software; you pay for model usage
Setup effort
Medium · a few setup steps
You'll need
Node.js 22.13 or newernpmACP-compatible coding agent installed and authenticatedShell / CLINetwork accessLocal filesystem
Typical use
A developer wants Codex or Claude Code to keep context across several invocations in one repo and run parallel named workstreams.
Not a fit if
  • Users who want a chat UI instead of a terminal workflow
  • Teams needing a stable API while acpx is pre-1.0
  • Anyone whose coding agent has no ACP-compatible adapter
Website
acpx.sh ↗ set on GitHub
Maintenance
Commits in the last 30 dayslast commit 2026-11-09latest release v0.22.0 (2026-11-07)+1.4 ★/day over 7 days
Source review
79/100 · Good

What does this agent do, and when should you use it?

acpx is a headless command-line client for the Agent Client Protocol (ACP), published on npm under the MIT license by openclaw. It puts Codex, Claude Code, Pi, OpenClaw and custom ACP servers behind one command shape, so switching agents is a one-word change. It supports persistent named sessions kept under ~/.acpx/, stateless exec runs, and three output modes: plain text, NDJSON events via --format json, and final-text-only via --format quiet. Sessions are scoped to the current repository and persist across invocations, with queueing, cancellation, export/import and reconnect handling. It also ships permission modes, a --cwd filesystem boundary, global and project JSON configuration, and TypeScript multi-step workflows through acpx flow run. Beyond the CLI, the package exports acpx/runtime and acpx/flows, and createSharedAcpRuntime() lets an application and CLI processes share one local session owner. The project is pre-1.0, so CLI and runtime interfaces are explicitly still evolving.

acpx takes a subcommand plus an agent name (for example acpx codex …), launches the matching ACP-compatible agent process and speaks the ACP protocol with it. It reads the prompt from arguments or stdin, the working directory from --cwd, global and project JSON configuration, and command-line flags (flags win), then creates, names, reuses or switches sessions stored under ~/.acpx/; follow-up prompts are queued while a turn is running. The output layer renders ACP events as terminal text, as NDJSON with --format json (retaining structured thinking, tool calls, diffs and completion state), or prints only the final assistant text with --format quiet. acpx flow run executes TypeScript workflows that combine ACP turns with deterministic actions, decisions, computation and checkpoints, while acpx/runtime and acpx/flows expose those primitives to code callers.

  1. A developer wants Codex or Claude Code to keep context across several invocations in one repo and run parallel named workstreams.
  2. A CI job or automation script needs machine-readable output and parses tool calls and completion state from NDJSON events.
  3. A team wants to run one prompt across several ACP-compatible agents for comparison.
  4. Someone needs tight filesystem boundaries and permission policies (from read approval to deny-all or approve-all) before letting an agent edit code.
  5. An application developer wants to embed session and workflow primitives without shelling out to the CLI.
  6. An engineering team needs to chain agent turns with deterministic computation, conditional decisions and checkpoints in TypeScript.

Key setup facts

Pulled from the install and usage notes below. The project README has the current values.

Install / run
  • npm install -g acpx@latest
  • npx acpx@latest --help
  • pnpm install --frozen-lockfile
Runtime
Node.js 22.13

How do you install or deploy this agent?

acpx requires Node.js 22.13 or newer, plus the coding agent you intend to use, installed and authenticated (where its adapter does not handle that). Install the package globally:

npm install -g acpx@latest

To try it without a global install, use npx:

npx acpx@latest --help

Building from source uses pnpm:

pnpm install --frozen-lockfile
pnpm run check

How do you use this agent?

Create a session explicitly in your repository, then send a prompt:

acpx codex sessions new
acpx codex "find the slowest test and explain why"

Use named sessions and stateless one-shot runs:

acpx codex sessions new --name backend
acpx codex -s backend "trace the checkout timeout"
acpx codex exec "summarize this repository"

Switch agents, target a custom ACP server, or set model options:

acpx claude exec "review this diff"
acpx --agent '<command>' exec "hello"
acpx --model gpt-5.4 codex exec --config-option reasoning_effort=high "review this repository"

Emit NDJSON for automation and constrain the working directory:

acpx --cwd /path/to/repo --format json codex exec "list failing tests"

What are this agent's strengths and limitations?

Pros
  • One command shape spans Codex, Claude Code, Pi, OpenClaw and custom ACP servers, so changing agents is a single argument.
  • Persistent named sessions keep context across invocations and support parallel workstreams plus queued prompts during a running turn.
  • --format json emits NDJSON ACP events that retain tool calls, diffs and completion state for automation.
  • Ships as a CLI plus acpx/runtime, acpx/flows and createSharedAcpRuntime() for embedding in applications.
  • Permission modes and the --cwd filesystem boundary make session scope and write access explicit.
Limitations
  • The project is pre-1.0 and the README says CLI and runtime interfaces will change, so upgrades carry breakage risk.
  • It supplies no model or agent capability itself; without a separately installed and authenticated upstream coding agent there is nothing to drive.
  • Requires Node.js 22.13 or newer, forcing an upgrade on older runtimes.
  • Session state lives under ~/.acpx/, so queue ownership and reconnects across processes or machines must be managed per the docs.
  • Workflow support is limited to TypeScript flows, which may need extra adaptation for non-TypeScript stacks.

How does this agent compare with similar options?

The README names no specific competitor; it positions acpx as a replacement for driving coding agents by hand in an interactive terminal, offering a structured ACP client instead.

Key facts side by side with the most closely related agents.

Agent Source review Form / cost Stars Updated Language Full support on
acpx This agent 79 · Good CLIFree + model costs ★ 3.4k 2d ago TypeScript Codex · Claude Code
pitwall 81 · Good — ★ 21 today Go Codex · Claude Code
MonoCode 71 · Some gaps Desktop appFree ★ 3.9k 2d ago Rust Codex · Claude Code
Mirafold 87 · Good CLIFreemium ★ 19 1mo ago TypeScript Codex · Claude Code

How does FollowAgents rate this agent?

FollowAgents source review · FARS-2.1
Good
79/ 100 5-point scale 4.0 / 5
Trust 19/29
Reliability 9/14
Adaptability 16/18
Convention 16/18
Effectiveness 12/13
Verifiability 7/8
Why each dimension lost points
Trust19 / 29 · 3.3/5

Permissions include default approve-reads, deny-all, non-interactive denial/failure, and per-tool policies; flows can require an explicit grant. However, approve-all is available and global/project configuration can set broad permissions, so least privilege and confirmation are not enforced in every path (2 each). Documentation clearly describes local session storage, credentials, inherited child-process environment, and data locations, and warns against sharing sensitive session files; configured credentials are still stored as plain JSON, so sensitive-data handling scores 2. The security policy states the local trust boundary and upstream-tool responsibility, but the supplied dependency evidence shows no vulnerability audit or lockfile, so dependency security is 1. Tools, file writes, terminals, and delegated agents can cause user-level side effects; sessions can be closed/pruned and prune supports dry-run, but cancellation cannot undo work already dispatched, so external effects and rollback score 2. Repository/package authorship and a security-report path are clear, but publisher identity is unverified, limiting attribution to 2.

Reliability9 / 14 · 3.2/5

The README, install/config documentation, and code broadly agree on permissions, sessions, and runtime behavior. The static sample cannot confirm every adapter behavior, and the project flags pre-1.0 interfaces as evolving, so self-consistency is 2. Node/pnpm versions, adapter prerequisites, and CI across Node versions are documented, but several adapters depend on npx or external CLIs whose availability is outside this repository, so dependency availability is 2. Permission errors, exit codes, configuration failures, and non-interactive behavior are documented, and code includes concrete argument errors; the sample does not cover every failure path, so failure messages score 2.

Adaptability16 / 18 · 4.4/5

The product explicitly targets agents, orchestrators, and developers, with persistent and one-shot sessions, scripting, and multi-agent flows (3). Permission boundaries, upstream-agent responsibility, Windows constraints, and the fact that the runtime is not a sandbox are specific (3). Thirty built-in profiles and custom commands are available, but profiles have distinct authentication and capability requirements, and the broad skill description needs its guide for precise invocation conditions, so trigger precision is 2. CLI and embedded runtime APIs, JSON/quiet output, and platform notes fit the stated environments (3).

Convention16 / 18 · 4.4/5

The README separates installation, quickstart, security, flows, and deeper references, with dedicated CLI, config, and permissions guides (3). Install instructions cover Node and pnpm requirements, adapter prerequisites, updates, and source builds (3). Stable naming is a stated design goal, but the project is explicitly pre-1.0 and the supplied packet omits changelog contents, so naming stability is 2. Quickstart, command and config examples, and adapter-guide entry points are substantial (3). The docs disclose pre-1.0 status, adapter dependencies, permission behavior, and limits on cancellation/reversal (3). The MIT text and package metadata agree (3). Package version and a changelog link are present, but the changelog itself is not included in this evidence, so version-history verifiability is 2. Author, repository, contribution guidance, and security-reporting channel are stated; ongoing maintenance ownership/response commitments are less specific and publisher identity remains unknown, so maintenance responsibility is 2.

Effectiveness12 / 13 · 4.6/5

Text, JSON NDJSON, quiet output, and session/history/status commands serve both human and automation consumers (3). A unified CLI for ACP sessions, queues, permission mediation, and workflows offers clear composition value (3). Costs include Node and the chosen agent/adapter setup and authentication, plus managing persistent state/configuration; instructions help, but the packet gives no resource-cost or adapter-stability comparison, so cost-benefit is 2.

Verifiability7 / 8 · 4.4/5

Many behaviors are traceable to focused docs, package metadata, and relevant source; CI and test commands are listed, but this review does not claim they were executed (3). The README, permissions/install docs, CLI entrypoint, flow permission code, and test sample corroborate some major claims, but the sample is incomplete and cannot verify every adapter/runtime promise (2). Documentation distinguishes current behavior from intended design (the flow-permission requirements doc explicitly says not all of it is enforced) and the security policy separates this project from upstream responsibilities, so fact/inference separation scores 3.

Risks and how to mitigate them
  • This is a low-confidence static review; the packet omits full implementation, a dependency lockfile, and all adapter guides, and no execution was performed.
  • approve-all, MCP configuration, agent processes, and inherited environments can enable privileged side effects; configure permissions deliberately and treat ~/.acpx/config.json and session records as sensitive.
  • The project is pre-1.0, and several built-in agents depend on external CLIs or adapters fetched on first use; check the selected agent's authentication requirements, capability limits, and version changes.
Evidence confidence: Low Reviewed Nov 08, 2026 Reviewed revision af67042fac73 New commits since this review; the score may not cover them
See the full review method →
Maintain this project? Add the FARS badge to your README

The badge shows the current review score and verdict and links back to this page. It refreshes about once an hour after a re-review.

FARS

[![FARS review](https://followagents.com/badge/acpx.svg)](https://followagents.com/en/agents/acpx)
<a href="https://followagents.com/en/agents/acpx"><img src="https://followagents.com/badge/acpx.svg" alt="FARS review"></a>

Recent releases

Latest entries from the project's GitHub Releases. Notes are quoted from upstream as written, not rewritten or tested by FollowAgents.

  1. v0.22.0
    Release notes excerpt
    Highlights: Patch security advisories in glob, minimatch, qs, and re2js; add Goose, DeepSeek Harness, and experimental Ante support; expose ACP message observation, configure models per flow node, and improve session reliability and shell diagnostics. Changes - Agents: add Goose as a built-in native ACP agent through goose acp. - Agents: add the native deepseek-harness profile using dsh --profile acp. - Agents: add experimental ante support through ante acp; requires Ante and the separate ante-acp adapter, with no session reopening after disconnect. …
    View on GitHub ↗
  2. v0.21.1
    Release notes excerpt
    Highlights: Patch four URI security vulnerabilities in development dependencies, update the guarded filesystem runtime, and clarify missing-prompt errors. Fixes - Dependencies: update the guarded filesystem runtime and development tools; patch four URI normalization and scheme/host confusion vulnerabilities in the development dependency fast-uri. - Docs/prompting: describe what a prompt command does with no prompt text: it exits with code 2 and Prompt is required (or Prompt from stdin is empty) instead of printing help. Thanks @KrasimirKralev.
    View on GitHub ↗
  3. v0.21.0
    Release notes excerpt
    Highlights: Add opt-in environment controls for embedded agents, clarify malformed agent command errors, and patch denial-of-service vulnerabilities in documentation dependencies. Changes - Runtime/embedding: add opt-in agentProcessEnvBlock and agentProcessEnvAllow so embedders can keep their own credentials out of the environment inherited by agents, command probes and ACP terminals. Both are off by default; explicit grants and overlays still apply. Thanks @VACInc. Fixes …
    View on GitHub ↗

FAQ

Does acpx call LLMs itself?
No. It is an ACP client: the agent you name (acpx codex, acpx claude, and so on) must be installed and authenticated, and that agent carries the model usage and costs.
Where is session state stored, and will it pollute my repository?
Sessions live under ~/.acpx/ and are scoped to the current repository. The repository files themselves are only changed by the agent inside the filesystem boundary set by --cwd.
How do I get parseable output for scripts?
Use --format json to receive an NDJSON stream of ACP events that retains structured thinking, tool calls, diffs and completion state; --format quiet prints only the final text.
Is it production-ready today?
The README states acpx is pre-1.0 and treats its CLI and runtime interfaces as evolving, so integrators should plan for interface changes.
Can I embed its session capabilities in my own app?
Yes. The package exports acpx/runtime and acpx/flows; use createSharedAcpRuntime() when your application and CLI processes need one shared local session owner.
Is acpx free?
The software is free, but acpx calls an AI model, and you pay that model provider for usage (or run a local model).
Is acpx open source?
Yes. The source code is on GitHub (openclaw/acpx) under the MIT licence.
Is acpx safe to use?
FollowAgents' FARS review (Nov 08, 2026) scored acpx 19/29 on trust and safety. None of the eight safety controls the review checks for was missing outright. The repository has changed since that review.
Is acpx still maintained?
Yes. The latest commit on GitHub is from 2026-11-09, within the last 30 days. The latest release is v0.22.0 (2026-11-07).
Who makes acpx?
acpx is published on GitHub by the account openclaw. FollowAgents has not verified which person or company is behind that account.
What is acpx's official website?
The project's GitHub repository lists https://acpx.sh as its website. That link is set by the repository owner; the source code itself is on GitHub (openclaw/acpx).
Was this page helpful?
View on GitHub ↗ Install ↓

Compare agents like this one

The same FARS review applied across the shortlist this agent qualifies for.