Open source · MIT · Android 12+
Your AI server, running locally on Android.
PocketNode turns a spare smartphone into a local LLM server with an OpenAI-compatible API. GPU-accelerated, always on, on your own network. No cloud, no account, no data leaving the house.
Built to run as a server
OpenAI-compatible API
Chat completions with SSE streaming, tool calling and model listing. Works with Open WebUI and any OpenAI client.
Hardware-aware
An engine optimizer measures GPU, CPU thread variants and NPU on your device and keeps the fastest setup, including speculative decoding and YNNPACK.
Always on
Foreground service, autostart after reboot, idle unload and a dim server-mode screen with burn-in protection.
Keeps its cool
RAM guard before loading, heat limits from thermal status and battery temperature, and a charge-limit hint for 24/7 use.
Models your way
Download any .litertlm model by link (Hugging Face included), import a file, or point it at a folder on the device storage.
Fast follow-ups
Conversation reuse keeps the KV cache between requests, so long chats don't re-read their whole history.
Device profiles
Measured settings per device and model, exportable as JSON and shareable as a community profile.
Private by default
API key with QR code, one request at a time with a small queue, and nothing ever leaves your local network.
Quick start
- 01Install
Grab the debug APK from the latest CI run and install it on an arm64 phone with Android 12 or newer.
- 02Add a model
Under Models, paste a link to a
.litertlmfile, import one, or choose a model folder. - 03Allow access
Grant “Nearby devices” so clients on your network can connect, and allow unrestricted battery use.
- 04Start the server
Tap Start server and load a model. The overview shows the address and the API key as a QR code.
- 05Connect
Point Open WebUI or any OpenAI client at
http://<phone-ip>:8080/v1.
Talk to it like OpenAI
Same request format, same error format. Swap the base URL and keep your client.
GET /health– status, model, accelerator, heatGET /v1/models– installed modelsPOST /v1/chat/completions– JSON or SSE stream,toolsandtool_choice
# Ask the phone in your drawer
curl -sN http://192.168.1.42:8080/v1/chat/completions \
-H "Authorization: Bearer $POCKETNODE_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gemma-4-E2B-it",
"stream": true,
"messages": [{"role": "user", "content": "Hi!"}]
}'
Roadmap
| Stage | Content | State |
|---|---|---|
| 1 Foundation | OpenAI-compatible API, auth, queue, streaming, tests, CI | done |
| 2 Engine | LiteRT-LM backend (GPU / CPU), model folder, foreground service, dashboard | done |
| 3 Robustness | RAM guard, thermal handling, autostart, idle unload, model download, diagnostics | done |
| 4 Device profiles | Profiles, engine optimization (GPU / CPU threads / NPU), export, NPU libraries | done |
| 5 Server operation | Server mode screen, heat limits with battery temperature, charge-limit hint | done |
| 6 Model folder | Models read in place from the device storage, polish | done |
| 7 Tool calling | tools / tool_choice / tool_calls, load progress | done |
| 8 Performance | Conversation reuse (KV cache), speculative decoding and YNNPACK in the optimizer | done |
| 9 Web admin | Web admin with several API keys | open |
| 10 Embeddings | /v1/embeddings | open |
Early stage, for your own use
PocketNode ships as a debug build signed with a key that is public in the repository, so updates install without losing models. Anyone could sign an APK with that key: install only builds from the official repository. Several stages still wait for their device test.
Put a spare phone to work
The debug APK is attached to every successful CI run on main (GitHub sign-in required).