Guide
Ollama on Android, without a desktop.
How to point PocketLLM Lite at a local Ollama daemon in Termux over loopback, what Ollama officially supports, and when running GGUF natively via llama.cpp is the better path.
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 with PocketLLM Lite:
- 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 → 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
Enabling 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.
Note 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.
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.
Sources
Ready when you are. Run GGUF or connect Ollama.
One Android workspace for on-device llama.cpp models and your own local endpoints.
Latest v1.0.60Android 7.0+Install guide & all builds