[PR #10725] envconfig: added support for config.env file at ~/.ollama/config.env #13345

Closed
opened 2026-04-13 00:24:28 -05:00 by GiteaMirror · 0 comments
Owner

Original Pull Request: https://github.com/ollama/ollama/pull/10725

State: closed
Merged: No


This changes Ollama to support a config.env file located at ~/.ollama/config.env.

The change retains existing behavior. ENV variables will always take precedence; if the env variable is not set, it will attempt to use the value set in confg.env.

PS - this is my first time touching Go. So, if there's some deviation from community standards, patterns, or conventions, apologies in advance. ... and sorry for the spastic extra pushes, after the PR was opened, i saw there was a mismatch in spaces vs tabs. So updated them to ensure it remains consistent.

Fixes #10724

**Original Pull Request:** https://github.com/ollama/ollama/pull/10725 **State:** closed **Merged:** No --- This changes Ollama to support a config.env file located at `~/.ollama/config.env`. The change retains existing behavior. ENV variables will always take precedence; if the env variable is not set, it will attempt to use the value set in confg.env. PS - this is my first time touching Go. So, if there's some deviation from community standards, patterns, or conventions, apologies in advance. ... and sorry for the spastic extra pushes, after the PR was opened, i saw there was a mismatch in spaces vs tabs. So updated them to ensure it remains consistent. Fixes #10724
GiteaMirror added the pull-request label 2026-04-13 00:24:28 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#13345