Skip to content

On-device AI

AI that runs on the phone, for privacy, offline, and speed.

On-device AI keeps inference and data local instead of in the cloud. It is the right tool for a specific set of problems, and the wrong one for others. We are honest about which, and we build the device-side pieces around the app you already have.

Is this the right tool

On-device is a trade, not an upgrade.

Running a model on the phone buys privacy, offline capability, and low latency. It costs you model quality, app size, and battery. That trade is worth making for some features and clearly wrong for others.

Reach for it when

  • The data is sensitive enough that it should never leave the device: journal entries, health signals, anything a user would not want sent to a server.
  • The feature has to work offline or on a bad connection, where a round trip to the cloud is not an option.
  • Latency has to be instant and predictable, with no network hop, for something like live on-device transcription.
  • You want to cut per-inference cloud cost to zero for a high-volume, well-scoped task a small model can handle.

Do not use it when

  • The task needs a frontier model. Today's best reasoning and generation still live in the cloud, and a small on-device model will disappoint on hard tasks.
  • App size and battery matter more than the benefit. Bundling a model adds tens or hundreds of megabytes and drains power under load.
  • You need to update the model often. Cloud models change with a config flip; on-device models ship with an app update and app-store review.
  • A cloud call with good privacy handling already satisfies your requirement. On-device is not automatically "more secure" if the cloud path was designed well.

The honest default in 2026 is hybrid, not fully on-device. Keep the heavy reasoning in the cloud, and push to the device only the parts that genuinely benefit: on-device speech, local pre-processing, and keeping raw sensitive data encrypted on the phone. Anyone selling you a fully local LLM as a drop-in replacement for a cloud model is overselling what fits on a phone today.

How we build it

What actually runs on the device, and where the limits are.

On-device AI on React Native is a spectrum. At one end, the OS gives you capable models for free; at the other, you are bundling and quantizing your own. Most real products live in between.

On-device speech and OS models

The cheapest on-device AI is the one the platform already ships. On Epiphra we used expo-speech-recognition, which taps the native on-device speech engines, so transcription can start instantly without a server round trip. The OS also offers vision and text models you can call locally.

Keeping sensitive data on the phone

On-device is as much about where data lives as where the model runs. On Afterlight we used end-to-end encryption so raw journal entries stay encrypted on the device, are never stored in the database, and are never exposed to the practitioner. The device does the sensitive handling; only abstracted output ever leaves.

Bundled and quantized models

When a task genuinely needs a local model, we integrate a runtime (Core ML, LiteRT, or an on-device LLM runtime) and quantize the model to fit a phone's memory and battery budget. This is real native work, and we scope it honestly against the size and power cost it adds.

The hybrid split

The pragmatic architecture routes each step to where it belongs: on-device for speech, pre-processing, and privacy-critical handling, cloud for heavy reasoning. We draw that boundary explicitly so you know exactly what data ever leaves the phone.

Trade-offs and failure modes we design around

  • Quality gap: an on-device model is smaller than a cloud model, so it will lose on hard tasks. We match the model to the task rather than pretending a phone runs a frontier model.
  • App size and battery: bundling a model adds significant download size and drains power under sustained inference. That cost is real and we surface it before committing.
  • Update friction: shipping a new on-device model means an app update and store review, so you cannot iterate as fast as a cloud config change.
  • Device variance: a model that flies on a current flagship can crawl on a three-year-old midrange phone. We test on real low-end devices, not just the newest one.

What it costs to run

How on-device changes the cost shape.

On-device flips the cost model. Cloud AI charges per inference, so cost scales with usage forever. On-device inference has near-zero marginal cost once shipped: the phone does the work, so a million local inferences cost the same as one. For a high-volume, well-scoped task, that can be the difference between a feature that pays for itself and one that bleeds.

The cost moves up front instead. On-device work is heavier engineering (native runtimes, quantization, device testing) and it spends a real budget you do not pay in the cloud: app size and battery. So the question is not "which is cheaper", it is "where do you want to pay", once, in engineering and device budget, or forever, per inference.

We model both paths against your expected usage before building. For a low-volume feature, cloud is usually cheaper all-in; for a high-volume, privacy-critical one, on-device often wins over time. The same cost-model formula makes that comparison concrete instead of a hunch.

Read the mobile AI cost model

Proof

Device-side AI work we have actually shipped.

We are precise here, because on-device is an area teams love to overclaim. Here is what is genuinely device-side in what we have shipped, and where the line is.

Epiphra

Inseed client, led by our founder

A live AI reflection app. The genuinely on-device piece is speech: we used expo-speech-recognition, which runs on the native on-device speech engines, so transcription starts without a server round trip. The heavy reasoning and voice generation run in the cloud (Gemini Live), which is the honest hybrid split.

  • On-device speech recognition via expo-speech-recognition
  • Hybrid architecture: device-side STT, cloud reasoning
  • Live on the App Store and Play Store

Afterlight

Upwork project, solo lead AI engineer

An AI self-reflection app (in TestFlight) built privacy-first. Our founder built the agentic pipeline and the encryption architecture so raw journal entries stay end-to-end encrypted on the device, are never stored in the database, and are never exposed to the therapist. Only abstracted output leaves the phone. The generative models themselves run in the cloud.

  • End-to-end encryption keeping raw entries on the device
  • Raw entries never stored server-side or shown to practitioners
  • Solo-built agentic AI pipeline (currently in TestFlight)

Straight answer on the gap: we have not shipped a fully on-device LLM in production. Both examples above are hybrid: the device does the speech and the privacy-critical data handling, while the heavy model inference runs in the cloud. That reflects what actually fits on a phone in 2026. If your feature needs true local inference, we would prototype it against your device targets in the audit and tell you honestly whether the quality holds, before you commit to a build.

FAQ

On-device AI questions, answered straight.

Can you run a full LLM entirely on the phone?

Small and quantized ones, yes; a frontier-quality model, not today. On-device LLM runtimes exist and keep improving, but the models that fit a phone's memory and battery are meaningfully weaker than the best cloud models. For most products the honest answer is a hybrid: on-device for speech, pre-processing, and privacy, cloud for the heavy reasoning. We will tell you which of your features can realistically run local.

Is on-device automatically more private?

Only if the design uses it that way. On-device is genuinely more private when raw sensitive data never leaves the phone, which is how we built Afterlight, where entries stay encrypted on-device and are never stored server-side. But a well-designed cloud path with de-identification and a no-training endpoint can also be private. On-device is a strong privacy tool, not a magic label.

What does on-device do to my app size and battery?

Bundling a model adds real download size (tens to hundreds of megabytes depending on the model) and sustained on-device inference drains battery. These are the true costs of going local, and we surface them before committing rather than after. For a small feature the size hit is often the reason to stay in the cloud.

Can you add on-device AI to my existing app?

Yes. On-device pieces (speech, local pre-processing, encryption, a bundled model) are added as native modules and a device-side layer beside your current app, not a rewrite. Your existing screens and data stay where they are. That is the same "no rewrite" approach we take to every AI integration.

Wondering if on-device is right for your feature?

30 minutes, free. We will tell you honestly which parts can run on the phone, what it costs in size and battery, and whether the quality holds for your case. Shuhel will be on the call.

Book a 30-minute call