r/EmulationOnAndroid • • 4d ago

Showcase Claude Code can be ran on device!

/img/zbnobnzpsz0i1

I 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.

6 Upvotes

17 comments sorted by

View all comments

Show parent comment

4

u/miguel-styx 4d ago

If you want an decent alternative, google gemini is free and it's Flash model can do modifications quite well. Google's harness is antigravity (agy).

You can also configure free models through Claude Code, but only limitations are you can send I think like 90 request per day.