Local AI: a one-click Windows app that picks a model for your PC and sets up Ollama for friends
- Models & engines
- Ollama installed without administrator rights
Models such as Qwen3, Gemma 3/3n, Llama 3.1/3.2, Mistral, Phi-4, DeepSeek-R1, Qwen2.5-Coder and -VL, LLaVA and gpt-oss - Key gotcha
- ollama serve must be started with CREATE_NO_WINDOW and without DETACHED_PROCESS, otherwise every child process opens its own console window.
What they built
Oleg Che kept getting asked to set up local LLMs for friends: install Ollama, figure out which of a hundred models fits the GPU, get the tag right, wait for the download, and find a UI.
So he built Local AI, a free, open-source Windows app that looks at the hardware, recommends a model from a catalogue of 34, installs Ollama and the model, and opens a chat.
Conversations stay on the PC because the chat talks to Ollama on 127.0.0.1; the network is only used for downloads and update checks.
Setup
- Windows 10 or 11, a single LocalAI.exe of about 42 MB with nothing else to install
- Python plus pywebview (WebView2), packaged with PyInstaller
- Ollama installed without administrator rights
- Models such as Qwen3, Gemma 3/3n, Llama 3.1/3.2, Mistral, Phi-4, DeepSeek-R1, Qwen2.5-Coder and -VL, LLaVA and gpt-oss
How it works
- main.py starts a local HTTP server on 127.0.0.1 and opens the window; the UI is plain HTML, CSS and JavaScript with no build step.
- API requests need a per-session token header and pass a Host check, so a web page in your browser can't call the local server.
- The GPU is read from nvidia-smi or the display-class registry key and RAM from GlobalMemoryStatusEx, avoiding WMI, which was broken on his machine.
- The 1.6 GB Ollama installer downloads resumably with Range requests and gets a signature check before it runs.
Results & numbers
- The app handles chat with streaming replies, a think mode, text and image attachments, moving models to another drive, updates, and full removal.
- Without a GPU it still works on the CPU, more slowly and with a smaller model.
Gotchas
- ollama serve must be started with CREATE_NO_WINDOW and without DETACHED_PROCESS, otherwise every child process opens its own console window.
- The app isn't code-signed, so SmartScreen may ask for confirmation, and some antivirus tools dislike PyInstaller executables; the source is open if you'd rather build it.
- It is Windows only.
“I kept getting asked to set this up for friends, so I built Local AI”— Oleg Che
Do it yourself
- Download LocalAI.zip from the project's GitHub releases, or build it yourself from the MIT source.
- Run LocalAI.exe and let it detect your GPU, VRAM, RAM and free disk space.
- Accept the recommended model or pick another from the catalogue, and let it install Ollama and pull the model.
- Chat locally, and use the settings to move models to another drive or remove everything later.
Similar setups
Hymnix: a Windows desktop gateway that shares your local Ollama models with friends over an optional tunnel
Carris Flynn’s Hymnix wraps Ollama in an OpenAI-compatible Windows gateway with a live request console, idle VRAM unload, and an optional Cloudflare or ngrok tunnel so invited people can use your GPU from elsewhere.
PatchPal TinyAgent: a coding agent on a 4B model and a 6GB laptop GPU
WiseProbe adapted its PatchPal coding agent to run Gemma 4 E4B or Qwen3.5 4B through Ollama on a 6GB RTX A1000, using handoff-note compaction and capped file reads to work inside a 16K or 32K window.
Getting OpenCode to work with a local Ollama model by fixing the 4,096-token context
OpenCode on a local Ollama model ignored files, invented tasks or looped, because each ~23k-token request was silently cut to fit Ollama's default 4,096-token context on a 16 GB GPU.
OpenCode on a CPU-only Intel i7 laptop talking to local Ollama coder models
Idada Osaigbovo James wires OpenCode on a Dell Latitude 5430 (i7-1265U, 32 GB RAM, Iris Xe) to Ollama’s local OpenAI-compatible API and runs Qwen2.5-Coder 1.5B/7B with no cloud subscription.