Skip to content

Releases

v1.5.1

Choose a tag to compare

@github-actions github-actions released this 10 Nov 11:26

Ollama-TUI v1.5.1

See where your tokens go, and look at your pictures without leaving the terminal.

✨ New

Token view in the console

  • :chat <prompt> now shows what was sent (system prompt and prompt), the reply token by token in alternating yellow/green, and then the usual stats.
  • :chat (no prompt) and :dump [full] print the whole chat exactly as the model receives it: system prompt, every message, attached-file text, tool calls and tool results. Each message shows its size in tokens, a share of the context window, and coloured tokens. The end shows the total, the 3 biggest consumers, and the server's own prompt-token count for the last reply.
  • :ctx shows only the sizes: what fills the context window, message by message. Tool definitions are included when Tools mode is on.
  • :colors [on|off] turns the token colours on or off.
  • Reply tokens are real (one streamed chunk = one token). Text that was only sent is split by a rough BPE-style splitter, so its sizes are estimates.
  • Saved console logs (:save) stay plain text. The console keeps 4000 lines instead of 500.

Image viewer

  • Shift+V in the Attachment Manager or in List Mode, or :view [n|path] and :images in the console.
  • kitty, Ghostty: drawn inline (kitty graphics protocol).
  • WezTerm, iTerm2, mintty: drawn inline (iTerm2 image protocol).
  • Everywhere else (including tmux/screen): opens in the default viewer (xdg-open/gio on Linux and FreeBSD, open on macOS, termux-open on Termux, wslview on WSL, start on Windows).
  • Pictures are shrunk to 1800 px before they are sent to the terminal. Sent images can be shown again later in the same session.
  • OLLAMA_TUI_IMAGE=kitty|iterm|off overrides the detection.
  • WebP: inline in WezTerm/iTerm2. In kitty/Ghostty it opens in the default viewer, unless you build with -tags webp (needs golang.org/x/image/webp).

More console commands

  • :set [temp|top_p|top_k|ctx] <value|default> changes sampling settings and saves them, with the same limits as the Settings screen.
  • :system [text|clear] shows, sets or clears the system prompt.
  • :copy copies the last AI reply to the clipboard.
  • :export [name] saves the chat as Markdown in ~/.local/share/ollama-tui/exports/.

🧩 Under the hood

  • New features live in their own files: tokenize.go, tokenview.go, imageview.go, imageview_ui.go, imageview_webp.go (optional), console_cmds.go. main.go only got small hooks.
  • New tests for the token splitter, the conversation dump, protocol detection, image escape codes, image preparation and the new commands.

⚠️ Notes

  • Image support was written from the protocol specs. If your terminal draws it wrong, please open an issue with the terminal name and version.
  • Inline images do not work inside tmux/screen (the default viewer is used instead).
  • token colorizing is still experimental, so please report any bugs.

v1.5.0

Choose a tag to compare

@github-actions github-actions released this 09 Nov 11:33

v1.5.0

Console, level two

  • 💬 :chat <prompt>: ask the current model one question (separate from your chat) and see prompt and generated tokens, tokens per second, time to first token and total time.
  • 📊 :top: CPU, RAM, swap and GPU usage with bars (CPU/RAM/swap on Linux and FreeBSD, NVIDIA GPUs through nvidia-smi, AMD through sysfs).
  • 🚀 :start: start the local Ollama server from the console.
  • 💾 :save [name] and :logs: save the console log as .json and see where logs and chats are stored.
  • ⌨️ Easier to reach: Ctrl+G opens the console from anywhere (including Settings), : opens it on the model screen and in List Mode.

Live system load

  • 📈 Alt+H in Chat Mode shows or hides CPU, RAM, swap and GPU percentages in the header. They update every two seconds. When hidden, nothing is read and no timer runs.

Saved files

  • 📁 Chats are now saved in ~/.local/share/ollama-tui/chats/ and console logs in .../console/. Chats saved by older versions are moved automatically.

Under the hood

  • 🧹 The code is split into topic files (console, stats, cloud, tools, header, settings...) so it's easier to read and maintain.

Notes

  • CPU, RAM and swap numbers are only available on Linux and FreeBSD for now.

v1.4.1

Choose a tag to compare

@github-actions github-actions released this 08 Nov 11:58

Changelog

v1.4.0

Choose a tag to compare

@github-actions github-actions released this 08 Nov 11:44

v1.4.0

New

  • ⏎ Multi-line messages: Alt+Enter or Ctrl+J adds a new line, Enter still sends. (Plain Shift+Enter works only in terminals that report it.)
  • ✨ Markdown in your own messages: **bold**, `code`, lists and code blocks are now rendered in what you send, just like in the AI's replies.
  • 🧰 Console mode (basic): start it with ollama-tui --console for details about your models and token usage. Commands: :help, :status, :tokens, :models, :show, :ps, :unload, :switch, :stop, :kill, :clear and :exit. Up/Down recall earlier commands.
  • 📊 Real token counts: :tokens shows what Ollama and OpenAI actually report (prompt and generated tokens, speed of the last reply), not just an estimate.

Improved

  • 🚀 Faster rendering: streamed text is now drawn at most ten times a second instead of on every chunk, so long replies no longer slow down. Moving the selection in a long chat only redraws the two messages that change.
  • 📜 Scrolling fix: scrolling up while a reply is being generated no longer snaps you back to the bottom. Press s until you reach the bottom to follow the reply again.
  • 🧹 Smaller housekeeping fixes (status messages, capped console history).

Notes

  • The console is still quite basic for now. It's meant for inspecting models and usage, and more commands will come.
  • Shift+Enter can't be told apart from Enter in most terminals, so use Alt+Enter or Ctrl+J.

v1.3.1

Choose a tag to compare

@github-actions github-actions released this 07 Nov 16:56

v1.3.1

Fixes

  • 🔌 Switching to Ollama (Ctrl+B) now starts the local server if it isn't running. Before, opening the app on OpenRouter or OpenAI and then switching to Ollama showed an empty model list.
  • ❌ Connection problems stay visible. The model screen shows the error in red instead of letting it vanish after a few seconds. "No models installed" now only appears when Ollama really answered with an empty list.

New

  • 🔄 Ctrl+R reloads the model list of the current backend (and starts local Ollama first if needed). Handy after adding an API key or starting Ollama yourself.

Upgrading

  • If you are on v1.3.0, please update. Nothing else changed.

v1.3.0

Choose a tag to compare

@github-actions github-actions released this 07 Nov 09:56

v1.3.0

New: cloud models

  • ☁️ OpenRouter and OpenAI support. Press Ctrl+B on the model screen to cycle between Ollama (local), OpenRouter and OpenAI. Replies stream live, images work with vision models, and you can switch backend in the middle of a chat.
  • 🔑 API keys: press Ctrl+K to add your keys (masked while you type). You can also use the OPENROUTER_API_KEY / OPENAI_API_KEY environment variables. Saved keys live in your config file, which only you can read.
  • 🔎 Model filter: press / to filter the model list. Handy with OpenRouter's hundreds of models (try :free).

New: tools

  • 🔧 The AI can now use tools when the model supports them (Ctrl+Y toggles): a calculator, the current time (any time zone), and list/read files (read-only, limited to the folder you started the app in, hidden files are blocked).

New: interface

  • 📊 New header with the model, server, capability badges and a context bar that turns yellow and red as it fills up. It shrinks to one line on small screens.
  • 🎨 Coloured You / AI labels with spacing between messages, and a ⏱️ time under every reply.
  • 🎛️ Settings screen (P in list mode): system prompt, temperature, top P, top K and context size.
  • 📥 Pull and delete local models from inside the app (Ctrl+P, Del), with a live download progress bar.

Fixes

  • 🔌 Quitting now also stops the llama-server process that holds the model in memory.
  • 🪟 Help lines wrap on every screen.

Notes

  • Cloud models cost money (except OpenRouter's :free ones). Your key is sent only to that provider.
  • Releases before v1.2.1 were removed because of serious bugs.

⚠️ Known issue: switching to Ollama could show an empty model list. Fixed in v1.3.1, please use that one.

v1.2.4

Choose a tag to compare

@github-actions github-actions released this 06 Nov 21:48

Changelog

  • 13306fe chore: clean up repo structure for v1.2.4
  • 4a33f55 chore: remove accidental backup files from repo
  • 7e881b6 feat: integrated tool calling, local time tool, and model management UI
  • c71b1de UI: header with context bar and badges, coloured message labels and spacing
  • 0cb810e Enhance README with model manager and requirements

v1.2.3

Choose a tag to compare

@github-actions github-actions released this 05 Nov 22:10

v1.2.3

New

  • 📥 Model manager: press Ctrl+P on the model screen to pull a model from inside the app. It checks the Ollama library first, shows the download size, asks for confirmation, then shows a live progress bar with speed and ETA.
  • 🗑️ Delete models: Del asks first, Shift+D deletes right away.
  • ⏱️ Reply timer: every answer shows how long it took, and the status bar shows a live "waiting for the model" counter, so a slow model load no longer looks like a hang.
  • 🆕 With no models installed, the model screen now opens so you can pull one, instead of showing an error.

Under the hood

  • Unit tests for the core helpers (run them with go test .).

v1.2.2

Choose a tag to compare

@github-actions github-actions released this 04 Nov 15:27

v1.2.2

New

  • 🎛️ Settings screen (press P in list mode): system prompt, temperature, top P, top K and context tokens in one place. Blank fields use the model's own defaults. The context limit is checked against what the model supports, and the context meter now follows your setting (everything except system prompt is experimental and may contain bugs, so unless you want to contribute or tinker stick to the defaults).

Fixed

  • 🔌 Clean shutdown: stopping Ollama from the exit prompt now also stops the llama-server process that holds the model in memory. Before, it stayed running after you quit.
  • 🪟 Help lines now wrap on every screen.

Notes

  • Older releases (before v1.2.1) were removed because of serious bugs. Please use v1.2.2 or newer.