acpx (CLI)

Connects to PiG over ACP through pig-acp. Ran on PiG 0.7.0 with a scripted model.

All integrations

What works and what you need

Ran on an earlier releaseWe ran it on 0.7.x and have not rerun it on 0.8.x.

Needs: PiG ACP adapter. pig-acp, PiG’s ACP adapter, which ships as its own archive in every PiG 0.8.0 release. acpx (CLI) ran on PiG 0.7.0 with pig-acp 0.2.1 and a local scripted model, and has not been rerun on 0.8.0.

Uses pig-acp. Complete the one-time pig-acp setup first, then add the configuration below.

Setup

Connection: ACP, through pig-acp.

Configuration: ~/.acpx/config.json (global) or <cwd>/.acpxrc.json (project); or --agent '<command>' on the command line

Format: JSON, agents.<name>.argv = [executable, args...]

{
  "agents": {
    "pig": { "argv": ["pig-acp", "--pig", "/path/to/pig"] }
  }
}
# then:  acpx pig exec 'your prompt'
# or without config:  acpx --agent 'pig-acp --pig /path/to/pig' exec 'your prompt'

Test record

PiG 0.7.0 run

Ran (2026-11-07). acpx 0.22.0 (npx) on Node 24; pig-acp 0.2.1 and pig 0.7.0 (pig --version prints 0.7.0+1.5.0), Linux amd64 in a container, with a local scripted model (no real model, no key).

Not run. A real model. The reply text comes from the scripted model; the point is the ACP path and the read tool call.

Notes. Both the config-defined agent and the --agent escape hatch. `acpx --agent '...' exec` printed the tool call and output.

How to verify.

  1. cd into a directory that has a README.md
  2. Run: acpx --agent "pig-acp --pig /path/to/pig" exec "Please read the README and tell me the first line"

Expected: acpx prints [client] initialize, session/new, then [tool] read (completed) with the file content, the reply, and [done] end_turn.

Terminal: acpx exec through pig-acp shows the read tool call and the reply
acpx 0.22.0 running one prompt through pig-acp. The read tool call and its output are PiG's.

Sources and project

acpx (CLI) documentation

The name and logo belong to acpx (CLI)’s owners. PiG is independent of acpx (CLI); no endorsement is implied.