mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 02:48:13 -05:00
[GH-ISSUE #23426] feat: disabling openai compatile endpoints for non in app chat usage #58648
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 @amirparsadd on GitHub (Apr 5, 2026).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/23426
Check Existing Issues
Verify Feature Scope
Problem Description
Currently, Open WebUI lacks the ability to track model usage when requests are made directly via the API rather than through the chat interface. We need a way to monitor all model activity to ensure comprehensive usage tracking.
Desired Solution you'd like
It would be highly beneficial to add an option to restrict access to the OpenAI-compatible API, ensuring that models can only be accessed through the Open WebUI interface.
Alternatives Considered
No response
Additional Context
No response
@TheMasterFX commented on GitHub (Apr 5, 2026):
You can disable the API key in the Admin-Panel under Users => Groups => Default Permissions. Or you can set this for each group. The /api/models will still show the models but output but when using /api/chat/completions you will geht
{"detail":"Use of API key is not enabled in the environment."}@amirparsadd commented on GitHub (Apr 5, 2026):
but we need api keys for some other stuff and users can just use their JWT token
@TheMasterFX commented on GitHub (Apr 5, 2026):
That could be managed via Group Permissions (New Group with API Permission)
Thats true. But only "advanced users" know how to get it ;-)