r/coolgithubprojects • u/Oleg18 • 8h ago
I rewrote the UI of my local Ollama chat client — now it has thinking mode, local web search, file attachments and persistent memory. No cloud, no API keys.
Hi everyone! I've been working on a fork of craigahobbs/ollama-chat — a conversational AI chat client that talks to Ollama entirely offline. Private, fast, no cloud. Here's what I added:
- Redesigned UI — light/dark themes, new sidebar/composer layout, mobile-responsive.
- Thinking mode — a paw button in the composer makes the model "think before answering" (
think: true). - Web search via tool calling — the model itself calls
web_search/fetch_pagetools (max 5 rounds per answer). All of this runs locally, so nothing leaves your machine. Off by default. - File attachments — up to 10 files per message: txt, md, docx, png, jpg, jpeg. Docx is parsed with python-docx, images are sent to the model as base64.
- Markdown viewer — preview
.mdfiles right inside the chat area (rendered withmarked+DOMPurify). Works fully offline. - SVG preview in chat — fenced SVG code blocks are rendered as actual pictures, sanitized so scripts/event handlers are stripped. Python blocks get light syntax highlighting (view only, nothing executes).
- Persistent workspace memory —
USER.md(your profile, edited from a simple form) andMEMORY.md(durable notes) are injected into the system prompt of every turn. Manage with/memory,/remember,/forget. Optionally, the local model proposes durable facts after a few exchanges — nothing is written until you confirm, and only your typed text is analyzed (never attachments or model replies). - Pinned chats, task manager, settings pages — profile, workspace, and email (IMAP/SMTP, write-only password, never sent to the browser) settings.
- Optional cloud providers — OpenAI, Anthropic, Gemini, Mistral, Groq, DeepSeek, OpenRouter and custom OpenAI-compatible endpoints, with AES-GCM encrypted keys. Ollama stays the default.
- One-click Windows launch —
install.bat/start.batclone, create the venv and start everything.
Requirements: Ollama running + Python 3.11+ and Git on PATH.
Repo: https://github.com/OlegUshakov-pl/ollama-chat
Would be grateful for feedback — especially on the web search tool loop, seems to be a nice balance between local-only and "the model actually looks things up."
