# On-device AI

> Canonical: https://skillalmanac.com/glossary/on-device-ai | Last verified: 2026-11-24 | Index status: not offered to search engines

On-device AI means running an AI model directly on the user's own phone, laptop or other device, instead of sending the input to a remote server for processing.

Also called: on-device LLM, local AI model, on-device machine learning, on-device models, on-device language model.

## In plain language

With on-device AI, the model lives on your phone or laptop and does its work there. Dictating a note or blurring a photo background without an internet connection is a typical case. IBM lists faster responses and more privacy because data is not transferred to another network as benefits of edge AI, and says edge AI can work with or without an internet connection. The trade-off is that a device has less memory and power than a data center, so on-device models are often smaller and may do less than the largest hosted ones. A model that fits still uses battery and storage.

## Technical definition

On-device inference loads trained model weights into the memory of a phone, laptop or embedded board and runs inference on the device. Google describes Google AI Edge as an end-to-end stack for building and deploying on-device ML and AI across platforms. Because device memory is limited, models are often compressed first, for example by quantization, which stores weights at lower numeric precision. Microsoft's Windows ML documentation describes selecting an available accelerator, such as an NPU, and falling back to the GPU or CPU when it is unavailable.

## How it shows up when you use agents

Hosted coding agents send your prompts to a model running elsewhere; see [Self-hosted LLM](/glossary/self-hosted-llm) for the alternative. On-device AI is the other arrangement: the model runs on hardware you hold. You meet it when you point an agent or an MCP server at a local model, or when you build a mobile or desktop app that runs a model itself.

The practical question is fit. Weights, working memory and runtime overhead all compete for the device's memory. Before choosing a model, check that it fits, for example with the [local-model-sizing skill](/skills/skill-almanac/local-model-sizing). A model that is [quantized](/glossary/quantization) needs less memory but may behave differently from the original.

Two things break when the idea is misread. People assume local means private, while the tool around the model may still call the network, so check where data goes. And they assume a small local model equals a large hosted one, so compare them on your own task. See [Edge AI](/glossary/edge-ai) for the wider idea and [Inference](/glossary/inference) for the step that runs on the device.

## Common confusions

- **On-device AI versus edge AI.** Edge AI covers any hardware near the data, including gateways and sensors. On-device AI is the case where the model runs on the user's own device.
- **On-device AI versus self-hosted LLM.** A self-hosted model may sit on your own server. On-device means the user's phone or computer.
- **On-device versus cloud.** Cloud AI sends input to remote servers. On-device AI processes it locally, though an app can combine both.
- **Myth.** On-device AI means the model learns on the device. Usually the model is trained elsewhere and only run locally.

## Worked examples in this catalogue

### [local-model-sizing](https://skillalmanac.com/skills/skill-almanac/local-model-sizing)

Status: illustrative example from the item's own documentation, not executed for this page.

What you see: A check on whether an open-weight language model will run on a given GPU, Mac or PC, using a script that computes weight, KV-cache and overhead memory per quantization level.

Why it exercises the concept: On-device AI starts with whether the model fits the hardware. The skill turns that into arithmetic before you download anything.

### [android-practices](https://skillalmanac.com/skills/skill-almanac/android-practices)

Status: illustrative example from the item's own documentation, not executed for this page.

What you see: Native Android rules in Kotlin and Compose, plus a scanner that helps an agent write idiomatic, leak-free app code.

Why it exercises the concept: Phones are a main device for on-device AI. The skill does not cover models, but app code that runs one still has to behave well on the platform.

### [ios-swift-practices](https://skillalmanac.com/skills/skill-almanac/ios-swift-practices)

Status: illustrative example from the item's own documentation, not executed for this page.

What you see: Rules that make an agent write current SwiftUI, with a check for six known Swift anti-patterns.

Why it exercises the concept: iPhones and iPads are the other main platform. This skill covers app code, not model runtimes, so treat it as the app-side half of the work.

### [Self-Hosting an AI Agent: What You Take On](https://skillalmanac.com/learn/self-hosted-ai-agent-considerations)

Status: illustrative example from the item's own documentation, not executed for this page.

What you see: A guide to what you take on when an agent runs on your machine: model memory, network exposure, file access and vetting skills, with a checklist.

Why it exercises the concept: Local does not by itself mean private or contained. The guide shows what to check once the model runs on your own hardware.

## Related terms

- [Edge AI](https://skillalmanac.com/glossary/edge-ai.md)
- [Inference](https://skillalmanac.com/glossary/inference.md)
- [Small language model (SLM)](https://skillalmanac.com/glossary/small-language-model.md)
- [Quantization](https://skillalmanac.com/glossary/quantization.md)
- [Self-hosted LLM](https://skillalmanac.com/glossary/self-hosted-llm.md)
- [Neural processing unit (NPU)](https://skillalmanac.com/glossary/npu.md)

## Sources

- [Run AI on-device with Google AI Edge](https://developers.google.com/edge), Google (accessed 2026-11-24)
- [What Is Edge AI?](https://www.ibm.com/think/topics/edge-ai), IBM (accessed 2026-11-24)
- [Copilot+ PCs developer guide](https://learn.microsoft.com/en-us/windows/ai/npu-devices/), Microsoft Learn (accessed 2026-11-24)

Definitions are written by Skill Almanac from the sources above and checked against them on 2026-11-24. [Glossary index](https://skillalmanac.com/glossary.md).
