[GH-ISSUE #9112] List all available models on ollama site #67986

Closed
opened 2026-05-04 12:11:42 -05:00 by GiteaMirror · 2 comments
Owner

Originally created by @LeisureLinux on GitHub (Feb 14, 2025).
Original GitHub issue: https://github.com/ollama/ollama/issues/9112

# List all remote ollama site available models
# Note: Double quote and $ need to escape

alias ola="curl -qfsS https://ollama.com/search |grep -E 'x-test-search-response-title|x-test-size'\

 |sed -e 's/x-test-search-response-title>/x-test-search-response-title>Model:/g'\

 |sed -e 's/<[^>]*>//g'|tr -d ' '|awk '{printf \$NF!~/^Model/?\"%s \":\"\n%s Size:\",\$0}'; echo -e \"\nBy: LeisureLinux@Bilibili\""

Explained in video: https://www.bilibili.com/video/BV16bKTeZEGM/

Originally created by @LeisureLinux on GitHub (Feb 14, 2025). Original GitHub issue: https://github.com/ollama/ollama/issues/9112 ```shell # List all remote ollama site available models # Note: Double quote and $ need to escape alias ola="curl -qfsS https://ollama.com/search |grep -E 'x-test-search-response-title|x-test-size'\ |sed -e 's/x-test-search-response-title>/x-test-search-response-title>Model:/g'\ |sed -e 's/<[^>]*>//g'|tr -d ' '|awk '{printf \$NF!~/^Model/?\"%s \":\"\n%s Size:\",\$0}'; echo -e \"\nBy: LeisureLinux@Bilibili\"" ``` Explained in video: https://www.bilibili.com/video/BV16bKTeZEGM/
GiteaMirror added the feature request label 2026-05-04 12:11:42 -05:00
Author
Owner

@LeisureLinux commented on GitHub (Feb 14, 2025):

Just put it in the issue list, so people can see this simple script is also an option to list models by themselves in stead of requesting features.

<!-- gh-comment-id:2659790323 --> @LeisureLinux commented on GitHub (Feb 14, 2025): Just put it in the issue list, so people can see this simple script is also an option to list models by themselves in stead of requesting features.
Author
Owner

@LeisureLinux commented on GitHub (Feb 14, 2025):

Better to put as function which can grep the output, while alias seemed not able to grep the output.

(base) ~ ᐅ tail -7 ~/.zshrc
function ola() {
  # List all remote ollama site available models
  curl -qfsS https://ollama.com/search | grep -E 'x-test-search-response-title|x-test-size' |
    sed -e 's/x-test-search-response-title>/x-test-search-response-title>Model:/g' |
    sed -e 's/<[^>]*>//g' | tr -d ' ' | awk '{printf $NF!~/^Model/?"%s ":"\n%s Size:",$0}'
  echo -e "\nBy: LeisureLinux@Bilibili"
}
<!-- gh-comment-id:2659851641 --> @LeisureLinux commented on GitHub (Feb 14, 2025): Better to put as function which can grep the output, while alias seemed not able to grep the output. ```shell (base) ~ ᐅ tail -7 ~/.zshrc function ola() { # List all remote ollama site available models curl -qfsS https://ollama.com/search | grep -E 'x-test-search-response-title|x-test-size' | sed -e 's/x-test-search-response-title>/x-test-search-response-title>Model:/g' | sed -e 's/<[^>]*>//g' | tr -d ' ' | awk '{printf $NF!~/^Model/?"%s ":"\n%s Size:",$0}' echo -e "\nBy: LeisureLinux@Bilibili" } ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#67986