Comment

Comment by alexandru_m

Apparently, protecting the API is not planned: https://github.com/ollama/ollama/issues/849

For my own purposes I either restrict ollama's ports in the firewall, or I put some proxy in front of it that blocks access of some header with some predefined api key is not present. Kind of clunky, but it works.

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton