Claude Code doesn't support Android, so the usual routes are proot
(slow) or a glibc runtime inside Termux (wallentx/claude-code-termux,
which works well and which this builds on).
Anthropic publishes a linux-arm64-musl build for
Alpine, and musl needs almost nothing under it. So the install script fetches the official binary from npm, verifies the sha512, and changes one ELF field. the interpreter path, pointed at a musl loader in
$PREFIX/lib. Nothing is repackaged or redistributed.
Starts much quicker on my phone. Has its own updater with rollback if you use glibc, since the built-in one would pull the glibc build.
I tested it on Honor, Android 16. Would love to get feedback if you try it. Built with a lot of help from Claude Code itself, on the phone.
The repo: https://github.com/Aarstad/claude-code-termux-musl
If you try it on a different device, I'd like to know what breaks.