Skip to content

Instantly share code, notes, and snippets.

@ma-he-sh
Created May 22, 2025 04:04
Show Gist options
  • Save ma-he-sh/d5fc355e52dfae25e92dd4ec75f246ea to your computer and use it in GitHub Desktop.
Save ma-he-sh/d5fc355e52dfae25e92dd4ec75f246ea to your computer and use it in GitHub Desktop.
Using OLLAMA on Mac :: Ollama MacOS expose on 0.0.0.0 on launch

Create a apple script with following content; use ScriptEditor

-- Launch Ollama with the environment variable
do shell script "export OLLAMA_HOST=http://0.0.0.0:11434; open -a Ollama"

goto Export > Set File Format as Application and save on Applications.

open System Settings > under Login Items & Extensions > add this application as a new launch item.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment