r/codex • u/RepresentativeUse115 • 6d ago
Question Is Codex CLI usable on Android, or is it desktop/cloud only?
I use Codex CLI on my laptop with a Plus plan and it's been okay. What I can't figure out is whether there's a supported or even semi-sane way to run the official CLI on an Android phone.
I don't mean the Cloud / web tasks. I mean the same Codex CLI, on the device, so I can review or kick off something when I only have my phone. Termux + a Linux userspace is the obvious path but it's messy, and I'm trying not to root anything.
Has anyone here actually done this? If you did, I'd love the short version of what worked (or why you gave up). Phone is unrooted, current Android.
1
u/NanYUJun 6d ago
No root needed — Termux alone is enough. Codex CLI is just a Node app, so pkg install nodejs git and a global npm install of the CLI gets you a working binary. A few things that actually mattered for me:
If a native dependency refuses to build in Termux,
pkg install proot-distro+ a Debian container is the escape hatch. Most of the CLI itself is fine without it.Run it inside
tmux(pkg install tmux). Android kills background processes aggressively, and reattaching to a session that survived a screen-off is the difference between usable and not.termux-wake-lock, and turn off battery optimization for Termux, otherwise a long turn gets suspended mid-run.Keep approval mode conservative rather than
--full-auto. On a phone you're usually not watching, and it's much harder to notice a bad command scrolling by on a 6" screen.
The real blocker isn't the OS, it's the input: without an external keyboard, anything interactive is painful, and reviewing a large diff on a phone is where I gave up. Fine for kicking off a task and checking progress; not good for actual review. If checking progress is the main goal, a tmux session on the laptop over SSH is less work than fighting Termux.
1
u/Key_Instruction3373 6d ago
yes