[GH-ISSUE #1107] MacOS Env Variables #553

Closed
opened 2026-04-12 10:14:51 -05:00 by GiteaMirror · 3 comments
Owner

Originally created by @ageorgios on GitHub (Nov 13, 2023).
Original GitHub issue: https://github.com/ollama/ollama/issues/1107

how to start ollama with OLLAMA_ORIGINS=* OLLAMA_HOST=127.0.0.1:11435 ?

Originally created by @ageorgios on GitHub (Nov 13, 2023). Original GitHub issue: https://github.com/ollama/ollama/issues/1107 how to start ollama with OLLAMA_ORIGINS=* OLLAMA_HOST=127.0.0.1:11435 ?
Author
Owner

@gsvd commented on GitHub (Nov 13, 2023):

OLLAMA_ORIGINS='*' ollama serve

But before that make sure to stop the running service, for example (or simply exit the application running in background):

> launchctl list | grep ollama
70718	0	application.com.electron.ollama.61282955.61282961
> launchctl stop application.com.electron.ollama.61282955.61282961
<!-- gh-comment-id:1808107442 --> @gsvd commented on GitHub (Nov 13, 2023): `OLLAMA_ORIGINS='*' ollama serve` But before that make sure to stop the running service, for example (or simply exit the application running in background): ``` > launchctl list | grep ollama 70718 0 application.com.electron.ollama.61282955.61282961 > launchctl stop application.com.electron.ollama.61282955.61282961 ```
Author
Owner

@ageorgios commented on GitHub (Nov 13, 2023):

Is there a way to enclose it into the launchctl script ?

<!-- gh-comment-id:1808643013 --> @ageorgios commented on GitHub (Nov 13, 2023): Is there a way to enclose it into the launchctl script ?
Author
Owner

@jmorganca commented on GitHub (Feb 20, 2024):

Yes! This can be done here: https://github.com/ollama/ollama/blob/main/docs/faq.md#setting-environment-variables-on-mac

In future versions of the macOS app this will get easier to do in Ollama itself

<!-- gh-comment-id:1953334532 --> @jmorganca commented on GitHub (Feb 20, 2024): Yes! This can be done here: https://github.com/ollama/ollama/blob/main/docs/faq.md#setting-environment-variables-on-mac In future versions of the macOS app this will get easier to do in Ollama itself
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#553