Skip to content

Instantly share code, notes, and snippets.

@GGPrompts
GGPrompts / termux-fixes.md
Last active July 6, 2026 06:30
Termux Fixes: Running AI CLI Tools (Claude Code, Codex) on Android — updated July 2026 for the claude-code native-binary era (2.1.114+)

Termux Fixes: Running AI CLI Tools on Android

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 removed cli.js from the npm package in 2.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.


1. Making portable-pty Work on Android/Termux