WS (default) or HTTP+SSE bridge for `codex app-server` (stdio JSON-RPC).
npm install codex-app-servercodex app-server (stdio JSON-RPC) over either WebSocket (default) or HTTP+SSE.- GET / — WebSocket upgrade
- client -> server: { "id": 1, "method": "...", "params": { ... } }
- server -> client: JSON-RPC responses + Codex notifications (messages without an id)
- POST / — JSON body: { "method": "...", "params": { ... } }
- GET /events — SSE stream of Codex notifications (messages without an id)
PORT (default: 8080)
CODEX_HTTP_SECRET (optional) — if set, requires x-codex-secret header to match (disable with --no-auth)
``bash`
npx codex-app-servercodex
This requires the executable to be on your PATH (or pass --binary ).
Options:
- --protocol — selects transport (default: ws)--no-auth
- — disables CODEX_HTTP_SECRET checks--port
- — overrides PORT--binary
- — overrides the codex executable (default: codex)--
- — overrides Codex args (default: app-server)
- npm run build compiles src/ to dist/.npm i -g codex-app-server
- Published installs (including ) use the prebuilt dist/ and do not require typescript at install time.
MIT (see LICENSE`).