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

  1. Download and install Ollama from ollama.com
  2. 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
    
  3. Ollama runs at http://localhost:11434 by default

Configure in onon

  1. Open Settings → Thinking → Add AI provider
  2. Select Ollama
  3. Enter the base URL: http://localhost:11434
  4. Select your model from the dropdown
  5. Click Save provider, then Set active on its card if another one is active

Models for learning

ModelRAM requiredQuality
llama3.2:3b4 GBAdequate
llama3.28 GBGood
llama3.1:8b10 GBBetter
mistral8 GBGood

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.

ModelDownloadNotes
LFM2 350M~294 MBDefault. Fastest to get running; good at staying in character and at learning from your notes.
Qwen 3 0.6B~620 MBFast chat, but its reasoning trace crowds out the structured output the learning pipeline needs — chat only.
Llama 3.2 1B~1.2 GBThe strongest on-device chat model onon ships. Best on a machine with 8 GB+ of RAM.
Qwen 2.5 1.5B~1.6 GBListed 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 (or edge://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.enabled to true in about: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

  1. Open Settings → Thinking → Add AI provider
  2. Select Local (on-device)
  3. Choose a model — smaller models (1B–3B parameters) are more suitable for in-browser use
  4. Click Save provider — the model downloads once and is cached in your browser
  5. 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

ProviderData sent to...
Anthropic / OpenAIProvider's API servers
OpenRouterOpenRouter's servers, then a provider
OllamaYour local machine only
In-browserYour local machine only

Local models (Ollama or in-browser) are the most private option — no data ever leaves your device.