PocketNode Get the APK

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.

~10–12 tok/sGemma 4 E2B on the GPU of a Pixel 7 Pro
/v1/chatOpenAI-compatible, streaming and tool calling
LiteRT-LMGPU first, CPU fallback, NPU where available
100 % localRuns on your network, never goes online

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

  1. 01Install

    Grab the debug APK from the latest CI run and install it on an arm64 phone with Android 12 or newer.

  2. 02Add a model

    Under Models, paste a link to a .litertlm file, import one, or choose a model folder.

  3. 03Allow access

    Grant “Nearby devices” so clients on your network can connect, and allow unrestricted battery use.

  4. 04Start the server

    Tap Start server and load a model. The overview shows the address and the API key as a QR code.

  5. 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, heat
  • GET /v1/models – installed models
  • POST /v1/chat/completions – JSON or SSE stream, tools and tool_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

StageContentState
1 FoundationOpenAI-compatible API, auth, queue, streaming, tests, CIdone
2 EngineLiteRT-LM backend (GPU / CPU), model folder, foreground service, dashboarddone
3 RobustnessRAM guard, thermal handling, autostart, idle unload, model download, diagnosticsdone
4 Device profilesProfiles, engine optimization (GPU / CPU threads / NPU), export, NPU librariesdone
5 Server operationServer mode screen, heat limits with battery temperature, charge-limit hintdone
6 Model folderModels read in place from the device storage, polishdone
7 Tool callingtools / tool_choice / tool_calls, load progressdone
8 PerformanceConversation reuse (KV cache), speculative decoding and YNNPACK in the optimizerdone
9 Web adminWeb admin with several API keysopen
10 Embeddings/v1/embeddingsopen

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).

Get the APK