Codex isn't in charge of that.
Just use termux on your phone and connect to a tmux session on your server.
Codex won't know the difference.