Codex on Android: The ChatGPT App, Cloud Tasks and Termux

You can use Codex on Android today, and the official way doesn't involve running the CLI on your phone. OpenAI put Codex into the ChatGPT app for Android, where your phone directs work that runs somewhere else: in Codex cloud, or on a Mac or Windows computer you've paired. Running the Codex CLI inside Termux is possible in part, but OpenAI doesn't list Android as a supported platform, and the open bug reports show why.
The short version:
- Officially supported: Codex in the ChatGPT app for Android, which reaches Codex cloud tasks and remote connections to your own computer.
- Unofficial, on-device: the Codex CLI in Termux, natively or inside a proot Linux distro. It installs; the interactive agent is where it breaks.
- Unofficial but low-risk: SSH from your phone into a machine where Codex is installed normally.
If you only want to approve a command or start a task from your phone, the ChatGPT app covers it. The Termux sections are for people who want the agent's process on the device itself.
Quick Comparison
| Route | Where Codex runs | Supported by OpenAI? | Main catch |
|---|---|---|---|
| ChatGPT app: Codex cloud | OpenAI's cloud | Yes | Works from a cloud environment, not your laptop's files |
| ChatGPT app: remote connection | Your Mac or Windows PC | Yes | Host must stay awake, online, and signed in |
| SSH from the phone | Your computer or server | The install is; the phone is only a terminal | You manage the network path |
| Codex CLI in native Termux | The phone | No | Interactive sessions fail on some devices |
| Codex CLI in proot Linux on Termux | The phone | No | The Linux sandbox fails to start in reported cases |
What OpenAI Officially Supports for Codex on Android
There is no separate Codex app for Android. Codex lives inside the ChatGPT app. OpenAI announced it in a May 14, 2026 post, Work with Codex from anywhere, which said Codex was rolling out in preview in the ChatGPT mobile app on iOS and Android, on all plans including Free and Go. Rollouts change, so check the app itself: if you don't see Codex, your account or workspace may not have it yet.
From the app you get two ways to work.
Codex cloud tasks: no computer needed
Codex cloud runs each task in its own workspace on OpenAI's infrastructure. The docs' quickstart is short: sign in to ChatGPT, choose an environment, and "On mobile, open Codex." A connected GitHub or GitLab account gives the environment access to your repositories, and OpenAI says tasks keep working while your computer is asleep.
You can start a task on the phone and continue it later from the web or the desktop app. The trade-off is that a cloud task only sees what's in its environment. Your laptop's local files, running processes, and sign-ins aren't there. Our OpenAI Codex guide walks through environments and how work moves between local and cloud.
Cloud tasks also count against your plan's Codex allowance. How that allowance works is covered in Codex usage limits.
Remote connections: your computer does the work
Remote connections let the ChatGPT app on your phone control Codex running on your own computer. OpenAI's remote connections docs are specific about what runs where: the phone sends prompts, approvals, and follow-ups, while repository files, shell commands, MCP servers, skills, and browser access all come from the host. Sandboxing and approval rules still apply.
Setup, per the docs:
- On the computer, open the ChatGPT desktop app and go to Settings > Connections > Control this Mac or PC, then choose Set up.
- Scan the QR code it shows with your phone.
- Confirm the same account and workspace in the ChatGPT app, and complete any MFA or SSO step.
A few rules to know before you depend on it:
- Hosts are macOS and Windows running the ChatGPT desktop app. The docs don't list Linux as a remote host.
- Setup starts in the desktop app. The docs say you can't set it up from the Codex CLI or the IDE extension. The CLI does have a
codex remote-controlcommand, but open GitHub issues report that pairing it with the Android app fails, and the docs don't describe it as a mobile setup path. - The host has to stay awake. If it sleeps, drops its network, or closes the app, remote access stops. A closed Mac laptop also needs power and an external display.
- Workspace accounts may need an admin to turn on Remote Control access first.
- Pair each phone with each host. One pairing doesn't cover your other machines.
There's one way to reach a Linux machine through the app. The desktop app can open projects on an SSH host, and the docs say your phone still connects to the same desktop host while Codex works in the remote environment.
Can You Run the Codex CLI in Termux?
Partly. Termux is a terminal emulator and Linux environment for Android, and it's where people try first.
Codex's packaging gets you further than you might expect. The Codex README lists prebuilt Linux binaries for x86_64 and arm64, built against musl, and the latest release includes codex-aarch64-unknown-linux-musl. There's no Android-specific build among the release files. The system requirements table in the repo's install.md lists macOS 12+, Ubuntu 20.04+ or Debian 10+, and Windows 11 via WSL2. Android isn't in that table.
What happens in practice, according to issues on the repo that were still open when we checked on November 21, 2026:
- The npm install doesn't give you a working CLI. An open issue reports that
npm install -g @openai/codexsucceeds in Termux, butcodexthen exits with "Missing optional dependency @openai/codex-linux-arm64." Node reports the platform asandroid, and npm skips the Linux arm64 package. - The standalone installer gets further. Another open issue, filed in October 2026, says the official installer detects Linux ARM64 and installs, and
codex --versionworks. The interactive CLI then exits with "Bad system call." The reporter's diagnosis is that Android blocks syscalls the Linux sandbox and runtime rely on. - Sign-in and locking have their own reports. Separate open issues describe ChatGPT login failures and "lock() not supported" errors on native Termux.
That same report notes the TUI renders with --sandbox danger-full-access, but the session isn't stable. Turning the sandbox off also means the agent runs commands with nothing between it and everything Termux can reach. We wouldn't do that on a phone with your accounts on it.
proot Linux inside Termux
The other common attempt is a full Linux userland inside Termux through proot, such as Ubuntu or Debian. It's the route our Claude Code on Android guide suggests trying first, because Claude Code's problem there is the C library.
Codex's problem is different. Several open issues report that the Codex Linux sandbox fails to start under proot Ubuntu or Debian on Android, with errors from bubblewrap or the app-server socket setup. So proot doesn't reliably get you a sandboxed session either.
Community forks and Android apps
Community forks of the CLI with Termux patches exist, and so do third-party Android apps that bundle a terminal or container for coding agents. None are from OpenAI, and we haven't vetted them. They also ask you to trust another party with your ChatGPT sign-in or API key. One open issue on the Codex repo, from someone using a Termux fork, reports that every model was rejected after a ChatGPT login.
SSH and Tailscale: The Phone as a Terminal
The dependable way to get the full Codex CLI on a phone screen is to not run it on the phone. Install Codex on a Mac, Linux machine, or cloud server, using the supported Codex CLI install, and connect to it over SSH.
You need three things:
- An SSH server on the machine that runs Codex.
- An SSH client on the phone. Termux packages OpenSSH, and standalone Android SSH clients exist.
- A network path. On home Wi-Fi this is simple. Away from home, OpenAI's remote docs recommend a VPN or mesh networking tool rather than exposing anything on a public network. Tailscale has an Android app and is one common choice.
Run codex inside tmux on the remote machine so the session survives your phone's connection dropping.
How does SSH compare with the ChatGPT app's remote connection? SSH works with a Linux host, gives you the real terminal UI and every slash command, and works with an API key. The remote connection needs no network setup, gives you a phone-native interface for approvals, and covers macOS and Windows hosts only.
Codex on Android: Which Route to Pick
- The task can run on its own from a repo: a Codex cloud task from the ChatGPT app.
- The work needs your local files, tools, or MCP servers: a remote connection to your Mac or Windows computer.
- Your Codex machine runs Linux, or you want the full terminal: SSH into it.
- You have no other computer and want it on the phone anyway: expect the Termux routes to break, and keep the sandbox on.
- You want to compare this with Anthropic's tool: Claude Code vs Codex covers the differences that matter.
Where Taku Fits
Every official route here turns your phone into a remote for a computer somewhere else. If you'd rather start from the phone itself, that's the bet Taku is making. A phone built around what you want to do, with AI that works across supported apps and connected devices.
Key Points
- OpenAI doesn't list Android as a supported platform for the Codex CLI.
- Codex on Android lives inside the ChatGPT app: cloud tasks, plus remote connections to a paired Mac or Windows computer.
- Remote connections need the host awake, online, and signed in, and setup starts in the ChatGPT desktop app.
- In Termux, the npm install fails on a platform check, and the standalone binary installs but hits "Bad system call" in open bug reports.
- SSH into a normal Codex install is the most dependable way to use the full CLI from a phone.
FAQ
Can you run Codex on Android?
Yes, through Codex in the ChatGPT app for Android. It controls cloud tasks and sessions on your own computer. Running the Codex CLI on the phone itself isn't supported by OpenAI.
Does the Codex CLI work in Termux?
Not reliably. Open issues on the Codex repo report that the npm package can't find its Linux arm64 binary in Termux, and that the standalone binary installs but the interactive CLI exits with "Bad system call."
Is there an official Codex app for Android?
There's no separate app. Codex is part of the ChatGPT app for Android, which OpenAI rolled out in preview in May 2026.
Can I use Codex from my phone without a computer?
Yes, with Codex cloud. Tasks run in OpenAI's environments and keep going while your computer is asleep. You need a ChatGPT sign-in and an environment set up.
Can I control Codex on a Linux machine from the ChatGPT app?
Not directly. OpenAI's remote connections docs list macOS and Windows hosts. You can pair the phone with a Mac or Windows computer whose desktop app opens projects on the Linux machine over SSH, or skip the app and SSH in from the phone.
Is it safe to run Codex with the sandbox off in Termux?
It removes the main safety layer. The agent can then reach anything Termux can reach, including storage you've granted it. Keep the sandbox on, or run Codex on another machine and connect over SSH.