Originally published on the PocketLLM Lite blog. Disclosure: I maintain PocketLLM Lite (MIT licensed, free).
Support caveat first
Ollama officially documents macOS, Windows, and Linux. Android/Termux builds are community-maintained and are not certified by PocketLLM Lite. For most phones, running GGUF models directly inside PocketLLM Lite through llama.cpp is simpler and avoids keeping a separate Termux background process alive.
Two ways to run local models on one phone
If you want an offline chat on Android with zero PC involved, you have two options:
- Built-in llama.cpp (recommended for most users): open Set up a model, download a verified GGUF starter model or import any
.gguffile, and run it inside the app with no terminal setup. - Termux + Ollama loopback: run a community Ollama server inside Termux on
127.0.0.1:11434and connect PocketLLM Lite as the Android chat client.
The Termux path makes sense if you already manage custom Modelfiles in Ollama, want a shared local endpoint for multiple Termux tools, or are testing on an armeabi-v7a build that omits the in-app native runtime.
Connecting PocketLLM Lite to Termux Ollama
- Keep Ollama bound to loopback. In Termux, keep the host at
127.0.0.1:11434rather than binding0.0.0.0, so other devices on public Wi-Fi cannot reach the server. - Pull a model sized for phone RAM. A 0.6B to 1.7B Q4 model leaves headroom for both Android and the Termux daemon.
- Add the endpoint in PocketLLM Lite. Open Set up a model, then Connect Local Ollama (or Settings, Providers & Ollama), and enter
http://127.0.0.1:11434. - Test the connection. Confirm the model list loads before starting a chat. Keep Termux exempted from aggressive battery killing if Android suspends background terminals.
Why Strict Offline still allows it
Strict Offline Mode blocks non-loopback app-managed requests before they leave the app, while keeping 127.0.0.1 and localhost open by design. That means you can lock down external internet access and still talk to a Termux Ollama server running on the same handset.
One safety boundary: Ollama's model tags endpoint does not confirm vision input capability for PocketLLM Lite, so image attachments stay fail-closed unless the configured provider explicitly confirms vision support.
Links
- Website: https://pocketllm-lite.vercel.app
- Source (MIT): https://github.com/PocketLLM/pocketllm-lite
- Download: https://github.com/PocketLLM/pocketllm-lite/releases/latest
If you try it on your phone, open a GitHub issue or discussion with the model and device you ran. Real hardware reports help everyone.

