@normahq/acp-repl
v1.1.0
Published
Meta package for acp-repl
Maintainers
Readme
acp-repl
Talk to ACP agents interactively from your terminal.
acp-repl starts any stdio Agent Client Protocol (ACP) server command and gives
you a focused terminal REPL for sending prompts, testing sessions, and handling
permission requests.
Use it when you want to try an ACP provider directly before embedding it in an agent runtime, app, or automation workflow.
What You Get
| Capability | Behavior |
| --- | --- |
| Interactive ACP chat | Opens a prompt loop against a stdio ACP server command. |
| Session setup | Creates an ACP session before the first user turn. |
| Model selection | Requests a provider model with --model when supported. |
| Mode selection | Requests a provider mode with --mode when supported. |
| Permission handling | Lets you choose from numbered permission options in the terminal. |
| Quiet lifecycle logs | Keeps REPL output focused unless --debug is enabled. |
| Provider agnostic | Works with OpenCode, Codex, Claude Code, Pi, and any executable that speaks ACP over stdio. |
Try It
Install globally:
npm install -g @normahq/acp-repl@latestRun once with npx:
npx @normahq/acp-repl@latest -- <acp-server-cmd> [args...]Start a REPL:
acp-repl -- opencode acp
acp-repl --model openai/gpt-5.4 --mode coding -- opencode acp
acp-repl --reasoning-effort high -- npx -y @normahq/codex-acp-bridge@latest
acp-repl -- npx -y @normahq/codex-acp-bridge@latest
acp-repl -- npx -y @zed-industries/claude-code-acp@latest
acp-repl --debug -- npx -y pi-acpProvider Commands
| Provider | Command |
| --- | --- |
| OpenCode | acp-repl -- opencode acp |
| OpenCode with model/mode | acp-repl --model openai/gpt-5.4 --mode coding -- opencode acp |
| Codex | acp-repl -- npx -y @normahq/codex-acp-bridge@latest |
| Codex with reasoning effort | acp-repl --reasoning-effort high -- npx -y @normahq/codex-acp-bridge@latest |
| Claude Code | acp-repl -- npx -y @zed-industries/claude-code-acp@latest |
| Pi | acp-repl -- npx -y pi-acp |
| Generic ACP | acp-repl -- <acp-server-cmd> [args...] |
The -- separator is required. Arguments before -- are treated as
acp-repl flags; arguments after it are passed to the ACP server command.
Interaction
- Type a prompt and press Enter to run a turn.
- Type
exitorquitto close the REPL. - If ACP permission requests arrive, choose from the numbered options.
- Use
--debugwhen you need REPL lifecycle and inspector diagnostics.
Use Cases
- Smoke-test an ACP provider before wiring it into an ADK or custom runtime.
- Compare model and mode behavior without writing integration code.
- Reproduce provider permission flows from a terminal.
- Debug whether a local ACP command can start, initialize, and complete turns.
Flags
| Flag | Purpose |
| --- | --- |
| --model <id> | Request a session model via ACP session/set_config_option config id model. |
| --mode <id> | Request a session mode via ACP session/set_config_option config id mode, with legacy session/set_mode fallback. |
| --reasoning-effort <effort> | Request a session reasoning effort via ACP session/set_config_option config id reasoning_effort. |
| --debug | Enable debug logs. |
| -h, --help | Show command help. |
Unsupported config option requests fail session setup. Legacy session/set_mode
fallback failures are ignored only when the server reports the method as
unsupported.
Repository
Contact
- Issues: https://github.com/normahq/acp-repl/issues
- Maintainer: @metalagman
License
MIT. See the repository LICENSE.
