Skip to content
FossShelf
Home / Categories / For AI Engineers

Cross Platform Llm Client

GGUF model inference on Android and iOS, with cloud API fallback

Replaces Private Llm

2.38K starsMITreviewed 6 Nov 2026last commit 4 Nov 2026
Screenshot of Cross Platform Llm Client

Who it's for

Android users running GGUF models offline

Users who want to run Llama-3, Gemma, or Qwen2-VL locally on Android hardware without sending data to a cloud provider. PrivateLM handles GGUF download, Vulkan GPU offload, and context sizing automatically, so the setup is download the app, download a model, and start chatting.

Skip if your Android device is below API 28 (Android 9.0) or has less than 4 GB RAM. Smaller devices may work for lightweight quantized models but are not tested configurations per the README.

iPad users who want on-device AI without a subscription

Users on iPad who want local LLM inference without a subscription or App Store app. Metal GPU acceleration means larger quantized models run at usable speeds on modern Apple Silicon iPads. All chat history stays on device.

Skip if you are not comfortable with the AltStore sideloading process (requires a Mac or Windows PC and periodic re-signing). iPad is the recommended iOS target due to RAM headroom; iPhone is supported but has less headroom for larger models.

Developers benchmarking local LLMs on mobile hardware

Developers who need to validate GGUF model performance across Android SoCs (Snapdragon, Mediatek, Tensor) at different context sizes and quantization levels. The device-tier auto-detection and chat-template support (ChatML, Llama-3, Gemma, Phi) provide a consistent baseline for comparison testing.

Skip if you need a stable, well-documented testing baseline with no open issues. At 12 open issues and under a year old, the project is still settling; a developer needing a proven mobile inference tool should evaluate maturity first.

Users who want offline inference with a cloud fallback

Anyone who primarily uses a local model but occasionally needs stronger output from GPT-4 or Claude for complex tasks. PrivateLM switches between local inference and any of four cloud providers from the same chat interface, with per-session context stored locally regardless of which mode was used.

Skip if you need centrally managed API keys or enterprise audit logging. PrivateLM stores all keys locally in Hive with no central management layer.

The problem

Running a large language model on a mobile device requires the right hardware, the right model format, and an app that handles the complexity without demanding technical setup. Most mobile AI chat apps either lock you into a cloud subscription, sending every query to a third-party server, or they offer a local model option so buried in configuration that it only works for developers who know their way around Llama.cpp. Switching between local inference and cloud providers mid-session is worse still. Each mode typically lives in a different app, so a user who wants the privacy of a local model but the speed of GPT-4 on complex tasks has to maintain two separate apps, two sets of chat histories, and two interfaces that work nothing alike. API keys entered into one are invisible to the other.

How it works

Local GGUF Inference on Android via Vulkan GPU

Downloads and runs GGUF models directly on Android using a custom Flutter plugin wrapping llama.cpp, with Vulkan GPU acceleration. At first launch, the app reads your device's available RAM and GPU tier (ultra, high, mid, low), sets thread count automatically, and applies idle detection and 180-second hard timeouts to keep the UI responsive on mid-range hardware.

iOS and iPad Local Inference via Metal GPU

On iOS and iPad, llama.cpp runs using Metal GPU acceleration. The build is distributed as a sideloadable IPA via AltStore; iPad is the recommended iOS target due to RAM requirements for local models. The same GGUF model files and chat-template types (ChatML, Llama-3, Gemma, Phi) work on both Android and iOS.

Four Cloud API Providers as Instant Fallback

Connects to OpenAI, Anthropic, Google Gemini, or Kimi (Moonshot AI) from the same chat interface. A single CloudService normalizes all four API shapes: OpenAI standard completions, Anthropic Messages API, Google generateContent, and Kimi's OpenAI-compatible endpoint. API keys are stored locally in Hive and sent only to the provider's endpoint, never to any intermediary.

Multimodal Vision Chat

Sends images alongside text in conversations. Vision works with local Qwen2-VL models on Android and iOS and with cloud providers that support image inputs. The same chat interface handles both text-only and image-plus-text turns with no mode switching required.

Offline-First Local Storage via Hive

All chat sessions and app settings persist on-device via Hive, a lightweight key-value store. In local mode nothing leaves the device after the initial model download. In cloud mode, only the current query goes to the selected provider's endpoint; chat history remains local. API keys are stored in Hive and never transmitted to any server outside the chosen provider.

Features

  • Local GGUF Inference on Android via Vulkan GPU
  • iOS and iPad Local Inference via Metal GPU
  • Four Cloud API Providers as Instant Fallback
  • Multimodal Vision Chat
  • Offline-First Local Storage via Hive

How to install

Download the Android APK or iOS IPA from GitHub Releases: https://github.com/orailnoor/cross-platform-llm-client/releases/latest

Recommended for this setup

Strengths

  • MIT License with Full Source Access: The entire codebase is MIT licensed, giving any team or individual the right to build, modify, and ship their own version without restriction. Unlike Private LLM, which is a closed proprietary iOS app sold as a one-time purchase, the llama.cpp integration, cloud API handling, and local storage layer are all fully inspectable.
  • No Account, No Server, No Subscription: Local inference runs entirely on the device with no server infrastructure and no mandatory account creation. The only network traffic in local mode is the initial GGUF model download. This removes the subscription cost and account tracking that come with cloud-first AI chat apps.
  • Android, iOS, and Web from One Codebase: Android, iOS, and web are all supported in a single Flutter build. Android has the most mature local inference path, with Vulkan GPU acceleration tested on Snapdragon, Mediatek, and Tensor SoCs. iOS adds Metal GPU inference; web is cloud-only. A developer building on any of these platforms works from the same Flutter codebase.
  • Smart Device-Tier Auto-Configuration: On first launch, the app reads the device's RAM and GPU capabilities and recommends an optimal context size and token limit for that hardware tier. This removes the need to manually research which GGUF quantization fits a Snapdragon 888 versus a mid-range Mediatek device.

Trade-offs

  • iOS Install Requires AltStore Sideloading: The iOS build is not on the App Store. Users must install AltServer on a Mac or Windows PC and AltStore on the iOS device, download the IPA from GitHub Releases, and sideload it. Sideloaded apps expire after 7 days unless AltStore refreshes them automatically over the same Wi-Fi network. This is a real barrier for non-technical iOS users.
  • Task Management Feature Not Yet Available: The README describes a task view for structured, multi-step AI workflows as under active development and explicitly notes it is not in the app yet. Users who need mobile LLM task automation should check the repository for updates before choosing PrivateLM for that use case.
  • Project Under One Year Old with 12 Open Issues: The repository was created in April 2026 and had 12 open issues as of November 2026. With 1,489 stars and 309 forks it is growing quickly, but the project is young. Some rough edges and undocumented behavior should be expected at this stage of development.

Tech stack

Languages
C++, C, Cuda, Metal, Dart, GLSL, WGSL, CMake, Go Template, Objective-C, Kotlin, HTML, Swift, Python, Objective-C++, Shell, Ruby, JavaScript, Linker Script, Assembly
Frameworks
—
Databases
—
Tooling
—

FAQ

What GGUF models does PrivateLM run locally on Android?

Any GGUF model compatible with llama.cpp runs on Android, including Llama-3, Gemma, Phi, and ChatML-templated models. The app wraps llama.cpp via a custom Flutter plugin for ARM64 devices with Vulkan GPU offload. At first launch it reads your device RAM and GPU tier, then recommends a context size and token limit matched to your hardware.

How do I install PrivateLM on iOS?

The iOS build is a sideloadable IPA, not an App Store release. First install AltServer on your Mac or Windows PC and AltStore on your iOS device. Then download the PrivateLM-iOS.zip from the GitHub Releases page, extract the IPA, and open it in AltStore. Sideloaded apps expire after 7 days, but AltStore tries to refresh them automatically when your device is on the same Wi-Fi as your AltServer computer. iPad is the recommended target for local inference; iPhone is supported but has less RAM headroom.

Is PrivateLM free to use?

Yes. PrivateLM is MIT licensed and costs nothing to run. Local inference is entirely free; you only pay for queries sent to cloud providers (OpenAI, Anthropic, Gemini, Kimi) using your own API keys. There is no subscription, no account requirement, and no in-app purchase.

Does PrivateLM work without an internet connection?

Yes, in local mode on Android and iOS. After downloading a GGUF model, all inference runs on-device with no network access needed. Chat history is stored locally in Hive and never leaves the device in local mode. The web version and cloud API mode both require an active internet connection.

What Android version does PrivateLM require?

PrivateLM requires Android API 28 or higher (Android 9.0 and above), as set by the minSdk in the platform configuration. Release APKs are split per ABI for smaller download sizes. Download the ABI variant that matches your device's processor architecture from the GitHub Releases page.

Similar tools

More in AI Engineers