I love Codex CLI. Recently, I wondered if I could run it from my phone. There is ChatGPT iOS Codex, but that comes with limitations. If I run Codex CLI in a terminal from my phone, I can do anything. For example, I built the initial version of this repo entirely from my phone in the terminal with Codex. I asked Codex to create the markdown file and add the steps, then I described the steps as you'll see below. I also recorded this Codex prompt so you can watch it. I SFTPed it from my phone to the Codex terminal and then asked Codex to speed up the recording 6×. Finally, I pushed it up so you could see the demo below!
-
Launch a free GCP
e2-micro
Compute Engine VM and grab its external IP. -
Install Termius on iOS and sign in with your Termius account.
-
Generate an SSH key pair in Termius (
Keychain
→+
→New Key
→ED25519
) to create anssh-ed25519
key, then copy the public key. -
In the Google Cloud console, open your VM, click
Edit
, add the Termius public key underSSH Keys
, and save. -
Add the VM as a host in Termius, reuse the username from your key, paste the external IP, and attach the saved key.
-
Open the new host in Termius to SSH into the GCP instance.
-
Inside the VM, download and install the Codex CLI.
-
Happy coding!
Follow me on Twitter @josh_bickett. If you wish this was easier, please DM me on Twitter and tell me. This will motivate me to make it better :)