DEV Community

chyok
chyok

Posted on • Updated on • Originally published at github.com

A Simple Python Tkinter-based Ollama GUI with no external dependencies

Hello everyone, I would like to share with you ollama-gui - a lightweight, Tkinter-based python GUI for the Ollama.

Overview

The project is very simple, with no other dependencies, and can be run in a single file.

ollama-gui-1 2 0

It can serve as a first GUI page for beginners, without the need for Docker, VM or other dependencies, just Python (if not using the binary).

Features

  • 📁 One file project.
  • 📦 No external dependencies, only tkinter which is usually bundled.
  • 🔍 Auto check ollama model list.
  • 🌐 Customizable ollama host support.
  • 💬 Multiple conversations.
  • 📋 Menu bar and right-click menu.
  • 🗂️ Model Management: Download and Delete Models
  • 🎨 UI Enhancement: Bubble dialog theme
  • 📝 Editable Conversation History

Run

Choose any way you like:

source code

python ollama_gui.py
Enter fullscreen mode Exit fullscreen mode

using pip

pip install ollama-gui
ollama-gui # or python -m ollama_gui
Enter fullscreen mode Exit fullscreen mode

binary file

I have provided some Windows, Mac, and Linux binaries for convenient direct use, could be downloaded from the GitHub release page.

Motivation

While looking for a UI interface for Ollama to experiment with large models locally, I found that many had heavy installation dependencies. Since I don't have particularly high requirements for the interface and UI, I decided to write an extremely minimalist UI using Python.

The project home is at https://github.com/chyok/ollama-gui

I would be most appreciative if anyone were interested, and also be tremendously grateful for any feedback or suggestions that anyone may have to offer.

Thanks,
chyok

Top comments (0)