Claude Codex Termux — Development skill for Claude Code
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 versionCLAUDE_RELEASE_VERSION=2.1.138: install a specific Claude Code release. Defaults tolatest.CODEX_RELEASE_TAG=rust-vX.Y.Z: pin a specific Codex release tag instead of resolvinglatestfrom GitHubCODEX_TERMUX_DEFAULT_SANDBOX=preserve: do not add Termux's default--sandbox danger-full-accessto the Codex wrapper
what the script does
- Downloads the latest Codex CLI release from GitHub (
openai/codex) - Patches each binary's hardcoded
/etc/resolv.confstring to/proc/self/fd/9\0. - Generates the resolver file from Android's
net.dns*system properties, falling back to1.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-accesson Termux, because stock Android does not provide Codex's bubblewrap sandbox prerequisites. Explicit--sandbox/-sarguments are left alone. - Appends a guarded
PATHblock to~/.bashrc,~/.zshrc, and~/.config/fish/config.fish
Related Skills
Claude Code Termux
Termux workaround for running Claude Code CLI on Android. The npm package no longer includes a global CLI, so
Harness Loom
Install and grow a reviewed-work harness in any repository. Ships three user-invocable skills for Claude Code,
Image Generation Skill
Claude Code skill: make and edit images by asking. Uses OpenAI's Codex CLI. Install: npx skills add BrickleRex
Claude Code Config Dir Patcher VSCode
This VS Code extension lets you run multiple Claude Code accounts by patching Anthropic's anthropic.claude-cod
Tolk
Claude Code's interface in your language: commands, /config, spinner and hints. A mod, no patching. DE · ES ·
Claude Auto Resume
A shell script utility that automatically resumes Claude CLI tasks when usage limits are lifted.
Related Agents
Monk Installer
Install, upgrade, and troubleshoot monk-agent plus Monk CLI/daemon for Claude, Codex, and Cursor users.
Install Reviewer
Security review BEFORE anything is installed or connected — a package, app, MCP server, plugin, skill, extensi
Gaia System
Use when building, modifying, or auditing Gaia's own machinery — agents, skills, hooks and hook modules, routi