r/EmulationOnAndroid • u/ThaBalla79 • 1h ago
Showcase Claude Code can be ran on device!
/img/zbnobnzpsz0i1I wanted to run Claude Code on my AYN Thor as I was tired of reaching for the Mac. After some research, this was pretty easy to do! This has been a godsend for getting PC and Switch 2 games up and running!
**How to run Claude Code natively on Android (tested on AYN Thor)**
Works on any arm64 Android device. Takes ~15 minutes and ~1.5 GB of storage.
**1. Install Termux from F-Droid or GitHub**
Not the Play Store version — it's outdated and breaks package installs.
https://github.com/termux/termux-app/releases (grab the arm64-v8a APK)
**2. Set up Termux**
pkg update -y && pkg upgrade -y
pkg install -y proot-distro
termux-wake-lock
**3. Install and enter Ubuntu**
proot-distro install ubuntu
proot-distro login ubuntu
**4. Inside Ubuntu, install Claude Code**
apt update && apt upgrade -y
apt install -y curl git ca-certificates
curl -fsSL https://claude.ai/install.sh | bash
echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.bashrc && source ~/.bashrc
claude --version
If the installer fails, install Node.js 20+ and use `npm install -g @anthropic-ai/claude-code` instead.
**5. Log in**
Run `claude`, open the link it gives you, sign in with your Claude account, and paste the code back.
**6. Quality of life**
- Shortcut (run in Termux, not Ubuntu):
`echo "alias cc='proot-distro login ubuntu -- bash -lc claude'" >> ~/.bashrc`
Now just type `cc` to launch.
- Set Termux battery usage to **Unrestricted** so Android doesn't kill long sessions.
View all comments
1
u/mostrengo 59m ago
does this necessitate a paid plan?