PeroSar

Claude Codex Termux — Development skill for Claude Code

Development community

A readymade script to install Claude Code / Codex CLI with patching for Termux.

How to install Claude Codex Termux

This entry records only its repository, not the path inside it, so there is no exact command to give. Open PeroSar/claude-codex-termux and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Claude Codex Termux does

A readymade script to install Claude Code / Codex CLI with patching for Termux.

Alternatives in Development

  • Understand Anything — Graphs that teach graphs that impress 80.7k ★
  • OpenAI Codex CLI — (Rust implementation) 67.8k ★
  • Vibe Kanban — Get 10X more out of Claude Code, Gemini CLI, Codex, Amp and other coding agents 23.5k ★

README

claude-codex-termux

A simple shell script which downloads Claude Code and Codex CLI binaries from their official sources and patches them to run in a Termux environment. Supports both a interactive menu and CLI arguments-based interface. Note that only aarch64 devices are supported.

get started

simplest way (interactive):

bash claude-codex-termux.sh

non-interactive (CLI arguments):

# install both (default)
bash claude-codex-termux.sh install both

# install only one
bash claude-codex-termux.sh install claude
bash claude-codex-termux.sh install codex

# uninstall
bash claude-codex-termux.sh uninstall both
bash claude-codex-termux.sh uninstall claude
bash claude-codex-termux.sh uninstall codex

environment variables

  • FORCE_INSTALL_CC_CODEX=1: reinstall even if the version marker already matches the latest upstream version
  • CLAUDE_RELEASE_VERSION=2.1.138: install a specific Claude Code release. Defaults to latest.
  • CODEX_RELEASE_TAG=rust-vX.Y.Z: pin a specific Codex release tag instead of resolving latest from GitHub
  • CODEX_TERMUX_DEFAULT_SANDBOX=preserve: do not add Termux's default --sandbox danger-full-access to the Codex wrapper

what the script does

  • Downloads the latest Codex CLI release from GitHub (openai/codex)
  • Patches each binary's hardcoded /etc/resolv.conf string to /proc/self/fd/9\0.
  • Generates the resolver file from Android's net.dns* system properties, falling back to 1.1.1.1 / 8.8.8.8
  • Installs binaries to ~/.local/lib/{claude-code,codex} and wrappers to ~/.local/bin/{claude,codex}
  • Makes the Codex wrapper default to --sandbox danger-full-access on Termux, because stock Android does not provide Codex's bubblewrap sandbox prerequisites. Explicit --sandbox / -s arguments are left alone.
  • Appends a guarded PATH block to ~/.bashrc, ~/.zshrc, and ~/.config/fish/config.fish