[GH-ISSUE #6239] support keep_alive in config.json #3903

Closed
opened 2026-04-12 14:45:32 -05:00 by GiteaMirror · 2 comments
Owner

Originally created by @a-n-d-a-i on GitHub (Aug 7, 2024).
Original GitHub issue: https://github.com/ollama/ollama/issues/6239

Hi. I'm talking about the global config.json in ollama's config folder.
On my system that's C:\Users\me\AppData\Local\Ollama.
I suggest adding the keep_alive parameter globally to this file.
Currently it must be added to each client application's API requests individually.

Originally created by @a-n-d-a-i on GitHub (Aug 7, 2024). Original GitHub issue: https://github.com/ollama/ollama/issues/6239 Hi. I'm talking about the global config.json in ollama's config folder. On my system that's `C:\Users\me\AppData\Local\Ollama`. I suggest adding the keep_alive parameter globally to this file. Currently it must be added to each client application's API requests individually.
GiteaMirror added the feature request label 2026-04-12 14:45:32 -05:00
Author
Owner

@rick-github commented on GitHub (Aug 7, 2024):

You can set this globally by adding OLLAMA_KEEP_ALIVE=10m to the environment variables.

<!-- gh-comment-id:2274059367 --> @rick-github commented on GitHub (Aug 7, 2024): You can set this globally by adding `OLLAMA_KEEP_ALIVE=10m` to the [environment variables](https://github.com/ollama/ollama/blob/main/docs/faq.md#setting-environment-variables-on-windows).
Author
Owner

@dhiltgen commented on GitHub (Aug 9, 2024):

Adding support for a config file is tracked via #204.

<!-- gh-comment-id:2278607891 --> @dhiltgen commented on GitHub (Aug 9, 2024): Adding support for a config file is tracked via #204.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#3903