Tutorial

Use Codex CLI from your phone with SSH.

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 of 4Waiting for confirmation

Step 1: Open your Ubuntu host in sshChat

sshChat AppRemote Server
Where this happens

You open the host in sshChat. The commands execute on the remote Ubuntu box.

Type this here
whoami
uname -a
pwd
What you should confirm

Normal one-shot commands already work before you install anything else.

Step 2: Install Codex CLI on the server

sshChat AppRemote Server
Where this happens

You paste the commands into sshChat. They run on the Ubuntu server.

Type this here
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
What you should see

The last line prints the installed Codex CLI version. If it does, the binary is ready.

Step 3: Complete device login in the browser

sshChat AppPhone BrowserRemote Server
Where this happens

You start the login in sshChat. Then you switch to the browser on your phone to approve it with your ChatGPT subscription.

Type this here
codex login --device-auth
What to do next

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

sshChat AppRemote Server
Where this happens

You use sshChat as the command surface. The work happens on the server.

Good commands here
codex --version
git status
docker compose ps
docker compose logs --tail 100
When to use Stream Mode

Use Stream Mode for long commands like npm install or docker compose build. Keep short snapshot commands in normal mode.