[PR #4656] [CLOSED] Add OLLAMA_HOME for setting ~/.ollama #37429

Closed
opened 2026-04-22 22:08:29 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/4656
Author: @maaslalani
Created: 5/27/2024
Status: Closed

Base: mainHead: main


📝 Commits (3)

  • cdbc51f feat: add OLLAMA_HOME for default keypath
  • dfb9389 Merge branch 'main' into main
  • 000ce02 Merge branch 'main' into main

📊 Changes

3 files changed (+51 additions, -6 deletions)

View changed files

📝 auth/auth.go (+3 -2)
📝 envconfig/config.go (+36 -1)
📝 server/modelpath.go (+12 -3)

📄 Description

Fixes https://github.com/ollama/ollama/issues/228

This PR adds the optional configuration for OLLAMA_HOME to prevent cluttering
the user's home directory.

OLLAMA_HOME is optional and uses the current behavior if not provided.

If OLLAMA_MODELS is not explicitly, the default value is ~/$OLLAMA_HOME/models.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ollama/ollama/pull/4656 **Author:** [@maaslalani](https://github.com/maaslalani) **Created:** 5/27/2024 **Status:** ❌ Closed **Base:** `main` ← **Head:** `main` --- ### 📝 Commits (3) - [`cdbc51f`](https://github.com/ollama/ollama/commit/cdbc51f2331908d539eee69d0a00816271056522) feat: add `OLLAMA_HOME` for default keypath - [`dfb9389`](https://github.com/ollama/ollama/commit/dfb9389b4eca77f909256ea3d23d662ec5f5b09b) Merge branch 'main' into main - [`000ce02`](https://github.com/ollama/ollama/commit/000ce02098f6bfea486601b5cae35ba38f8824fc) Merge branch 'main' into main ### 📊 Changes **3 files changed** (+51 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `auth/auth.go` (+3 -2) 📝 `envconfig/config.go` (+36 -1) 📝 `server/modelpath.go` (+12 -3) </details> ### 📄 Description Fixes https://github.com/ollama/ollama/issues/228 This PR adds the optional configuration for `OLLAMA_HOME` to prevent cluttering the user's home directory. `OLLAMA_HOME` is optional and uses the current behavior if not provided. If `OLLAMA_MODELS` is not explicitly, the default value is `~/$OLLAMA_HOME/models`. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-22 22:08:29 -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#37429