[GH-ISSUE #13204] issue: only admin user receives OPENAI_API_BASE_URL and OPENAI_API_KEY from Environment Variables #16846

Closed
opened 2026-04-19 22:40:48 -05:00 by GiteaMirror · 4 comments
Owner

Originally created by @surak on GitHub (Apr 24, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/13204

Check Existing Issues

  • I have searched the existing issues and discussions.
  • I am using the latest version of Open WebUI.

Installation Method

Pip Install

Open WebUI Version

v0.6.5

Ollama Version (if applicable)

No response

Operating System

Ubuntu 20.04

Browser (if applicable)

all

Confirmation

  • I have read and followed all instructions in README.md.
  • I am using the latest version of both Open WebUI and Ollama.
  • I have included the browser console logs.
  • I have included the Docker container logs.
  • I have listed steps to reproduce the bug in detail.

Expected Behavior

Launch open-webui with

ENABLE_LOGIN_FORM="True" \
WEBUI_AUTH=true \ 
ENABLE_SIGNUP="True" \
CUSTOM_NAME="Blablador" \
DEFAULT_MODELS="alias-fast" \
ENABLE_OPENAI_API="True" \
OPENAI_API_BASE_URL="https://api.helmholtz-blablador.fz-juelich.de/v1/" \
OPENAI_API_KEY="MY_KEYj" \
open-webui serve --port 31100

The admin user will see the models and the api key will work, but normal users won't see it at all. How to deploy it in a way that users can simply log in and have models available to them?

Actual Behavior

User logs in,

no models appear at all

Steps to Reproduce

Open webui. Log as admin. Models appear.
Log as user. No models. Worse, as unsetting the "direct connections" on the admin ui, users can't even have their own - just an empty open webui.

Logs & Screenshots

Admin view:
Image

Normal user view:
Image

Additional Information

No response

Originally created by @surak on GitHub (Apr 24, 2025). Original GitHub issue: https://github.com/open-webui/open-webui/issues/13204 ### Check Existing Issues - [x] I have searched the existing issues and discussions. - [x] I am using the latest version of Open WebUI. ### Installation Method Pip Install ### Open WebUI Version v0.6.5 ### Ollama Version (if applicable) _No response_ ### Operating System Ubuntu 20.04 ### Browser (if applicable) all ### Confirmation - [x] I have read and followed all instructions in `README.md`. - [x] I am using the latest version of **both** Open WebUI and Ollama. - [x] I have included the browser console logs. - [x] I have included the Docker container logs. - [x] I have listed steps to reproduce the bug in detail. ### Expected Behavior Launch open-webui with ```bash ENABLE_LOGIN_FORM="True" \ WEBUI_AUTH=true \ ENABLE_SIGNUP="True" \ CUSTOM_NAME="Blablador" \ DEFAULT_MODELS="alias-fast" \ ENABLE_OPENAI_API="True" \ OPENAI_API_BASE_URL="https://api.helmholtz-blablador.fz-juelich.de/v1/" \ OPENAI_API_KEY="MY_KEYj" \ open-webui serve --port 31100 ``` The admin user will see the models and the api key will work, but normal users won't see it at all. How to deploy it in a way that users can simply log in and have models available to them? ### Actual Behavior User logs in, no models appear at all ### Steps to Reproduce Open webui. Log as admin. Models appear. Log as user. No models. Worse, as unsetting the "direct connections" on the admin ui, users can't even have their own - just an empty open webui. ### Logs & Screenshots Admin view: <img width="457" alt="Image" src="https://github.com/user-attachments/assets/aa74af1b-cd2a-40d3-a485-01436d4a8dd0" /> Normal user view: <img width="473" alt="Image" src="https://github.com/user-attachments/assets/3e0b1a04-f162-4871-ba07-c1485ed6090b" /> ### Additional Information _No response_
GiteaMirror added the bug label 2026-04-19 22:40:48 -05:00
Author
Owner

@soundworker-com commented on GitHub (Apr 24, 2025):

Have you set the visibility of the models to public or made them accessible to a user group that the user is a member of? You can check in admin settings -> models by clicking on the pencil symbol next to the model toggle.

<!-- gh-comment-id:2828725413 --> @soundworker-com commented on GitHub (Apr 24, 2025): Have you set the visibility of the models to public or made them accessible to a user group that the user is a member of? You can check in admin settings -> models by clicking on the pencil symbol next to the model toggle.
Author
Owner

@tjbck commented on GitHub (Apr 25, 2025):

Intended behaviour, all models are private by default. PLEASE read our docs first.

<!-- gh-comment-id:2829507607 --> @tjbck commented on GitHub (Apr 25, 2025): Intended behaviour, all models are private by default. PLEASE read our docs first.
Author
Owner

@tjbck commented on GitHub (Apr 25, 2025):

Intended behaviour, all models are private by default. PLEASE read our docs first.

<!-- gh-comment-id:2829508332 --> @tjbck commented on GitHub (Apr 25, 2025): Intended behaviour, all models are private by default. PLEASE read our docs first.
Author
Owner

@surak commented on GitHub (Apr 25, 2025):

Intended behaviour, all models are private by default. PLEASE read our docs first.

It's pretty offensive to assume I haven't.

Even now knowing that this is the case, it's not easy to find this on the documentation. The search for "model" or "models" returns nothing on this regard, neither does "visibility", "private", or "model access control"

I understand that this is possible with the variable BYPASS_MODEL_ACCESS_CONTROL - which doesn't seem easy to find unless one goes over the whole documentation.

There are discussions discussions here on GitHub about this, so it's not clear [ open-webui/discussions/12770, open-webui/discussions/11335 ].

If BYPASS_MODEL_ACCESS_CONTROL is the correct way of dealing with this, I am more than happy to submit a pull request with clarification on the documentation. Just let me know.

<!-- gh-comment-id:2830691089 --> @surak commented on GitHub (Apr 25, 2025): > Intended behaviour, all models are private by default. PLEASE read our docs first. It's pretty offensive to assume I haven't. Even now knowing that this is the case, it's not easy to find this on the documentation. The search for "model" or "models" returns nothing on this regard, neither does "visibility", "private", or "model access control" I understand that this is possible with the variable `BYPASS_MODEL_ACCESS_CONTROL` - which doesn't seem easy to find unless one goes over the whole documentation. There are discussions discussions here on GitHub about this, so it's not clear [ open-webui/discussions/12770, open-webui/discussions/11335 ]. If `BYPASS_MODEL_ACCESS_CONTROL` is the correct way of dealing with this, I am more than happy to submit a pull request with clarification on the documentation. Just let me know.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#16846