Skip to content

mevanlc/codex

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5,357 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Codex CLI — Termux Fork

A fork of OpenAI's Codex CLI with Android/Termux support.

For full upstream documentation, see the official Codex CLI README and docs.

What this fork does

This fork maintains a build of Codex CLI that runs natively on Android via Termux, while keeping the codebase compilable for other platforms. It stays close to upstream through frequent merges.

Key changes

  • Android aarch64 target — CI workflow produces release binaries for aarch64-linux-android
  • Android code-mode/V8 — Android builds now include working code-mode and JS REPL support via prebuilt rusty_v8 artifacts
  • Termux-compatible build scriptbuild-fork.sh works across macOS, Linux, and Termux
  • Build optimizations for constrained devices — swap file management, thin LTO, job limits to avoid OOM on device
  • Platform-specific fixes — file locking fallback, SHELL env handling, voice input deps disabled on Android
  • Small QOL additions — chatbox placeholder tips toggle, model switch while MCP servers connect, PATH shadow warning

Goals

  • A mostly-vanilla build of Codex that runs on Termux
  • Codebase continues to compile for other platforms
  • Can be compiled within Termux on devices with high enough specs (e.g. Galaxy S25)
  • Frequent merges of upstream into the fork

Non-goals

  • Substantial features not in upstream — this is a platform port, not a feature fork

Install

Grab the latest Android aarch64 binary from Releases, or build from source. Current Android release builds include working code-mode / JS REPL support:

# In Termux
git clone https://github.com/mevanlc/codex.git
cd codex
./codex-rs/scripts/build-fork.sh

Status

Target CI Notes
Android aarch64 Passing Release binaries published automatically, including code-mode / JS REPL
Other platforms Failing Investigating — upstream code-mode changes may need additional gating

Fork stats

  • ~30 original commits on top of upstream
  • 13 upstream merges to date
  • Tracking upstream actively

License

Same as upstream — Apache-2.0.

About

Lightweight coding agent that runs in your terminal

Resources

License

Contributing

Security policy

Stars

Watchers

Forks

Packages

 
 
 

Contributors

No contributors

Languages

  • Rust 94.8%
  • Python 2.8%
  • TypeScript 1.4%
  • JavaScript 0.3%
  • Starlark 0.3%
  • Shell 0.2%
  • Other 0.2%