Bridge stdio processes to WebSocket connections
npm install stdio-to-wsRedirect stdio to WebSocket.
``bash`
npx stdio-to-ws [options] "stdio command"
- -p, --port : port to listen on (default: 3000)-f, --framing
- : message framing (raw | line, default: line)-q, --quiet
- : suppress logging output-h, --help
- : show help
- line (default): treats each stdout line as a message; useful for line-delimited protocols such as NDJSON (ACP uses NDJSON)raw
- : forwards stdout data chunks as-is and strips a leading Content-Length header if present
`bash``
npx stdio-to-ws "npx @google/gemini-cli --experimental-acp" --port 3000
Apache 2.0