Lokendra Singh.
← ALL WRITINGS
// Writing · Nov 30, 2026 · 5 min read

Cloudless-AI: private AI chat that runs in your browser

Cloudless-AI: private AI chat that runs in your browser

Cloudless-AI is a free, open-source AI chat app that runs a local LLM inside your browser tab. The model downloads once, then answers from your own CPU or GPU. There is no server, no account and no API key, and your chats never leave your device.

I built it because every chat you type into a hosted AI goes to someone else's computer. Cloudless-AI flips that: close the network and it keeps working.

How do you run an LLM in a browser?

The model runs inside the tab, in one of two ways:

Mode Engine Needs
CPU (default) llama.cpp compiled to WebAssembly, through wllama Any modern browser
GPU WebLLM over WebGPU A browser with WebGPU, such as Chrome or Edge

The weights are cached in the browser after the first download. From then on the model loads by itself, even offline.

On a normal laptop, Qwen3 0.6B on the CPU loaded in about 50 seconds the first time and answered a short question in 2 to 3 seconds.

Which models does it run?

Mode Models Size
CPU Qwen3 1.7B (recommended), Qwen3 0.6B, Qwen2.5 1.5B, Qwen2.5 Coder 1.5B, Llama 3.2 1B and 3B, Gemma 3 1B, SmolLM2 1.7B, Phi-3.5 mini 0.4 to 1.7 GB
GPU Qwen2.5 1.5B, Qwen3 1.7B, Gemma 2 2B, Llama 3.2 3B, Phi-3.5 mini, Llama 3.1 8B 1.6 to 5 GB of GPU memory

A Think switch turns reasoning on for harder questions. Thinking folds into "Thought for 6s", and endless thinking is stopped after a minute, so you always get an answer.

Does anything get sent to a server?

No chats, notes or files. Here is where everything lives:

What Where
Chats, projects, notes, artifacts IndexedDB, in your browser
Settings, name, photo localStorage
Model files Origin Private File System (CPU) or Cache Storage (GPU)
The model's working memory RAM in the tab, until you close it

The network is used for three things only: loading the app, downloading model weights from Hugging Face the first time, and loading the WebLLM library in GPU mode. An automated test checks that a chat makes no network call outside the page's own origin.

The one exception is a web tool you turn on yourself (Wikipedia, DuckDuckGo or reading a link). Then only the search words go to that service, and your chat history is never sent.

What else does it do?

  • Projects with their own instructions and knowledge files
  • Notes in Markdown, saved from any reply in one click and downloadable as a PDF
  • Artifacts (HTML pages, SVG, Markdown, code) you can share as a link: the whole artifact is packed into the link after the #, so nothing is uploaded
  • Live HTML preview in a sandboxed panel with no network access
  • PDF tools: read the text of PDFs you attach, edit a PDF, compress a PDF
  • Live status with real timings, and a memory meter for the context window (4K tokens by default, up to 32K)

How does it compare?

Compared on Cloudless-AI ChatGPT, Claude.ai Ollama + Open WebUI, LM Studio
Where the model runs Your browser tab Their servers An app you install
Install None, open a link None Install and run a local server
Account or key None Account required None
Model size Small (0.5 to 8B) The largest models Anything your hardware can run

The honest part

  • These are small models. They are good for drafting, explaining, summarising and simple code, and they make more mistakes than big hosted models
  • The first download is about 1.1 GB for Qwen3 1.7B (0.4 GB for Qwen3 0.6B)
  • CPU mode runs in WebAssembly, which caps a tab at 4 GB, so the biggest context sizes need GPU mode or a smaller model
  • The page reloads once on the first visit: multi-threaded CPU inference needs cross-origin isolation, which GitHub Pages can't set, so a small service worker adds it

Why JavaScript?

My projects are Python by default. Here the whole app has to run in a browser tab with no backend, so it's plain JavaScript (ES modules, no build step). The 116 end-to-end tests are Python, with pytest and Playwright.

FAQ

Is Cloudless-AI free? Yes. It's MIT-licensed, and there are no API bills because the model runs on your own machine.

Do I need a GPU? No. CPU mode works on any computer. GPU mode is faster where WebGPU is available.

Does it work offline? Yes, once the app and a model have loaded one time.

Can it read my PDFs? Yes, PDFs that contain text. The text is read in your browser with pdf.js. Scanned PDFs, which are only pictures, can't be read yet.

More of my projects: GitHub.

Sources