[PR #540] [CLOSED] Allow setting ollama home directory through environment var OLLAMA_HOME. #41457

Closed
opened 2026-04-24 21:20:20 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/540
Author: @JayNakrani
Created: 9/16/2023
Status: Closed

Base: mainHead: jay/allow-explicitly-setting-ollama-home-directory


📝 Commits (1)

  • 6a14fb9 Allow setting ollama home directory through environment var OLLAMA_HOME.

📊 Changes

6 files changed (+75 additions, -8 deletions)

View changed files

📝 cmd/cmd.go (+4 -3)
paths/paths.go (+16 -0)
paths/paths_test.go (+46 -0)
📝 server/auth.go (+2 -1)
📝 server/images.go (+2 -1)
📝 server/modelpath.go (+5 -3)

📄 Description

It would be great to be able to specify a different directory location than the default user-home directory.


🔄 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/540 **Author:** [@JayNakrani](https://github.com/JayNakrani) **Created:** 9/16/2023 **Status:** ❌ Closed **Base:** `main` ← **Head:** `jay/allow-explicitly-setting-ollama-home-directory` --- ### 📝 Commits (1) - [`6a14fb9`](https://github.com/ollama/ollama/commit/6a14fb9277e826c533992f26a2ec277e689e017d) Allow setting ollama home directory through environment var OLLAMA_HOME. ### 📊 Changes **6 files changed** (+75 additions, -8 deletions) <details> <summary>View changed files</summary> 📝 `cmd/cmd.go` (+4 -3) ➕ `paths/paths.go` (+16 -0) ➕ `paths/paths_test.go` (+46 -0) 📝 `server/auth.go` (+2 -1) 📝 `server/images.go` (+2 -1) 📝 `server/modelpath.go` (+5 -3) </details> ### 📄 Description It would be great to be able to specify a different directory location than the default user-home directory. --- <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-24 21:20:20 -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#41457