Fast • Lightweight • Terminal

🦙 LazyLlama

A blazing fast Terminal User Interface (TUI) client for Ollama with real-time streaming, markdown support, and smart scrolling.

v0.3.0 GPL-2.0-or-later
lazyllama
$ lazyllama
🦙 LazyLlama v0.3.0 - Starting...
📡 Connected to Ollama
🤖 Available models:
• llama2
• mistral
• codellama
> _

✨ Why LazyLlama?

Built with performance and user experience in mind

Real-time Streaming

Responses are generated live, providing immediate feedback without waiting for complete generation.

🎨

Markdown Support

Automatic formatting for headers, lists, bold text, and syntax-highlighted code blocks with custom borders.

🖱️

Smart Scrolling

Automatic following of AI output with manual scroll lock (🔒) for reading previous messages undisturbed.

🔄

Model Management

Easily switch between installed Ollama models using arrow keys with separate input/output buffers per model.

💾

Smart Buffer Management

Each LLM maintains its own chat history, input text, and scroll position for seamless multi-model workflows.

📝

Automatic Logging

Every chat session is automatically saved as text files with both combined and per-model histories.

⚙️

Emacs-inspired Controls

Familiar keyboard shortcuts for efficient navigation and control, designed for power users.

🦀

Built with Rust

Ultra-low latency and minimal resource footprint using Rust and the Ratatui terminal framework.

🚀 Quick Start

Get up and running in minutes

1

Prerequisites

Make sure you have Rust and Ollama installed and running.

2

Install LazyLlama

# From crates.io (recommended)
cargo install lazyllama

# Or build from source
git clone https://github.com/Pommersche92/lazyllama.git
cd lazyllama
cargo install --path .
3

Run LazyLlama

lazyllama

That's it! Start chatting with your AI models right in your terminal.

⌨️ Keyboard Controls

Designed for efficiency and productivity

Basic Controls

Enter Send message / Re-activate Autoscroll
Ctrl+Q Quit application safely
Ctrl+C Clear chat history
Ctrl+S Manually toggle Autoscroll

Navigation

Switch between AI Models
PgUp PgDn Scroll history (activates Manual Mode)
Move cursor left/right in input field
Home End Jump to start/end of input line