Ollama
Call your Ollama models from anywhere.
Keep Ollama on your machine and off the public internet. Your apps reach it through the same gateway as every other model.
your app
gateway.ngrok.ai
ollama.internal
private to your ngrok accountyour machine · no inbound ports
localhost:11434
Setup
Set it up in four steps.
Start Ollama
Run the server.
In a second terminal, pull a model.
Give it a private URL
An internal endpoint is reachable from your ngrok account only. Nothing on your machine opens to the internet.
Add it as a provider
In app.ngrok.ai, create a custom provider with these values, then allow it on your access key.
- Provider ID
- ollama
- Base URL
- https://ollama.internal
- Model
- llama3.2
Call it
Use any OpenAI-compatible SDK. Add a hosted model as a fallback for when your machine can’t answer.
Not using Ollama?
The same steps work for vLLM, LM Studio, and any server that speaks the OpenAI API.
Use a model you run yourself