A minimal terminal UI for managing Ollama models, inspired by lazydocker and lazygit.
LazyOllama provides a simple, keyboard-driven interface for:
- Viewing all your Ollama models with real-time status (running/stopped)
- Starting interactive chats with any model
- Stopping running models to free up resources
- Refreshing the model list to see newly pulled models
The interface automatically returns you back after chatting, making it easy to switch between different models.
- 🎯 Ultra-simple interface - Single panel showing models with status indicators
- ⚡ Direct chat execution - Press Enter to launch interactive
ollama run <model> - 🛑 Model control - Stop running models with
xkey - 📊 Real-time status - See which models are running (●) or stopped (○)
- ⌨️ Vim-like navigation - Navigate with
j/kkeys - 🔄 Seamless workflow - Returns to interface after chat sessions
- 🖥️ Cross-platform - Works on Linux, macOS, and other Unix-like systems
- Ollama - Must be installed and running
- Go 1.21+ - Required for compilation
- Terminal - Any terminal emulator with basic TUI support
- Install Ollama from ollama.ai
- Install Go (1.21 or later) from golang.org
# Clone or download the source
git clone <repository-url>
cd lazyollama
# Compile the binary
go mod tidy
go build -o lazyollama lazyollama.go# System-wide installation (recommended)
sudo cp lazyollama /usr/local/bin/
# User-only installation
mkdir -p ~/.local/bin
cp lazyollama ~/.local/bin/
# Add ~/.local/bin to PATH if not already there:
echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.bashrc
source ~/.bashrc# System-wide installation (recommended)
sudo cp lazyollama /usr/local/bin/
# Or install to user bin
mkdir -p ~/bin
cp lazyollama ~/bin/
# Add ~/bin to PATH if needed:
echo 'export PATH="$HOME/bin:$PATH"' >> ~/.zshrc
source ~/.zshrc# System-wide installation (recommended)
sudo cp lazyollama /usr/local/bin/
# User-only installation with Homebrew path structure
mkdir -p ~/.local/bin
cp lazyollama ~/.local/bin/
# Add to PATH:
echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.zshrc
source ~/.zshrc# System-wide (requires sudo)
sudo cp lazyollama /usr/local/bin/
# User-only
mkdir -p ~/.local/bin
cp lazyollama ~/.local/bin/
export PATH="$HOME/.local/bin:$PATH"After installation, verify it works:
lazyollamaLaunch the application:
lazyollamaInterface:
Controls:
j/k- Navigate up/down through modelsEnter- Start interactive chat with selected modelx- Stop running model (only shown when model is running)r- Refresh model listqorCtrl+C- Quit application
Workflow:
- Navigate to desired model with
j/k - Press
Enterto start chatting - Chat normally with the model
- Exit chat (usually
Ctrl+Dor/bye) - LazyOllama interface automatically returns
- Repeat with any other model
"command not found" error:
- Ensure the binary is in a directory that's in your PATH
- Try running with full path:
/usr/local/bin/lazyollama
"ollama not found" error:
- Install Ollama from ollama.ai
- Ensure ollama is running:
ollama serve
Terminal display issues:
- Ensure you're running in a proper terminal emulator
- Try resizing your terminal window
MIT License
