Connecting a self-hosted Ollama server
This guide is part of the Publicus connection catalog. Once you have the credentials, connect the service and Publicus stores them for you.
Distilled from Ollama’s own documentation: Authentication, Introduction, FAQ, Get version and Pricing. Retrieved 2026-10-25.
An Ollama server you run yourself has no authentication: its API answers anyone who can reach its address. This connection only needs that address. The platform sends its requests from its own servers, so the address must be reachable from there. A server on localhost of your own computer, or on a private network, will not work from a hosted platform. It works only when the platform runs on the same machine or network.
- Install Ollama and start its server (quickstart). It listens on
127.0.0.1port11434by default. - Download the models the connection will use, for example with
ollama pull. A self-hosted server can only run models it has downloaded. - If the platform runs on another machine, make the server reachable from it. Set the
OLLAMA_HOSTenvironment variable to change the address Ollama binds to, for example0.0.0.0:11434. The FAQ explains how to set it for the macOS app, a Linux systemd service and Windows. Ollama can also sit behind a proxy server such as Nginx, or behind a tunnel such as ngrok or Cloudflare Tunnel. - Check that the address answers from where the platform runs:
GET <address>/api/versionreturns the server’s version without credentials. - Enter that address, with scheme and port and without a path, as the connection’s Server URL. For example:
http://localhost:11434.
Operational notes:
- Because Ollama checks no credentials, anyone who can reach an exposed server can use it. Before you expose one to the internet, put access control in front of it.
- Ollama does not meter models that run on your own hardware (Pricing). A local server signed in to ollama.com can also forward requests for cloud models, which count against that account’s usage. For direct cloud access, use the Ollama Cloud API key connection instead.
Connect it to Publicus
Section titled “Connect it to Publicus”Open Connections under Credentials, choose Ollama, and pick Self-hosted Ollama server (no authentication). Publicus asks for exactly the fields listed above and keeps them in your workspace’s secret storage.
See also: Ollama in the catalog.
This guide is maintained by Publicus and published under CC BY 4.0.