Local Models
Run AI entirely on your own hardware using Ollama (local server) or the in-browser WebGPU inference engine — no API key or internet connection required.
onon supports two options for running AI models locally — with no API key, no cost, and no data leaving your machine.
Ollama (recommended for local)
Ollama is a local inference server that runs models on your CPU or GPU. It exposes a local API endpoint that onon can connect to.
Setup
- Download and install Ollama from ollama.com
- Pull a model:
ollama pull llama3.2 # or for better quality: ollama pull mistral # or to learn best (requires more RAM): ollama pull llama3.1:8b - Ollama runs at
http://localhost:11434by default
Configure in onon
- Open Settings → Thinking → Add AI provider
- Select Ollama
- Enter the base URL:
http://localhost:11434 - Select your model from the dropdown
- Click Save provider, then Set active on its card if another one is active
Models for learning
| Model | RAM required | Quality |
|---|---|---|
| llama3.2:3b | 4 GB | Adequate |
| llama3.2 | 8 GB | Good |
| llama3.1:8b | 10 GB | Better |
| mistral | 8 GB | Good |
In-browser inference (on-device)
For a fully self-contained setup with no external software and no API key, onon includes an in-browser inference engine powered by Transformers.js. This is the zero-config default: nothing you type ever leaves the machine.
The models
The model is downloaded once and then cached by the browser — after that it works offline, forever.
| Model | Download | Notes |
|---|---|---|
| LFM2 350M | ~294 MB | Default. Fastest to get running; good at staying in character and at learning from your notes. |
| Qwen 3 0.6B | ~620 MB | Fast chat, but its reasoning trace crowds out the structured output the learning pipeline needs — chat only. |
| Llama 3.2 1B | ~1.2 GB | The strongest on-device chat model onon ships. Best on a machine with 8 GB+ of RAM. |
| Qwen 2.5 1.5B | ~1.6 GB | Listed for completeness — too large for the CPU runtime, so onon substitutes a lighter model. |
onon picks a default for you based on the memory your device reports, and you can change it anytime in Settings → Thinking. If a model fails to load, onon automatically steps down to the next lighter one rather than leaving you stuck.
How it runs
On-device inference runs on the CPU (WASM), not the GPU. That is deliberate: onon always has a WebGL canvas on screen for your persona's face, and running model weights on the GPU alongside it reliably crashed the tab on lower-end machines. CPU inference is slower but it does not take the whole tab down with it.
Practically, this means on-device chat is measured in seconds per reply rather than milliseconds. If you want instant answers, add a cloud key — onon will use it for chat and keep everything else local.
Enabling WebGPU
WebGPU is not required for on-device inference (see above), but some browsers gate it behind a flag and onon shows a per-browser guide in Settings → Thinking when a model asks for it. In short:
- Brave — off by default to reduce fingerprinting. Enable
brave://flags/#enable-unsafe-webgpu, set it to Enabled, and relaunch. - Chrome / Edge — usually on in 113+. If not, enable
chrome://flags/#enable-unsafe-webgpu(oredge://flags) and relaunch. - Safari — on by default in Safari 18+ (macOS Sequoia / iOS 18). On older versions, enable it under Develop → Feature Flags.
- Firefox — on by default in 141+ on Windows; elsewhere set
dom.webgpu.enabledto true inabout:config, or use Firefox Nightly.
Is it safe? The "unsafe" in the flag name refers to the WebGPU standard still being finalized — not to any risk to your device. Enabling it lets sites use your GPU, a small added fingerprinting surface (which is why Brave gates it). It's the same capability onon uses to run AI privately on-device — nothing leaves your machine — and it's reversible anytime.
Setup
- Open Settings → Thinking → Add AI provider
- Select Local (on-device)
- Choose a model — smaller models (1B–3B parameters) are more suitable for in-browser use
- Click Save provider — the model downloads once and is cached in your browser
- Set active on its card if another one is active
Limitations
In-browser models have smaller context windows than API models, so they learn from fewer notes at a time, and the memories they make are plainer than a capable API model's.
In-browser inference is best suited for simple tasks — quick queries and lightweight use. To learn well, Ollama or an API provider is recommended.
Privacy comparison
| Provider | Data sent to... |
|---|---|
| Anthropic / OpenAI | Provider's API servers |
| OpenRouter | OpenRouter's servers, then a provider |
| Ollama | Your local machine only |
| In-browser | Your local machine only |
Local models (Ollama or in-browser) are the most private option — no data ever leaves your device.