#!/usr/bin/env bash # Start the standalone original-UI web host in development mode. # # ./start.sh UI :8095 # UI_PORT=9000 ./start.sh custom port # node verify.mjs --deep run the self-check in another shell # # The app-server binary ships inside ChatGPT.app; set CODEX_APP_SERVER_BIN # if it lives elsewhere. There is no orchestrator/API layer in this stack. set -euo pipefail ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" UI_PORT="${UI_PORT:-8095}" export CODEX_WEB_PORT="$UI_PORT" echo "[stack] UI http://127.0.0.1:${UI_PORT}/" echo "[stack] test node ${ROOT}/verify.mjs --deep" exec node "$ROOT/host/web-server.mjs" --port "$UI_PORT"