You don’t need a browser to find cloud free tier models on Ollama. You can fully automate the process directly from the command line.

The idea is simple: first, fetch the search pages. Then extract the model names and filter for tags that include “cloud.” These tags typically indicate cloud support.

curl "https://ollama.com/search?c=cloud" -o ollama_cloud.txt
curl "https://ollama.com/search?c=cloud&page=2" -o ollama_cloud2.txt

grep -ohP '(?<=<span x-test-search-response-title>).*?(?=</span>)' ollama_cloud.txt ollama_cloud2.txt \
| while IFS= read -r model; do
    echo "== $model =="

    curl -s "https://ollama.com/library/$model/tags" \
    | grep -oP "$model:[^\"<]*cloud[^\"<]*" \
    | sed 's/["><].*//' \
    | sort -u \
    | while IFS= read -r tag; do
        echo "Running $tag"
        ollama run "$tag" "hello" > "logs/${tag}.txt" 2>&1
        status=$?
        echo "Exit code: $status"
        if [ "$status" -eq 1 ]; then
            ollama rm "$tag"
        fi
      done
done

Previous Post