Skip to content

Conversation

@pchuri
Copy link
Contributor

@pchuri pchuri commented Jul 9, 2025

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

- Add 'android' to the list of supported platforms in codex.js
- Treats Android as Linux for binary compatibility
- Fixes 'Unsupported platform: android (arm64)' error on Termux
@github-actions
Copy link

github-actions bot commented Jul 9, 2025

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

@pchuri
Copy link
Contributor Author

pchuri commented Jul 9, 2025

I have read the CLA Document and I hereby sign the CLA

github-actions bot added a commit that referenced this pull request Jul 9, 2025
@bolinfest
Copy link
Collaborator

Very cool to hear you're using this on Termux!

@bolinfest bolinfest merged commit 3a23a86 into openai:main Jul 10, 2025
3 of 4 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Jul 10, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants