Skip to content

About

Offline desktop chat app for local Ollama models. Python + Tkinter, no Docker needed.

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Latest commit

 

History

14 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

Ollama Chat

Branch: main (the stable one). This is the desktop app that the release builds are made from. Other branches: experimental adds a browser version (web UI) on top of this app, and backup is an old snapshot from before v1.3.0 that is kept only for reference.

A small desktop chat window for talking to a local Ollama model. It runs fully offline and needs no Docker, no Open WebUI and no installation, just Python and Ollama.

Work in progress. Expect bugs.

Features

  • Chat with a local model through a simple Tkinter window; replies stream in as they are generated
  • Pick any model you have pulled from File → Choose Model (or type a custom name). The choice applies immediately and is remembered in Documents/selected_model.txt
  • Conversation history is kept, so the model remembers earlier messages (the most recent 40 messages are sent to the model)
  • Redo button to regenerate the last answer
  • Save Chat State (button or File menu) saves the whole conversation as JSON, and File → Load Chat continues it later
  • File → Save Responses (Legacy) exports the conversation as plain text
  • Message text can be selected and copied, Enter sends, and the window is resizable

Download

Grab the file for your system from the latest release, no Python needed. You still need Ollama running with at least one model pulled.

  • Windows: ollama_chat.exe, just run it. SmartScreen or Defender may warn because it isn't signed (More info > Run anyway).
  • Mac (Apple Silicon): unzip ollama_chat_mac.zip and move Ollama Chat.app to Applications. It isn't signed, so the first time right-click it > Open.
  • Linux: tar xzf ollama_chat_linux.tar.gz && ./ollama_chat (needs a desktop session).

The builds are made automatically by GitHub Actions every time a release is published.

Running from source

Requirements

  • Python 3 with Tkinter (included with the standard Python installers; on some Linux distributions install python3-tk)

  • Ollama installed and running

  • The ollama Python package:

    pip install ollama
  • At least one model pulled, for example:

    ollama pull llama3.1

Usage

python ollama_chat.py

Type a prompt, press Send (or Enter), and watch the answer stream in.

Choosing a model

On first launch no model is selected. Open File → Choose Model, pick one of your installed models and press OK. If the list is empty, make sure Ollama is running, or pick custom... and type the model name.

Issues

Found a bug? Open an issue.

Made by n1ji (plaui).

About

Offline desktop chat app for local Ollama models. Python + Tkinter, no Docker needed.

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages