HelgeSverre/ollama-gui

A Web Interface for chatting with your local LLMs via the ollama API

Ollama GUI – a browser‑based chat front‑end for locally‑run LLMs

What it is – A single‑page web app that talks directly to the Ollama inference server. It lets you chat with any model you have pulled into Ollama (e.g., Llama 3.2, qwen3, deepseek‑r1, gpt‑oss, vision models like llava) without needing a separate backend. All data lives in the browser’s IndexedDB, so nothing leaves your machine unless you point the app at a remote Ollama instance.

Key capabilities

Feature What you get
Chat UI Streaming responses, stop‑generation, regenerate, edit. Every edit/regeneration is versioned and can be branched into a new conversation.
Thinking models For models that expose a “reasoning” stream (qwen3, deepseek‑r1, gpt‑oss) the intermediate thoughts appear in a collapsible block; you can toggle them or adjust effort level for gpt‑oss.
Attachments Drop images for vision models (llava, gemma3) or attach text/code files to a message.
Model management Search Ollama’s model catalog as you type, pick a size, pull with progress bar, delete, inspect capabilities, view context length, unload from memory.
Settings Global or per‑model/system prompts, generation parameters (temperature, num_ctx, top_p, seed, etc.).
History Chats grouped by date, pin/archiving, auto‑generated titles, full‑text search (⌘K), rename.
Markdown rendering Syntax‑highlighted code blocks, KaTeX math support.
Appearance Light/dark themes, locale‑aware dates and numbers.
Import/Export Export all chats as JSON or a single chat as Markdown; import the same formats back.
Keyboard shortcuts Quick actions like search (⌘/Ctrl K), new chat (⌘/Ctrl ⇧ O), delete chat (⌘/Ctrl ⇧ ⌫), send/line break, stop generation, edit last message, etc.

How to run it

  1. Install Ollama and have it serving on its default port 11434.
  2. Install Bun (or any recent Node 20) for development.
  3. git clone https://github.com/HelgeSverre/ollama-gui.git
    cd ollama-gui
    bun install
    bun run dev   # opens http://localhost:5173
    
    The dev server proxies /api to the local Ollama instance, so no CORS tweaks are needed.
  4. For production, run bun run build to generate a static dist/ folder, then serve it behind a reverse proxy that forwards /api to Ollama, or use the provided Docker images.

Deploy options

  • Hosted demo – https://ollama-gui.vercel.app (connects to your local Ollama after you add the origin to OLLAMA_ORIGINS).
  • Docker – Two‑step images are published on GitHub Container Registry. You can run the GUI alone (docker run … ghcr.io/helgesverre/ollama-gui) and point it at a local or remote Ollama via the OLLAMA_URL env var, or use the supplied docker‑compose.yml to start both Ollama and the GUI together on port 8080.
  • Static build – Serve the dist/ folder with any static web server (nginx, Apache, Vercel, Netlify, etc.) and configure a reverse proxy for /api.

Development & testing

  • Linting with ESLint (bun run lint).
  • Unit/integration tests via Vitest (bun run test).
  • End‑to‑end tests with Playwright; a mocked Ollama API is used by default, but you can run real‑model tests by pulling a couple of models and setting OLLAMA_REAL=1.
  • Model catalog is generated from the public Ollama library (bun run catalog:update).

Tech stack – Vue 3 + Vite for the SPA, Tailwind CSS for styling, VueUse utilities, Dexie for IndexedDB abstraction, markdown‑it + highlight.js + KaTeX for rich message rendering, and Tabler Icons for UI icons.

License – MIT (permissive, allows personal or commercial use).


In short, Ollama GUI is a lightweight, privacy‑first web client that turns any locally‑hosted Ollama model into a full‑featured chat experience, complete with history, model management, and support for vision and “thinking” models.

Related

  • Project
  • Project
  • Project
  • Project
  • Project