[GH-ISSUE #19776] feat: OLLAMA authentication as Environment Variable #18988

Closed
opened 2026-04-20 01:16:46 -05:00 by GiteaMirror · 2 comments
Owner

Originally created by @iosbeis on GitHub (Dec 5, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/19776

Check Existing Issues

  • I have searched for all existing open AND closed issues and discussions for similar requests. I have found none that is comparable to my request.

Verify Feature Scope

  • I have read through and understood the scope definition for feature requests in the Issues section. I believe my feature request meets the definition and belongs in the Issues section instead of the Discussions.

Problem Description

If you configure the settings via environment variables, unfortunately you cannot specify API token authentication as a variable on an Ollama server.

Desired Solution you'd like

create a environment variables like "OLLAMA_API_KEY" or "OLLAMA_authentication"

Alternatives Considered

No response

Additional Context

Image
Originally created by @iosbeis on GitHub (Dec 5, 2025). Original GitHub issue: https://github.com/open-webui/open-webui/issues/19776 ### Check Existing Issues - [x] I have searched for all existing **open AND closed** issues and discussions for similar requests. I have found none that is comparable to my request. ### Verify Feature Scope - [x] I have read through and understood the scope definition for feature requests in the Issues section. I believe my feature request meets the definition and belongs in the Issues section instead of the Discussions. ### Problem Description If you configure the settings via environment variables, unfortunately you cannot specify API token authentication as a variable on an Ollama server. ### Desired Solution you'd like create a environment variables like "OLLAMA_API_KEY" or "OLLAMA_authentication" ### Alternatives Considered _No response_ ### Additional Context <img width="518" height="456" alt="Image" src="https://github.com/user-attachments/assets/4b46ebed-002e-4a07-badd-3dc2f8e1e60d" />
Author
Owner

@owui-terminator[bot] commented on GitHub (Dec 5, 2025):

🔍 Similar Issues Found

I found some existing issues that might be related to this one. Please check if any of these are duplicates or contain helpful solutions:

  1. #19287 feat: ollama Basic authentication
    by fcorneli • Nov 19, 2025

  2. #14327 about ollama to setting the ollama_api_key
    by bouyeijiang • May 26, 2025

  3. #2305 enhancement: auth ollama connection
    by ymerejeremy • May 16, 2024


💡 Tips:

  • If this is a duplicate, please consider closing this issue and adding any additional details to the existing one
  • If you found a solution in any of these issues, please share it here to help others

This comment was generated automatically by a bot. Please react with a 👍 if this comment was helpful, or a 👎 if it was not.

<!-- gh-comment-id:3616420147 --> @owui-terminator[bot] commented on GitHub (Dec 5, 2025): 🔍 **Similar Issues Found** I found some existing issues that might be related to this one. Please check if any of these are duplicates or contain helpful solutions: 1. [#19287](https://github.com/open-webui/open-webui/issues/19287) **feat: ollama Basic authentication** *by fcorneli • Nov 19, 2025* 2. [#14327](https://github.com/open-webui/open-webui/issues/14327) **about ollama to setting the ollama_api_key** *by bouyeijiang • May 26, 2025* 3. [#2305](https://github.com/open-webui/open-webui/issues/2305) **enhancement: auth ollama connection** *by ymerejeremy • May 16, 2024* --- 💡 **Tips:** - If this is a duplicate, please consider closing this issue and adding any additional details to the existing one - If you found a solution in any of these issues, please share it here to help others *This comment was generated automatically by a bot.* Please react with a 👍 if this comment was helpful, or a 👎 if it was not.
Author
Owner

@silentoplayz commented on GitHub (Dec 6, 2025):

The only authentication related Ollama environment variable I could spot for Open WebUI in its environment variables documentation is RAG_OLLAMA_API_KEY, which may or may not be useful here. Chances are that it's not helpful in this case, but just thought I'd mention it anyways in case it somehow does help!

<!-- gh-comment-id:3619205238 --> @silentoplayz commented on GitHub (Dec 6, 2025): The only **authentication** related `Ollama` environment variable I could spot for Open WebUI in its environment variables documentation is [RAG_OLLAMA_API_KEY](https://docs.openwebui.com/getting-started/env-configuration#ollama), which may or may not be useful here. Chances are that it's not helpful in this case, but just thought I'd mention it anyways in case it somehow does help!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#18988