mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-07 03:18:23 -05:00
[GH-ISSUE #19776] feat: OLLAMA authentication as Environment Variable #18988
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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!