Skip to contents

Queries the local Ollama daemon (GET /api/tags) and returns a tidy tibble::tibble of installed models (name, size_gb, modified_at). Returns an empty tibble if Ollama is not running.

Usage

ollama_list_models(
  base_url = Sys.getenv("OLLAMA_HOST", unset = "http://localhost:11434")
)

Arguments

base_url

Ollama base URL. Defaults to "http://localhost:11434".

Value

A tibble::tibble with columns name, size_gb, and modified_at.

Examples

ollama_list_models()
#> # A tibble: 24 × 3
#>    name                                             size_gb modified_at         
#>    <chr>                                              <dbl> <chr>               
#>  1 slmjev-judge-p5:latest                              1.11 2026-10-10T06:54:41…
#>  2 qwen3:14b                                           9.28 2026-08-24T10:00:37…
#>  3 qwen3-1.7b-base:latest                              1.11 2026-08-08T09:59:43…
#>  4 ajindal/llama3.1-storm:8b                           4.66 2026-08-08T03:48:51…
#>  5 gemma4:e4b                                          9.61 2026-08-08T03:42:15…
#>  6 gemma4:26b                                         18.0  2026-08-08T03:41:24…
#>  7 gemma4:latest                                       9.61 2026-05-14T13:15:45…
#>  8 hf.co/unsloth/Qwen3-4B-Instruct-2507-GGUF:latest    2.5  2025-12-19T15:43:59…
#>  9 qwen2.5-coder:7b                                    4.68 2025-12-11T23:07:38…
#> 10 cogito:8b                                           4.92 2025-12-11T23:04:41…
#> # ℹ 14 more rows