Skip to main content
The TUI (Terminal User Interface) is llmfit’s default mode, providing an interactive, keyboard-driven interface for browsing models, filtering by fit level, searching, and downloading models directly to local runtime providers.

Launching TUI Mode

Interface Layout

The TUI is divided into four regions:
  1. System Bar (top) - Shows CPU, RAM, GPU hardware, and provider status (Ollama, MLX, llama.cpp)
  2. Search & Filters (second row) - Search box, provider/use-case filters, sort column, fit filter, availability filter, theme selector
  3. Model Table (main area) - Scrollable list of models with scores, quantization, memory usage, and fit indicators
  4. Status Bar (bottom) - Keybinding hints and download progress

Core Keybindings

keys
Navigate up/down through model list
keys
Vim-style navigation (down/up)
keys
Scroll by 10 rows
keys
Half-page scroll (up/down by 5 rows)
keys
Jump to top / bottom of list
keys
Alternative keys for top/bottom navigation

Search & Filtering

key
Enter search mode. Type to filter models by name, provider, parameters, or use case. All terms must match (AND logic).
keys
Exit search mode (while in search)
key
Clear search query
key
Cycle fit filter: All → Runnable → Perfect → Good → Marginal → Too Tight → All
key
Cycle availability filter: All → GGUF Avail → Installed → All
key
Cycle sort column: Score → Params → Mem% → Ctx → Date → Use Case → Score
key
Open provider filter popup (capital P). Use ↑/↓ to navigate, Space/Enter to toggle, ‘a’ to select all.
key
Open use-case filter popup (capital U). Use ↑/↓ to navigate, Space/Enter to toggle, ‘a’ to select all.

Model Details & Planning

key
Toggle detail view for selected model. Shows full metadata, scoring breakdown, MoE architecture info, memory requirements, GGUF sources, and installation status.
key
Open Plan mode for selected model (hardware planning). Allows editing context length, quantization, and target TPS to estimate required hardware.

Provider Integration

key
Download selected model. Opens provider picker if multiple providers are available (Ollama vs llama.cpp). Shows animated progress indicator during download.
key
Refresh installed models from all runtime providers (Ollama, MLX, llama.cpp)
key
Toggle installed-first sorting. When enabled, models detected in any runtime provider appear at the top.

Display Options

key
Cycle color theme: Default → Dracula → Solarized → Nord → Monokai → Gruvbox → Default. Theme selection is saved automatically to ~/.config/llmfit/theme.

Exit

keys
Quit TUI (or close detail view if open)

Search Mode

Press / to enter search mode. The search box border turns highlighted, and you can type to filter models. Search features:
  • Partial matching across model name, provider, parameter count, use case, and category
  • Multiple terms (space-separated) use AND logic - all terms must be present
  • Case-insensitive
  • Real-time filtering as you type
  • Navigate results with ↑/↓ while in search mode
Examples:
Press Esc or Enter to exit search mode. Press Ctrl-U to clear the search.

Plan Mode

Plan mode inverts normal fit analysis: instead of “what fits my hardware?”, it estimates “what hardware is needed for this model config?” Entering Plan Mode:
  1. Navigate to a model row
  2. Press p
Editable Fields: Fields:
number
required
Context length in tokens (e.g., 8192, 16384). Affects memory estimation.
string
Quantization override (e.g., Q4_K_M, Q8_0, mlx-4bit). Leave empty for auto-selection.
number
Target decode speed in tokens/second. Used to recommend GPU memory bandwidth.
Plan Output:
  • Minimum Hardware: VRAM/RAM/CPU cores needed to run the model
  • Recommended Hardware: Specs for optimal performance
  • Run Paths: Feasibility of GPU, CPU+GPU offload, and CPU-only modes with estimated TPS and fit level
  • Upgrade Deltas: Specific hardware changes needed to reach better fit targets

Provider Filter Popup

Press P (capital P) to open the provider filter popup. Controls:
  • / or j / k: Navigate
  • Space / Enter: Toggle checkbox for current provider
  • a: Toggle all providers (select all / deselect all)
  • Esc / P / q: Close popup
Display:
  • [x] indicates provider is enabled
  • [ ] indicates provider is disabled
  • Active count shown in title: “Providers (N/Total)”
  • Selected row highlighted
Filtering is applied immediately when you toggle providers.

Use-Case Filter Popup

Press U (capital U) to open the use-case filter popup. Controls:
  • / or j / k: Navigate
  • Space / Enter: Toggle checkbox for current use case
  • a: Toggle all use cases (select all / deselect all)
  • Esc / U / q: Close popup
Available Use Cases:
  • General
  • Coding
  • Reasoning
  • Chat
  • Multimodal
  • Embedding

Download Functionality

Press d on any model to download it to a local runtime provider. Provider Selection: If multiple providers are available, a popup appears:
  1. Ollama: Pulls via Ollama API (ollama pull <tag>)
  2. llama.cpp: Downloads GGUF from HuggingFace to local cache
Use / to select provider, Enter to confirm. Download Progress:
  • Progress bar appears in the “Inst” column for the downloading model
  • Animated spinner shows activity
  • Percentage displayed when available (Ollama and llama.cpp)
  • Status message shown in status bar
  • Row highlighted during download
Install Detection: The “Inst” column shows:
  • - Model installed in at least one provider
  • O - Available via Ollama only
  • L - Available via llama.cpp only
  • OL - Available via both Ollama and llama.cpp
  • - Checking availability (background probe)
  • - Not available for download
  • Animated progress indicator - Currently downloading

Fit Filter Modes

Cycle with the f key.

Availability Filter Modes

Cycle with the a key.

Sort Columns

Cycle with the s key. Current sort column is indicated with in the table header.

Themes

Press t to cycle through six built-in color themes: Your theme selection is saved to ~/.config/llmfit/theme and restored on next launch.

Environment Variables

string
Ollama API URL (default: http://localhost:11434). Set to connect to remote Ollama instances.Example: OLLAMA_HOST="http://192.168.1.100:11434" llmfit
integer
Context length fallback for memory estimation when --max-context is not set.Example: OLLAMA_CONTEXT_LENGTH=8192 llmfit

Tips

Fast navigation: Use g / G to jump to top/bottom, then use j / k for fine control. Combine with search (/) to quickly find specific models.
Multi-term search: Search for “coding 14b” to find all 14B parameter coding models. All terms must match.
Plan mode workflow: Press p on a model, adjust context to your workload (e.g., 32k for long documents), and see if you need more VRAM/RAM.
Install detection latency: The TUI probes download availability in the background. The “Inst” column may show briefly while checking. This is normal and non-blocking.
Ollama, MLX, or llama.cpp must be installed for download (d) and refresh (r) functionality. The TUI works without them, but provider-specific features will be disabled.