acp-proxy-server
v1.0.0
Published
WebSocket proxy server that bridges Chrome extensions to ACP agents
Downloads
98
Readme
ACP Proxy Server
A WebSocket proxy server that bridges Chrome extensions to ACP (Agent Client Protocol) agents.
Installation
bun installUsage
# Basic usage
bun run index.ts /path/to/agent
# With custom port
bun run index.ts --port 9000 /path/to/agent
# Pass arguments to the agent (use -- to separate)
bun run index.ts /path/to/agent -- --verbose --model gpt-4CLI Reference
USAGE
acp-proxy [--port value] <command>...
acp-proxy --help
acp-proxy --version
FLAGS
[--port] Port to listen on [default = 9315]
-h --help Print help information and exit
-v --version Print version information and exit
ARGUMENTS
command... Agent command followed by its argumentsHow It Works
The proxy server:
- Listens for WebSocket connections from the Chrome extension
- When a "connect" message is received, spawns the configured ACP agent as a subprocess
- Bridges messages between the WebSocket (extension) and stdin/stdout (agent)
This allows Chrome extensions to communicate with ACP agents despite not being able to spawn subprocesses directly.
