Hard-won fixes for running Claude Code, OpenAI Codex, GitHub Copilot, and Rust PTY apps on Termux/Android.
⚠️ July 2026 update: Section 2 (Claude Code via Bun) is obsolete — Anthropic removedcli.jsfrom the npm package in2.1.114(April 17, 2026), so there is no JS entrypoint to run under Bun/Node anymore. See Section 5 for the native-binary era fixes (glibc loader wrapper, DNS via nsswitch.conf, hook shebang breakage, login workaround, and the safe update procedure). Sections 1, 3, and the general tips still apply.