Blog
Notes from a local-first build.
Twelve engineering and setup notes grounded in the shipped codebase: Termux Ollama setups, airplane mode testing, GGUF vs Cactus, local PDF RAG, the local OpenAI server, Flutter runtime engineering, real-phone benchmarks, NetGuard verification, and zero analytics.
The posts
Twelve notes worth writing down.
Read in order or pick the one that matches the setup or decision in front of you.
How to run Ollama on Android without a PC (Termux + PocketLLM Lite)
Step-by-step guide to pointing PocketLLM Lite at Ollama in Termux on 127.0.0.1:11434, what Ollama officially supports, and when native llama.cpp is simpler.
Airplane Mode AI: What actually works offline on Android in 2026
An honest checklist of what runs with every radio turned off—llama.cpp chat, RAG, local tools, Whisper—and what still needs Wi-Fi or preparation.
GGUF vs Cactus bundles: Why PocketLLM Lite moved to llama.cpp
Why PocketLLM Lite switched primary on-device inference to llama.cpp and standard GGUF weights while keeping legacy Cactus bundles working.
Local RAG on Android: Ask your PDFs without uploading them
How PocketLLM Lite parses PDF, TXT, Markdown, and CSV files on-device with keyword, semantic, and hybrid search—and the limits on scanned PDFs.
Local OpenAI API on your phone: Use Android as a loopback LLM server
How PocketLLM Lite’s embedded OpenAI-compatible server exposes /v1/models, /v1/chat/completions with SSE, and /v1/embeddings—with loopback defaults and LAN security caveats.
Building a Flutter app that runs LLMs on-device: llama.cpp and Cactus
How PocketLLM Lite pairs llama.cpp (llamadart) with archived Cactus 1.3 behind adapters, enforces SHA-256 checks, and falls back to 2,048 context on tight RAM.
How we benchmark local LLMs on real phones, not just emulators
Inside integration_test/llama_bench_test.dart and tool/bench_report.py: 4 rounds, 160 tokens, 2,048 context, CPU-only thermal logging, and why emulator numbers mislead.
How to audit PocketLLM Lite’s network traffic with NetGuard
Verify zero background telemetry yourself: combine Android NetGuard or PCAPdroid with PocketLLM Lite’s built-in session audit log and Strict Offline Mode.
Why this app has no analytics
No ads, no analytics, no crash SDKs. What that costs the project, what still contacts the network, and how to verify the claim yourself.
What 27.6 tokens per second feels like
The method behind the only benchmark this project has, the two rounds that made no sense, and why a tokens-per-second number is not a buying guide.
The APKs are debug-signed. Here is what that means.
The GitHub builds are engineering artifacts, not Play Store releases. What the debug certificate changes about updates, backups and trust.
Strict Offline is not airplane mode
An application-level boundary is smaller than an OS firewall and larger than a toggle. What it blocks, what it deliberately allows, and how to test it.
Ready when you are. Read the source too.
The posts link to the repository. The APK is free, MIT licensed and production-signed since v1.0.60; the download page explains how to verify it.
Android 7.0+Install guide & all builds