Skip to content

Commit 3a23a86

Browse files
authored
Add Android platform support for Codex CLI (#1488)
## Summary Add Android platform support to Codex CLI ## What? - Added `android` to the list of supported platforms in `codex-cli/bin/codex.js` - Treats Android as Linux for binary compatibility ## Why? - Fixes "Unsupported platform: android (arm64)" error on Termux - Enables Codex CLI usage on Android devices via Termux - Improves platform compatibility without affecting other platforms ## How? - Modified the platform detection switch statement to include `case "android":` - Android falls through to the same logic as Linux, using appropriate ARM64 binaries - Minimal change with no breaking effects on existing functionality ## Testing - Tested on Android/Termux environment - Verified the fix resolves the platform detection error - Confirmed no impact on other platforms ## Related Issues Fixes the "Unsupported platform: android (arm64)" error reported by Termux users
1 parent 268267b commit 3a23a86

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

codex-cli/bin/codex.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ if (wantsNative) {
4141
let targetTriple = null;
4242
switch (platform) {
4343
case "linux":
44+
case "android":
4445
switch (arch) {
4546
case "x64":
4647
targetTriple = "x86_64-unknown-linux-musl";

0 commit comments

Comments
 (0)