Pre-compiled OpenAI Codex for Android Termux (ARM64)
Official OpenAI Codex CLI compiled for Android Termux. Since Termux is not officially supported by upstream, we apply minimal patches only for critical compatibility issues.
β Use official OpenAI Codex source (https://github.com/openai/codex) β Compile for ARM64 (Android Termux native) β Apply minimal patches only for Termux-specific issues not addressed upstream β Package as npm for easy installation β Maintain full Apache 2.0 compliance with OpenAI attribution
β NO new features β NO behavior modifications (works exactly like upstream) β NO replacement of official Codex
We only apply patches for issues that:
- Prevent Codex from working on Termux
- Are not addressed by upstream (Termux is not officially supported)
- Are minimal and well-documented
Current patches: See patches/ directory for full documentation.
Found an issue? Well-documented bug reports with reproduction steps are welcome! Open an issue.
# Update Termux packages
pkg update && pkg upgrade -y
# Install Node.js
pkg install nodejs-lts -y
# Verify
node --version # v14+
npm --version # v6+Requirements:
- Android 7+ (Termux)
- ARM64 architecture
- Node.js β₯ 14.0.0
- ~50MB storage
npm install -g @mmmbuto/codex-cli-termuxcodex --version
# Output: codex-cli 0.53.0
codex login
# Opens browser for authenticationLinks:
- npm: https://www.npmjs.com/package/@mmmbuto/codex-cli-termux
- Releases: https://github.com/DioNanos/codex-termux/releases
- Upstream: https://github.com/openai/codex
Same as official Codex CLI:
# Login to OpenAI
codex login
# Start chat
codex
# Help
codex --helpFor full documentation, see OpenAI Codex docs.
See BUILDING.md for compilation instructions.
This project maintains full compliance with the Apache 2.0 license from OpenAI Codex.
Original work: Copyright OpenAI (https://github.com/openai/codex) Termux port: Minimal patches for Android compatibility
See LICENSE file for details.
- OpenAI for the amazing Codex CLI
- Termux community for Android terminal environment
- All contributors to upstream Codex project
Version: Based on OpenAI Codex 0.53.0 Platform: Android Termux ARM64 Maintained: Community-driven, not affiliated with OpenAI