Repository navigation
π v1.0.0 β Native Claude Code on Termux
π Termux Claude Code Installer v1.0.0
π₯ Run Claude Code natively on Termux β 100% WORKING, 0% PROOT, one command and you're in! π
π First stable release!
This is the initial public release of the Termux Claude Code Installer β a permanent, system-level installer that makes claude work natively on Android's Termux without proot, chroot, or patchelf.
β‘ Install in 10 seconds
curl -fsSL https://raw.githubusercontent.com/Ryovx/Termux-Claude-Code/main/install.sh | bashThen run:
claudeThat's it. π―
β¨ What's included
π Core
- Native execution β Runs the official
linux-arm64-muslbinary published by Anthropic - No
proot, nochrootβ No containers, no VMs, no emulation - No
patchelfβ Deliberately avoids the SIGSEGV that happens when you patch musl binaries on Android kernels - One-command install β Copy, paste, done
- Zero rc-file changes β Never touches
~/.bashrcor~/.zshrc
π§ Tools
| Command | Description |
|---|---|
claude |
Run Claude Code (interactive session) |
claude-update |
Smart updater β skips download if already latest |
claude-fix |
Self-healing launcher restoration |
claude-uninstall |
Clean removal of every artifact |
π¦ What gets installed
| Path | Purpose |
|---|---|
$PREFIX/bin/claude |
Launcher (6 lines of bash) |
$PREFIX/bin/claude-fix |
Restores launcher from template |
$PREFIX/bin/claude-update |
Updates to latest npm release |
$PREFIX/bin/claude-uninstall |
Removes everything |
$PREFIX/lib/claude-musl/ |
Alpine's musl loader + libraries |
$PREFIX/lib/node_modules/@anthropic-ai/claude-code-linux-arm64-musl/claude |
The official 280 MB binary |
Nothing is written outside $PREFIX.
π Requirements
| Requirement | Details |
|---|---|
| Termux | From F-Droid or GitHub Releases β NOT Play Store |
| Architecture | aarch64 (ARM64) only |
| Free space | ~700 MB |
| Internet | Required during install and update |
| Root | β Not required |
π Documentation
Full documentation in three languages:
| Language | README | Contributing | Security | Support | Code of Conduct |
|---|---|---|---|---|---|
| π¬π§ English | README.md | CONTRIBUTING.md | SECURITY.md | SUPPORT.md | CODE_OF_CONDUCT.md |
| πΈπ¦ Ψ§ΩΨΉΨ±Ψ¨ΩΨ© | README.ar.md | CONTRIBUTING.ar.md | SECURITY.ar.md | SUPPORT.ar.md | CODE_OF_CONDUCT.ar.md |
| π¨π³ δΈζ | README.zh.md | CONTRIBUTING.zh.md | SECURITY.zh.md | SUPPORT.zh.md | CODE_OF_CONDUCT.zh.md |
π§ How it works (short version)
Claude Code ships a linux-arm64-musl ELF binary. Termux runs on Android's Bionic libc, not musl. Direct execution fails with cannot execute: required file not found because the binary requests /lib/ld-musl-aarch64.so.1.
What doesn't work:
- β
patchelfβ SIGSEGV on Android kernels - β
proot/chrootβ slow, breaksclaude's bash tool - β npm wrapper
claude-code-termuxβ broken with Claude Code β₯ 2.1.x
What does work (this project):
- Download Alpine's musl loader +
.sofiles into$PREFIX/lib/claude-musl/ - Download the official
linux-arm64-muslbinary from npm - Create a 6-line launcher that unsets
LD_PRELOAD, invokes the musl loader with--library-path, and execs the real binary
No patchelf, no proot, no chroot, no magic.
π Known limitations
- β x86_64 and armv7 not supported (only
aarch64) - β Play Store Termux not supported (use F-Droid or GitHub Releases)
β οΈ OAuth login may be unreliable on some Termux setups β use API key instead:
export ANTHROPIC_API_KEY=sk-ant-...
claudeπ License
Licensed under the GNU General Public License v3.0 or later (SPDX: GPL-3.0-or-later). See LICENSE for full text.
π€ Open Innovation Network (OIN)
Ryovx is a proud member of the Open Innovation Network (OIN). In line with OIN's mission and our commitment to the Termux community, most of Ryovx's service products are released under GNU GPLv3.
π Ethical Request β Not a Legal Restriction
Just as we provide this tool completely free of charge, we kindly ask that you do the same: please keep it free.
This is a friendly request, not a legal prohibition. Under GPLv3, you retain the full right to redistribute this software, including commercially. We simply hope you'll choose to honor the spirit in which it was shared.
π Full Changelog
Initial release β no previous version to compare against.
See CHANGELOG.md for the complete changelog.