DeepSeek R1 Installation Guide for Android
A step-by-step guide, with an automated installer script, for running the DeepSeek R1 model offline on a rooted Android phone using Termux, Arch Linux and Ollama.
This guide walks through installing and running DeepSeek R1 locally on an Android device with no internet connection required after setup, using Termux to install Arch Linux, then Ollama inside that Arch environment to download and run the model. A companion shell script automates the whole process on a rooted phone: it updates Termux, installs the required tools, sets up Arch Linux, installs and starts Ollama, and launches the model, so a user only needs to install Git and a helper package for elevated access before running the script.
After installation, using the model again means logging back into the Arch Linux environment inside Termux, starting the Ollama server, and running the model by name. The guide recommends the 1.5-billion-parameter version of DeepSeek R1 as the practical choice for a phone, since larger versions need more RAM and a stronger processor than most devices have, and notes that performance depends heavily on the phone's own hardware.