Free Guide
Ollama on Kaggle, reachable through a Cloudflare tunnel.
Five notebook cells, in the order they have to run. They start an Ollama model inside a Kaggle notebook, expose its API through a temporary Cloudflare Quick Tunnel, and connect a client such as Hermes to it.
What’s Inside
-
Install
Install the required software
Installs Ollama and the Cloudflare Tunnel client in a fresh Kaggle runtime, then checks both versions.
-
Serve
Start the Ollama API server
Runs Ollama in the background and writes its logs to a file, so a failure is readable instead of silent.
-
Pull
Download the model
Pulls the 27B GGUF model non-interactively, so the notebook can keep running the cells after it.
-
Tunnel
Start a fresh Cloudflare Quick Tunnel
Opens a temporary public HTTPS URL to the local API and extracts it from the tunnel log automatically.
-
Test
Test both API endpoints
Checks the local API and the public tunnel, and tells you which model ID to use in your client.
-
Connect
Connect Hermes or another client
The exact base URL, model and API-key settings, plus a short troubleshooting checklist.