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
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" />
@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:
#19287feat: ollama Basic authentication by fcorneli • Nov 19, 2025
#14327about ollama to setting the ollama_api_key by bouyeijiang • May 26, 2025
#2305enhancement: 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.
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!
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Originally created by @iosbeis on GitHub (Dec 5, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/19776
Check Existing Issues
Verify Feature Scope
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
@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:
#19287 feat: ollama Basic authentication
by fcorneli • Nov 19, 2025
#14327 about ollama to setting the ollama_api_key
by bouyeijiang • May 26, 2025
#2305 enhancement: auth ollama connection
by ymerejeremy • May 16, 2024
💡 Tips:
This comment was generated automatically by a bot. Please react with a 👍 if this comment was helpful, or a 👎 if it was not.
@silentoplayz commented on GitHub (Dec 6, 2025):
The only authentication related
Ollamaenvironment 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!@Mubelotix commented on GitHub (May 8, 2026):
This would be very useful and consistent with existing behavior