Codex App-Server Setup
Use this guide when your server is OpenAI Codex app-server rather than ACP.
What this mode is for
- Server Type:
Codex App-Server - Protocol: OpenAI Codex app-server wire protocol
- Typical local endpoint:
ws://localhost:9000
Start Codex app-server
If your environment already exposes a Codex app-server endpoint, use that directly.
For local development, one common setup is:
npx -y @rebornix/stdio-to-ws --persist --grace-period 604800 "codex app-server" --port 9000
Add Codex server in Agmente
- Tap Add Server.
- Set Server Type to Codex App-Server.
- Set Protocol to
ws(orwssif remote). - Set Host to
localhost:9000(or your remote host). - Set Working directory to a valid path on the agent host.
- Save, connect, and create a session.
Verify it is working
Expected sequence:
initializethread/listthread/start(orthread/resume)turn/startturn/completed
If these complete, Codex app-server integration is healthy.
Troubleshooting
Connection refused
- Ensure the server process is running on the port you configured.
- Verify host and protocol match your endpoint.
Session or turn never starts
- Confirm the selected server type is Codex App-Server (not ACP).
- Check server logs for permission/auth failures.
Commands in prompt get rewritten
- Update to the latest app build. Input composer now disables auto-capitalization and autocorrection for literal command prompts.