Codex CLI on a server

Install and run OpenAI Codex CLI in the background

curl -fsSL https://deb.nodesource.com/setup_22.x | bash - && apt install -y nodejs git tmux
npm install -g @openai/codex
tmux new -s codex && codex

Several parallel agents — 4 vCPU / 8 GB+.

Updated