Run an AI model in your browser
To try a local LLM in your browser, start with a GGUF model through llama.cpp. The model answers on your device without sending your prompt to an inference server. You can use a model you already have or choose one from the built-in catalog.
GGUF response generation can work offline once the app, runtime and model files are available locally. Downloading model files first contacts their distributor. Browser and hardware support determine which models will run and how fast they respond.
Choose the browser runtime that fits your setup
llama.cpp in the browser
Choose a suggested GGUF, search Hugging Face, or use files you already have. You can save a copy in browser storage, link a supported device folder, or try files temporarily without saving a copy.
View setup guideTransformers.js
Open the Transformers.js manager and download a supported ONNX model. When the download completes, Naidan starts loading it automatically; the downloaded list offers Load for a complete model or Resume for an incomplete one. Its model files are stored in the browser’s OPFS. This option is unavailable in Standalone because local-file browser restrictions affect its workers and WebAssembly.
View setup guideBrowser-provided model
Choose Browser-provided and read the availability status. If the browser offers a model that needs preparation, use Prepare browser-provided model. The browser manages that model, so its availability and download behavior depend on the browser.
View setup guideStart a chat with a GGUF model
Open Naidan to choose a model. These steps use llama.cpp; follow the separate guides above for ONNX or a browser-provided model.
Choose a GGUF model
On the home screen, choose one of the suggested models, or use the local-file area to select a GGUF or model folder from your device.
Check the choice and prepare it
For a suggested model, check its quantization and size, then select Run in your browser. The home screen downloads required files into browser storage (OPFS) and prepares the runtime. A model link can contact Hugging Face for repository details before this action; model-file downloads require the explicit start. Local-only needs files obtained separately. Files selected from your device start with temporary access, and you can save a browser copy later.
Use the prepared model in the chat
Once preparation is complete, the chat uses the model you selected. You do not need to save a global default to start this chat. The model selector beside the input can choose another available model for this chat.
Try a short message
Send a short text prompt when the chat is ready. If its model is missing, select Choose a model beside the input. You can choose files, search Hugging Face, or reuse a saved model while keeping your draft; a missing file does not start a download by itself.
Before using images or other media
To attach an image to a llama.cpp chat, you need a matching mmproj GGUF, the model’s companion file for image input. The current llama.cpp chat input does not support audio or video. Generating an image or speech uses separate model features and setup.
Standalone includes browser llama.cpp through its embedded WebGPU runtime, without a CPU fallback. The hosted edition has more execution profiles. Check the in-app availability notice on your browser and device. Transformers.js is a hosted-only choice.
Model files and chat history have different storage controls. Removing browser site data can remove saved models. Linked folders need browser permission and access; temporary file registrations last until this page is reloaded or closed, even if a chat still remembers their model selection.