Use Codex CLI from your phone with SSH.
Set up a remote Linux server for Codex CLI and use sshChat from your phone for one-shot server maintenance workflows.
This flow is for setup and one-shot server work. It shows exactly what happens in sshChat, what happens in the browser, and what actually runs on Ubuntu.
Step 1: Open your Ubuntu host in sshChat
Open the host in sshChat. The commands execute on the remote Ubuntu box.
whoami
uname -a
pwd
Confirm normal one-shot commands already work before you install anything else.
Step 2: Install Codex CLI on the server
Paste the commands into sshChat. They run on the Ubuntu server.
cd /tmp
curl -L https://github.com/openai/codex/releases/latest/download/codex-x86_64-unknown-linux-musl.tar.gz -o codex.tar.gz
tar -xzf codex.tar.gz
sudo mv codex-x86_64-unknown-linux-musl /usr/local/bin/codex
sudo chmod +x /usr/local/bin/codex
codex --version
The last line prints the installed Codex CLI version. If it does, the binary is ready.
Step 3: Complete device login in the browser
Start the login in sshChat, then switch to the browser on your phone to approve it.
codex login --device-auth
sshChat shows the verification URL and code. Open that URL in your browser, log in, enter the code, then return to sshChat.
Step 4: Use sshChat for one-shot Codex-adjacent maintenance
Use sshChat as the command surface. The work happens on the server.
codex --version
git status
docker compose ps
docker compose logs --tail 100
Use Stream Mode for long commands like npm install or docker compose build. Keep short snapshot commands in normal mode.