mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 19:08:59 -05:00
[GH-ISSUE #13204] issue: only admin user receives OPENAI_API_BASE_URL and OPENAI_API_KEY from Environment Variables #55512
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 @surak on GitHub (Apr 24, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/13204
Check Existing Issues
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
README.md.Expected Behavior
Launch open-webui with
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:

Normal user view:

Additional Information
No response
@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.
@tjbck commented on GitHub (Apr 25, 2025):
Intended behaviour, all models are private by default. PLEASE read our docs first.
@tjbck commented on GitHub (Apr 25, 2025):
Intended behaviour, all models are private by default. PLEASE read our docs first.
@surak commented on GitHub (Apr 25, 2025):
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_CONTROLis 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.