[GH-ISSUE #9667] Where can I view all configurable environment variables for Ollama? #32068

Closed
opened 2026-04-22 12:57:18 -05:00 by GiteaMirror · 3 comments
Owner

Originally created by @ZimaBlueee on GitHub (Mar 12, 2025).
Original GitHub issue: https://github.com/ollama/ollama/issues/9667

I'm using Ollama with Docker and would like to configure various environment variables to better suit my needs. Specifically, I want to:

  • Adjust the log level to debug
  • Set the context size for all models to 10000

However, I couldn't find a comprehensive list of all configurable environment variables in the official documentation. Is there a place where I can view all available environment variables for Ollama?

Thank you!

Originally created by @ZimaBlueee on GitHub (Mar 12, 2025). Original GitHub issue: https://github.com/ollama/ollama/issues/9667 I'm using Ollama with Docker and would like to configure various environment variables to better suit my needs. Specifically, I want to: - Adjust the log level to debug - Set the context size for all models to 10000 However, I couldn't find a comprehensive list of all configurable environment variables in the official documentation. Is there a place where I can view all available environment variables for Ollama? Thank you!
Author
Owner

@Ca-ressemble-a-du-fake commented on GitHub (Mar 12, 2025):

Hi,

Here is a list of OLLAMA environment variables that you can pass to ollama serve.

<!-- gh-comment-id:2716262309 --> @Ca-ressemble-a-du-fake commented on GitHub (Mar 12, 2025): Hi, Here is a list of [OLLAMA environment variables](https://github.com/ollama/ollama/blob/05a01fdecbf9077613c57874b3f8eb7919f76527/envconfig/config.go#L258) that you can pass to ollama serve.
Author
Owner

@ZimaBlueee commented on GitHub (Mar 12, 2025):

@Ca-ressemble-a-du-fake thanks!!!

<!-- gh-comment-id:2716454030 --> @ZimaBlueee commented on GitHub (Mar 12, 2025): @Ca-ressemble-a-du-fake thanks!!!
Author
Owner

@duxingx1a commented on GitHub (Apr 29, 2025):

You can also run ollama serve -h in the terminal.

<!-- gh-comment-id:2837304274 --> @duxingx1a commented on GitHub (Apr 29, 2025): You can also run `ollama serve -h` in the terminal.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#32068