Description
Not a duplicate of #418 / #447. Those address CLAUDE_CODE_EXECUTABLE
wiring inside Dockerfile.claude (which claude binary the adapter
internally invokes). This issue is about the user-facing
config.toml.example itself pointing to a CLI flag that does not exist.
Summary
The Claude Code agent block in config.toml.example (currently lines 35–40
on main) tells users to launch the Claude CLI with --acp:
# [agent]
# command = "claude"
# args = ["--acp"]
# working_dir = "/home/agent"
# env = { ANTHROPIC_API_KEY = "${ANTHROPIC_API_KEY}" }
But Claude Code's CLI has no --acp flag — invoking it fails immediately:
$ claude --acp
error: unknown option '--acp'
ACP support for Claude Code is provided by the separate npm wrapper
[@agentclientprotocol/claude-agent-acp](https://github.com/agentclientprotocol/claude
which exposes a claude-agent-acp binary. The rest of the repo already
documents this correctly:
README.md agent table (line 118): `claude-agent-acp`
Dockerfile.claude: npm install -g @agentclientprotocol/claude-agent-acp …
docs/claude-code.md → "Manual config.toml" section uses
command = "claude-agent-acp", args = []
Only config.toml.example is out of sync, so anyone uncommenting that block
on a non-Docker host hits a confusing failure that the docs and Dockerfile
do not predict.
Reproduce
# host with Node ≥ 20
npm install -g @anthropic-ai/claude-code # Claude Code CLI
cp config.toml.example config.toml
# uncomment the [agent] / claude block as written
openab run -c config.toml
# → adapter spawn fails with: error: unknown option '--acp'
Environment
- openab: latest
main
- Host: Linux, Node v22.11.0 (Node ≥ 20 required by
claude-agent-acp due to JSON import attributes)
@agentclientprotocol/claude-agent-acp v0.29.x
Suggested Change
Update the commented Claude block in config.toml.example to match
docs/claude-code.md:
# [agent]
# command = "claude-agent-acp"
# args = []
# working_dir = "/home/agent"
# # Install the adapter on the host first (requires Node >= 20):
# # npm install -g @agentclientprotocol/claude-agent-acp
# # Auth via: `claude setup-token` (CLAUDE_CODE_OAUTH_TOKEN), or ANTHROPIC_API_KEY.
# env = { CLAUDE_CODE_OAUTH_TOKEN = "${CLAUDE_CODE_OAUTH_TOKEN}" }
# # Optional: pin which `claude` binary the adapter invokes internally (see #418, #447).
# # env = { CLAUDE_CODE_OAUTH_TOKEN = "${CLAUDE_CODE_OAUTH_TOKEN}", CLAUDE_CODE_EXECUTABLE = "/usr/local/bin/claude" }
Description
Summary
The Claude Code agent block in
config.toml.example(currently lines 35–40on
main) tells users to launch the Claude CLI with--acp:But Claude Code's CLI has no
--acpflag — invoking it fails immediately:ACP support for Claude Code is provided by the separate npm wrapper
[
@agentclientprotocol/claude-agent-acp](https://github.com/agentclientprotocol/claudewhich exposes a
claude-agent-acpbinary. The rest of the repo alreadydocuments this correctly:
README.mdagent table (line 118):`claude-agent-acp`Dockerfile.claude:npm install -g @agentclientprotocol/claude-agent-acp …docs/claude-code.md→ "Manual config.toml" section usescommand = "claude-agent-acp",args = []Only
config.toml.exampleis out of sync, so anyone uncommenting that blockon a non-Docker host hits a confusing failure that the docs and Dockerfile
do not predict.
Reproduce
Environment
mainclaude-agent-acpdue to JSON import attributes)@agentclientprotocol/claude-agent-acpv0.29.xSuggested Change
Update the commented Claude block in
config.toml.exampleto matchdocs/claude-code.md: