A GTK graphical interface for chatting with large language models (LLMs)
Project description
GTK LLM Chat
A GTK graphical interface for chatting with Large Language Models (LLMs).
Key Features
-
Simple and easy-to-use graphical interface built with GTK
-
Support for multiple conversations in independent windows
-
Integration with python-llm for chatting with various LLM models
-
Modern interface using libadwaita
-
Support for real-time streaming responses
-
Message history with automatic scrolling
-
Windows installer, Linux AppImage, and Macos bundles available!
-
Markdown rendering of the responses
-
Sidebar Navigation: Modern sidebar for model/provider selection, parameters, and settings.
-
Model Parameters: Adjust temperature and system prompt per conversation.
-
API Key Management: Banner with symbolic icons for setting/changing API keys per provider.
-
Keyboard Shortcuts:
F10: Toggle sidebarF2: Rename conversationEscape: Minimize windowEnter: Send messageShift+Enter: New line in inputCtrl+W: Delete the current conversation
-
Conversation Management: Rename and delete conversations.
-
Tray aooket: Use a system tray applet for quick access to recent conversations.
-
Error Handling: Clear error messages displayed in the chat.
-
Dynamic Input: The input area dynamically adjusts its height.
Gtk-LLM-Chat is a graphical frontend for the command-line llm utility. Just as llm integrates large language models into the command line interface, Gtk-LLM-Chat aims to bring that same power to the desktop environment. Its goal is to provide intuitive affordances and seamless integration for using LLMs in everyday tasks — all while remaining convenient, lightweight, and transparent in its behavior.
Installation
Downloadable application bundles
While the command line is fun in every operating system, Gtk-LLM-Chat also offers prepackaged binary application bundles for all three major operating sytems: Windows installers, Linux Appimages and Macos Application Bundles are available in our releases section.
An effort has been made to support desktop integration across systems but your mileage may vary - as the Gtk tools are still maturing outside of the GNU/Linux ecosystem.
As an llm plugin
Playing with LLMs in the command line is fun! I recommend you to install llm and play around with it to size up the possibilities. Gtk-LLM-Chat can be installed as a plugin extension for llm itself, thus extending the possibilities of llm with some graphical features. Not all features of llm are exposed yet.
pipx install llm # required by gtk-llm-chat
llm install gtk-llm-chat
You may want to copy the provided .desktop files to your ~/.local/share/applications/ folder. A welcome assistant will do this in the future for you.
System Requirements
- llm (when installing as an llm plugin)
- Python 3.8 or higher
- GTK 4.0
- libadwaita
- libayatana-appindicator (on linux)
These dependency installation instructions are collected here for reference only:
# fedora: # sudo dnf install cairo-devel object-introspection-devel gtk4-devel pkgconf-pkg-config gcc redhat-rpm-config
# debian: # sudo apt install libgtk-4-1 python3-gi python3-gi-cairo libadwaita-1-0 libayatana-appindicator3
# arch: # sudo pacman -S python-gobject gtk4
Usage
Running the Application
To start the applet (system tray mode):
llm gtk-applet
To start a single chat window:
llm gtk-chat
Optional arguments:
llm gtk-chat --cid CONVERSATION_ID # Continue a specific conversation
llm gtk-chat -s "System prompt" # Set system prompt
llm gtk-chat -m model_name # Select specific model
llm gtk-chat -c # Continue last conversation
Development
To set up the development environment:
git clone https://github.com/icarito/gtk-llm-chat.git
cd gtk-llm-chat
python -m venv venv
source venv/bin/activate
pip install -e ".[dev]"
Shoulders of giants
This project is made possible thanks to these great components, among others:
- llm by @simonw
- hello-world-gtk by @zevlee
License
GPLv3 License - See LICENSE file for more details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file gtk_llm_chat-3.0.1.tar.gz.
File metadata
- Download URL: gtk_llm_chat-3.0.1.tar.gz
- Upload date:
- Size: 1.1 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4e3a96805cd1d86f7d619b8a399c559f186ecdd539b74d5e745b85612c0106f5
|
|
| MD5 |
51ec036129ca612f4e4fe62ae0709201
|
|
| BLAKE2b-256 |
2dd4e90a1ae410c64193725b9c78193fd8dc52a8fa4ab04d787373d4ad783991
|
File details
Details for the file gtk_llm_chat-3.0.1-py3-none-any.whl.
File metadata
- Download URL: gtk_llm_chat-3.0.1-py3-none-any.whl
- Upload date:
- Size: 79.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e625b3090314b84b9e2030d6d300de474e080b4abf5756db28cde651a699dd0a
|
|
| MD5 |
747afaa803c1ada86bfcd81a396d33b4
|
|
| BLAKE2b-256 |
7f45295e8693a15857cdd93ba3281415a34ee066aef6218eb5bb277737a1b6e5
|