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.
replies(5):